From ddd42bb2c45f7c0422b03192d5dcb91631637f40 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Sun, 15 Nov 2026 09:10:52 +0000 Subject: [PATCH 01/33] Update Quickstart, Databases and Collections and 15 more pages - Updated get-started/v2/quickstart.mdx - Updated essentials/v2/databases-and-collections.mdx - Updated essentials/v2/metadata.mdx - Updated essentials/v2/context.mdx - Updated essentials/v2/connectors.mdx - Updated get-started/v2/introduction.mdx - Updated plugins/cli.mdx - Updated plugins/mcp.mdx - Updated plugins/ecosystem.mdx - Updated essentials/v2/bring-your-own-graph.mdx - Updated essentials/v2/query.mdx - Updated AGENTS.mdx - Created essentials/v2/metadata-2.mdx - Created essentials/v2/connectors-2.mdx - Created essentials/v2/connectors-3.mdx - Created essentials/v2/bring-your-own-graph-2.mdx - Created essentials/v2/query-2.mdx - Updated docs.json Mintlify-Source: dashboard-editor Signed-off-by: SohamRatnaparkhi <92905626+SohamRatnaparkhi@users.noreply.github.com> --- AGENTS.mdx | 64 +- docs.json | 11 + essentials/v2/bring-your-own-graph-2.mdx | 706 +++++++++++++++++++ essentials/v2/bring-your-own-graph.mdx | 16 +- essentials/v2/connectors-2.mdx | 662 +++++++++++++++++ essentials/v2/connectors-3.mdx | 694 ++++++++++++++++++ essentials/v2/connectors.mdx | 543 ++++++-------- essentials/v2/context.mdx | 743 +++----------------- essentials/v2/databases-and-collections.mdx | 214 +----- essentials/v2/metadata-2.mdx | 644 +++++++++++++++++ essentials/v2/metadata.mdx | 662 ++--------------- essentials/v2/query-2.mdx | 348 +++++++++ essentials/v2/query.mdx | 393 +++++------ get-started/v2/introduction.mdx | 67 +- get-started/v2/quickstart.mdx | 57 +- plugins/cli.mdx | 198 ++---- plugins/ecosystem.mdx | 34 +- plugins/mcp.mdx | 156 +--- 18 files changed, 3813 insertions(+), 2399 deletions(-) create mode 100644 essentials/v2/bring-your-own-graph-2.mdx create mode 100644 essentials/v2/connectors-2.mdx create mode 100644 essentials/v2/connectors-3.mdx create mode 100644 essentials/v2/metadata-2.mdx create mode 100644 essentials/v2/query-2.mdx diff --git a/AGENTS.mdx b/AGENTS.mdx index 26705e4b..f3b63232 100644 --- a/AGENTS.mdx +++ b/AGENTS.mdx @@ -1,5 +1,5 @@ --- -title: "HydraDB Agent Integration Guide" +title: "Complete Agent Integration Guide" description: "The one page an AI coding agent reads before writing a HydraDB v2 integration: rules, API contracts, and runnable examples." --- @@ -76,6 +76,8 @@ Schema fields, placement, and filter operators are in [10. Metadata guide](#10-m - A query with no `acl`, `[]`, or `["*"]` is not filtered: it returns everything in scope, including sources restricted to other people. - Derive `acl` from your authenticated session, never from client input. See [Access control](#access-control). - Do not turn on a connector's `enforce_acl` for an application that serves many users through one API key. With `enforce_acl` on, HydraDB ignores the request's `acl` for that connector's content and uses the email of whoever created the API key, so every user sees what the key's creator may see. Leave it off and send `acl` yourself. +- Under `enforce_acl`, the identity comes from authentication: an API key or pasted-key MCP uses the key creator's email, and MCP OAuth and the dashboard use the signed-in user. A request `acl` still scopes content from non-enforced connectors. +- If you send `acl` and an enforced connector ignores it, a successful response includes one `meta.warnings` entry with code `acl_ignored_by_connector_enforcement`. Treat it as a signal that your `acl` did not apply to that content. ### Sending feedback @@ -220,9 +222,9 @@ HydraDB builds a graph of entity/relation triplets from ingested content. When ` Graph context augments the result; it does not replace `chunks`. -### Forceful relations +### Explicit relations -Forceful relations are links you declare between sources at ingest: +Explicit relations are links you declare between sources at ingest: ```json { @@ -235,7 +237,7 @@ Forceful relations are links you declare between sources at ingest: - Use `ids`. - Declare `relations` on `document_metadata[]` and `app_knowledge[]` items. They link knowledge sources; memory items do not take `relations`. -- A query pulls the related chunks into `additional_context` only in `mode: "thinking"` with `query_forceful_relations: true` (the default). +- A query pulls the related chunks into `data.additional_context` only in `mode: "thinking"` with `query_explicit_relations: true` (the default). ### Access control @@ -251,7 +253,7 @@ Example: a source with `"acl": ["grace@acme.com"]` comes back for a query with ` ### Connectors -Connectors sync context from 70 apps, including Slack, Gmail, Google Drive, Notion, Jira, Confluence, GitHub, Linear, HubSpot, and Zendesk, into a database on a schedule, with no ingestion code. Prefer a connector over hand-written `app_knowledge` ingestion when the app is in the catalog; `GET /connectors/providers` lists it. +Connectors sync context from 70+ apps, including Slack, Gmail, Google Drive, Notion, Jira, Confluence, GitHub, Linear, HubSpot, and Zendesk, into a database on a schedule, with no ingestion code. Indexing is permission-aware: for providers with `acl_supported: true`, each synced source carries the provider's own access rules. Prefer a connector over hand-written `app_knowledge` ingestion when the app is in the catalog; `GET /connectors/providers` lists it. Setup is four calls, made once: @@ -308,6 +310,26 @@ Rules: - Every synced source carries `connector_id` and `provider` in `metadata`, and `connector_id` and `resource_id` in `additional_metadata`; filter on them to scope a query. - `custom_instructions` on the connector or one resource tells HydraDB how to read its documents, from the next sync on. +### Bring Your Own Graph (BYOG) + +To build and query your own graph in Cypher, for example when migrating from Neo4j or another Cypher-compatible store, use the `/byog` endpoints instead of `/context/ingest`: + +| Endpoint | Purpose | +| --- | --- | +| `POST /byog/databases` | Create a database; ready immediately. Returns `409` if the name exists | +| `POST /byog/query` | Run Cypher against one `collection`, with user data in `params` | +| `GET /byog/collections` | List a database's graph collections | +| `DELETE /byog/collections` | Drop one collection | +| `DELETE /byog/databases` | Drop a database | + +- Each collection is an isolated graph, created on first write. Reading one that does not exist yet returns zero rows. +- Pass user data through `params`, never by building it into the query string. +- Procedure calls (`CALL db.*`, `CALL apoc.*`) and `LOAD CSV` are not supported. +- Limits: 256 KiB request body (`413`), 8 s for reads and 30 s for writes (`400` on timeout). Rows beyond the result-set cap are silently dropped, so paginate large reads. +- Agents can run the same Cypher through the HydraDB MCP graph tools: `hydradb_graph_query`, `hydradb_graph_collections`, and `hydradb_graph_admin`. + +Full guide: `https://docs.hydradb.com/essentials/v2/bring-your-own-graph`. + --- ## 3. Installation and client setup @@ -768,7 +790,7 @@ Headers: `X-HydraDB-Delivery-ID`, `X-HydraDB-Event`, and `X-HydraDB-Signature` w Signature scheme: -``` +```text X-HydraDB-Signature: sha256= digest = HMAC-SHA256(key = signing_secret, message = raw request body bytes) @@ -802,19 +824,19 @@ Rules: |---|---|---| | `database` | string | required | | `collection` | string/null | the collection the context was saved in; default collection if omitted | -| `collections` | list of collection IDs | query several collections at once; every listed collection must exist | +| `collections` | list of collection IDs, or an object of weights | query up to 100 collections at once; every listed collection must exist. Send weights, such as `{"user_alex": 2, "company_docs": 1}`, to rank one collection over another | | `query` | string | required | | `type` | `knowledge`, `memory`, `all` | store selector for knowledge, memories, or both | | `acl` | list of principals | who is asking; see [Send `acl` on user queries](#send-acl-on-user-queries) | | `query_by` | `hybrid`, `text` | default `hybrid` (semantic + BM25); `text` is BM25 keyword/phrase search | | `operator` | `or`, `and`, `phrase` | only for `query_by: "text"` | -| `mode` | `fast`, `thinking`, `auto` | applies to hybrid; omitted means `auto`, which picks fast or thinking per query (thinking when unsure). `fast` is low latency. `thinking` adds query expansion, reranking, richer graph traversal, and forceful-relation expansion; it improves quality but adds latency | +| `mode` | `fast`, `thinking`, `auto` | applies to hybrid; omitted means `auto`, which picks fast or thinking per query (thinking when unsure). `fast` is low latency. `thinking` adds query expansion, reranking, richer graph traversal, and explicit-relation expansion; it improves quality but adds latency | | `max_results` | integer/null | default 10; max 250 | | `alpha` | `0.0` to `1.0`, or `auto` | hybrid weight; `1.0` semantic, `0.0` BM25 | | `recency_bias` | `0.0` to `1.0` | boost newer content; omitted means `0.4`, send `0` to disable | | `graph_context` | boolean | default true; include graph slice; `false` only takes effect in fast mode, thinking always includes it | -| `query_forceful_relations` | boolean | only effective in `thinking` mode | -| `additional_context` | string | short factual hint; not a hard filter | +| `query_explicit_relations` | boolean | default true; returns explicitly related chunks in `data.additional_context`; only effective in `thinking` mode | +| `additional_graph_context` | string | short factual hint that sharpens retrieval; not a hard filter | | `metadata_filters` | object | deterministic filters before/around ranking | | `query_apps` | boolean | app-aware retrieval lane for app sources; still searches the full selected knowledge scope; defaults to `true` on `/query`, send `false` to disable | @@ -917,23 +939,26 @@ The successful `data` object / SDK return is a `RetrievalResult`: "chunk_relations": [], "chunk_id_to_group_ids": {} }, - "additional_context": {} + "additional_context": {}, + "llm_prompt": "..." } ``` Each chunk's `id` is the ID of the source it came from, and `source_title` is that source's title: cite with these. The public result has no `sources` array. +`llm_prompt` is the result rendered as Markdown for a model, with the ranked results numbered `[1]`, `[2]`, and so on. + Use `chunks` as the primary LLM context. Preserve server order, which is the ranking; do not re-sort unless you have a deliberate reranking step. --- ## 9. Turning query results into LLM prompts -- Do not pass raw result JSON to the LLM if token budget matters. Use the SDK formatting helper to produce a compact context string: `build_string(result)` from `hydra_db.helpers` (Python) or `buildString(result)` from `@hydradb/sdk/helpers` (TypeScript). +- Do not pass raw result JSON to the LLM if token budget matters. Use the SDK formatting helper to produce a compact context string: `build_string(result)` from `hydra_db.helpers` (Python) or `buildString(result)` from `@hydradb/sdk/helpers` (TypeScript). Both return `data.llm_prompt`, which numbers the ranked results `[1]`, `[2]`, and so on; ask the model to cite by those numbers. - Include a grounding instruction: answer only from the provided context, and say when the context is insufficient. - Start with `max_results: 10`; reduce it for tight context windows. - Use graph context only when it helps the question. -- Use `additional_context` to attach forcefully related chunks by `chunk_uuid` / `extra_context_ids`. +- Use `data.additional_context` to attach explicitly related chunks by `chunk_uuid` / `extra_context_ids`. - For personalized answers, `type: "all"` is simplest: one result set already merges knowledge and memories. Python: @@ -1037,7 +1062,14 @@ Field options: | `data_type` | friendly names like `string`, `integer`, `float`, `boolean`, or backend types like `VARCHAR`, `INT*`, `JSON` | | `enable_dense_embedding` | semantically embed `VARCHAR` field | | `enable_sparse_embedding` | BM25 index `VARCHAR` field | -| `max_length` | max string length | +| `max_length` | max string length; default `1024`, maximum `65535`, and it cannot be raised after the field is created | + +Schema limits: + +- Up to 32 fields and 6 embedding flags per database. Embedding flags are valid only on `VARCHAR` fields. +- Field names are unique, case-insensitively. +- `ARRAY` is not a supported `data_type` and is rejected with `400`. For a multi-value field, store the values as one comma-joined `VARCHAR` and filter for a member with `contains`. +- Values must match their declared type, and undeclared `metadata` keys are rejected on ingest. ### Where metadata belongs @@ -1052,6 +1084,7 @@ Rules: - Plan hot filter fields before the first ingest. `PATCH /databases/{database}/metadata-schema` can add fields later, but cannot rename, retype, or reflag existing ones, and rejects `enable_dense_embedding` / `enable_sparse_embedding` (declare those at database creation). Changing an existing field definition requires a new database and re-ingestion. - Top-level `metadata_filters` keys must be declared in the metadata schema. They support `equals`, `contains`, and `contains_any`. Range and fuzzy matching belong in the query or a downstream reranker. +- Inside `metadata_filters.additional_metadata`, use bare values or arrays, not operators. An operator there, or a misspelled operator anywhere, does not error: it returns `200` with no results. - To change metadata on an indexed source, call `PATCH /context/{id}/metadata` (merges keys), or re-ingest with the same `id` and `upsert: true`. - Do not rename metadata keys without re-ingesting the affected sources. @@ -1266,7 +1299,8 @@ Sections 8 to 10, query and metadata: - [ ] Using undeclared `metadata` keys in `metadata_filters`. - [ ] Using `operator` without `query_by: "text"`. -- [ ] Expecting `query_forceful_relations` to work in `mode: "fast"`. +- [ ] Expecting `query_explicit_relations` to work in `mode: "fast"`. +- [ ] Putting operators inside `metadata_filters.additional_metadata`, or misspelling an operator, which silently returns no results. - [ ] Setting `graph_context: false` and expecting graph fields. - [ ] Reading `data.sources`, which the public result does not return; cite from each chunk's `id` and `source_title`. - [ ] Re-sorting chunks before prompting without a deliberate reranker. diff --git a/docs.json b/docs.json index 8858e0bb..3de6405c 100644 --- a/docs.json +++ b/docs.json @@ -309,6 +309,17 @@ ] } ] + }, + { + "version": "Archive", + "hidden": true, + "pages": [ + "essentials/v2/bring-your-own-graph-2", + "essentials/v2/metadata-2", + "essentials/v2/connectors-2", + "essentials/v2/connectors-3", + "essentials/v2/query-2" + ] } ] }, diff --git a/essentials/v2/bring-your-own-graph-2.mdx b/essentials/v2/bring-your-own-graph-2.mdx new file mode 100644 index 00000000..14c28c1f --- /dev/null +++ b/essentials/v2/bring-your-own-graph-2.mdx @@ -0,0 +1,706 @@ +--- +title: "Bring Your Own Graph (BYOG) (copy)" +description: "Build your graph from scratch in Cypher. Considering switching to HydraDB from a different graph store? Read this guide." +--- + +If you are moving from an existing graph database, start at [Migrate from Neo4j or another Cypher-compatible database](#migrate-from-neo4j-or-another-cypher-compatible-database). To bring your own entities and relations without writing Cypher, attach them to a source at ingest: see section [Use BYOG without Cypher](#use-byog-without-cypher). + +## Quickstart + +Agents can run the Cypher through the [HydraDB MCP](/plugins/mcp) graph tools (`hydradb_graph_query`, `hydradb_graph_collections`, `hydradb_graph_admin`). Create a database, write two nodes, and read them back: + +```bash +# Every request needs your HydraDB API key + +BASE=https://api.hydradb.com +KEY="your-api-key" + +# 1. Create a database (ready immediately) +curl -X POST "$BASE/byog/databases" \ + -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ + -d '{"database": "crm"}' + +# 2. Write data - the collection is created on first write +curl -X POST "$BASE/byog/query" \ + -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ + -d '{ + "database": "crm", + "collection": "contacts", + "query": "UNWIND $rows AS row CREATE (p:Person) SET p = row RETURN count(p) AS created", + "params": {"rows": [{"name": "Alice", "role": "admin"}, + {"name": "Bob", "role": "analyst"}]} + }' + +# 3. Read it back +curl -X POST "$BASE/byog/query" \ + -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ + -d '{ + "database": "crm", + "collection": "contacts", + "query": "MATCH (p:Person) RETURN p.name AS name, p.role AS role ORDER BY name" + }' +``` + +## More about endpoints: + +### `POST /byog/databases`: create a database + +A database groups your collections. Creating a database here makes it ready immediately; a database created with the standard `POST /databases` can also hold graph collections. Creating a name that already exists returns `409`. + + + +```bash Request +curl -X POST "$BASE/byog/databases" \ + -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ + -d '{"database": "crm"}' +``` + +```json Response +{ + "success": true, + "data": { "database": "crm", "status": "ready", "cluster": "shared" }, + "error": null, + "meta": { "request_id": "9280b5f7-…", "api_version": "2.0.1", "latency_ms": 90.8 } +} +``` + + + +### `POST /byog/query`: run Cypher + + + +```bash Request +curl -X POST "$BASE/byog/query" \ + -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ + -d '{ + "database": "crm", + "collection": "contacts", + "query": "CREATE (n:Person {name: $name}) RETURN n", + "params": {"name": "Alice"} + }' +``` + +```json Response +{ + "success": true, + "data": [ + { "n": { "id": 0, "labels": ["Person"], "name": "Alice" } } + ], + "error": null, + "meta": { "request_id": "0f345406-…", "api_version": "2.0.1", "latency_ms": 142.4 } +} +``` + + + +- Each collection is an isolated graph. A query runs against one collection and cannot see data in any other. +- Collections are created automatically on the first write. Reading a collection that does not exist yet returns zero rows. +- Pass user data through `params` instead of building it into the query string. +- Collection names can use letters, digits, `_` and `-`, must start with a letter or digit, and can be up to 64 characters long. + +### `GET /byog/collections`: list collections + +An unknown database returns `404`. + + + +```bash Request +curl "$BASE/byog/collections?database=crm" \ + -H "Authorization: Bearer $KEY" +``` + +```json Response +{ + "success": true, + "data": { "database": "crm", "collections": ["contacts", "sample"] }, + "error": null, + "meta": { "request_id": "d4744632-…", "api_version": "2.0.1", "latency_ms": 55.6 } +} +``` + + + +### `DELETE /byog/collections`: drop one collection + +Drops the collection and all its data. Deleting a collection that does not exist also succeeds. + + + +```bash Request +curl -X DELETE "$BASE/byog/collections" \ + -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ + -d '{"database": "crm", "collection": "contacts"}' +``` + +```json Response +{ + "success": true, + "data": { "database": "crm", "collection": "contacts", "deleted": true }, + "error": null, + "meta": { "request_id": "d7b2b080-…", "api_version": "2.0.1", "latency_ms": 131.1 } +} +``` + + + +### `DELETE /byog/databases`: drop a database + +Drops the graph collections and, if created through `POST /byog/databases`, the database itself. For a database created through the standard database API, the graph collections are dropped, `deleted` is `false`, and the database stays. Use the standard `DELETE /databases` to remove that database. + + + +```bash Request +curl -X DELETE "$BASE/byog/databases" \ + -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ + -d '{"database": "crm"}' +``` + +```json Response +{ + "success": true, + "data": { + "database": "crm", + "cluster": "shared", + "deleted": true, + "deleted_collections": ["contacts", "sample"] + }, + "error": null, + "meta": { "request_id": "1ba6ecb8-…", "api_version": "2.0.1", "latency_ms": 130.8 } +} +``` + + + +## Supported Cypher + +All of openCypher is supported except server-side procedures and file loading. + +### Modeling and CRUD + +- Create, read, update and delete: `CREATE`, `MATCH`, `MERGE`, `SET`, `REMOVE`, `DELETE` / `DETACH DELETE` +- Pattern matching, `WHERE` filters, aggregation, `ORDER BY` / `SKIP` / `LIMIT` +- `UNWIND` and `WITH` pipelines +- Indexes: `CREATE INDEX FOR (n:Label) ON (n.prop)` +- `CALL { ... }` subqueries + +### Graph traversal and exploration + +- **Multi-hop patterns:** chain relationships in one `MATCH`: `MATCH (a:Person)-[:KNOWS]->(b)-[:WORKS_AT]->(c:Company) RETURN c.name`. +- **Variable-length traversal:** follow a relationship a bounded or unbounded number of hops with `*`: `MATCH (a:Person {name:$n})-[:KNOWS*1..4]->(reach) RETURN DISTINCT reach.name`. +- **Neighborhood expansion:** a node's edges and neighbors in any direction: `MATCH (p:Person {name:$n})-[r]-(nbr) RETURN type(r) AS rel, nbr.name AS neighbor`. +- **Path finding:** `shortestPath` returns the full path (nodes and edges in traversal order), not only the endpoints. +- **Directed, typed, filtered traversal:** outgoing (`->`), incoming (`<-`) or either (`-`) edges, filtered by relationship type and by node or edge properties anywhere along the walk. + +### Not supported + +These are rejected with `400` before the query runs; nothing is executed, and retrying the same query fails the same way: + +- **Procedure calls:** `CALL some.procedure(...)`, including `db.*` and `apoc.*`. `CALL { ... }` subqueries are supported. +- **`LOAD CSV`:** send data through `params` instead. + +### Dialect notes + +- **Existence checks** are bare pattern predicates: `MATCH (p:Person) WHERE (p)-[:KNOWS]->() RETURN p.name AS name`. The `EXISTS { ... }` block form and the `exists()` function are not accepted. +- **`shortestPath`** goes in a `RETURN` or `WITH` clause (not `MATCH p = …`) and the traversal must be directed. + +## Common Cypher queries + +Each query runs against the sample graph that the first one loads. + +### Load the sample graph + +Five people, two companies, and the `KNOWS` / `WORKS_AT` edges between them. + +```cypher +CREATE (alice:Person {ext_id: "u1", name: "Alice", role: "admin"}), + (bob:Person {ext_id: "u2", name: "Bob", role: "analyst"}), + (carol:Person {ext_id: "u3", name: "Carol", role: "engineer"}), + (dan:Person {ext_id: "u4", name: "Dan", role: "engineer"}), + (eve:Person {ext_id: "u5", name: "Eve", role: "designer"}), + (acme:Company {ext_id: "c1", name: "Acme", sector: "fintech"}), + (globex:Company {ext_id: "c2", name: "Globex", sector: "retail"}), + (alice)-[:KNOWS {since: 2020}]->(bob), + (bob)-[:KNOWS {since: 2021}]->(carol), + (carol)-[:KNOWS {since: 2022}]->(dan), + (alice)-[:KNOWS {since: 2023}]->(eve), + (bob)-[:WORKS_AT]->(acme), + (carol)-[:WORKS_AT]->(acme), + (dan)-[:WORKS_AT]->(globex) +RETURN count(*) AS created +``` + + + ```json + [{"created": 1}] + ``` + + +### Upsert a node on your own key + +Updates Alice's role, or creates her if `u1` does not exist. + +```cypher +MERGE (p:Person {ext_id: "u1"}) +SET p.role = "owner" +RETURN p.ext_id AS id, p.name AS name, p.role AS role +``` + + + ```json + [{"id": "u1", "name": "Alice", "role": "owner"}] + ``` + + +### Connect two existing nodes + +Eve starts working at Acme. + +```cypher +MATCH (a:Person {ext_id: "u5"}), (b:Company {ext_id: "c1"}) +MERGE (a)-[w:WORKS_AT]->(b) +SET w.since = 2024 +RETURN a.name AS person, type(w) AS rel, b.name AS company, w.since AS since +``` + + + ```json + [{"company": "Acme", "person": "Eve", "rel": "WORKS_AT", "since": 2024}] + ``` + + +### Expand a node's neighborhood + +Every relationship on Bob, in any direction, and the node on the other end. + +```cypher +MATCH (p:Person {name: "Bob"})-[r]-(nbr) +RETURN type(r) AS rel, labels(nbr) AS kind, nbr.name AS neighbor +ORDER BY rel, neighbor +``` + + + ```json + [ + {"kind": ["Person"], "neighbor": "Alice", "rel": "KNOWS"}, + {"kind": ["Person"], "neighbor": "Carol", "rel": "KNOWS"}, + {"kind": ["Company"], "neighbor": "Acme", "rel": "WORKS_AT"} + ] + ``` + + +### Multi-hop expansion + +Everyone up to 3 hops from Alice along outgoing `KNOWS` edges. + +```cypher +MATCH (a:Person {name: "Alice"})-[:KNOWS*1..3]->(reach:Person) +WHERE reach.name <> "Alice" +RETURN DISTINCT reach.name AS name +ORDER BY name +``` + + + ```json + [ + {"name": "Bob"}, + {"name": "Carol"}, + {"name": "Dan"}, + {"name": "Eve"} + ] + ``` + + +### Shortest path between two nodes + +Returns the whole path (nodes and edges in order), not only the endpoints. + +```cypher +MATCH (a:Person {name: "Alice"}), (b:Person {name: "Carol"}) +RETURN shortestPath((a)-[:KNOWS*..8]->(b)) AS path +``` + + + ```json + [ + { + "path": { + "edges": [ + { + "id": 0, + "relation": "KNOWS", + "since": 2020, + "source_node_id": 0, + "target_node_id": 1 + }, + { + "id": 1, + "relation": "KNOWS", + "since": 2021, + "source_node_id": 1, + "target_node_id": 2 + } + ], + "nodes": [ + { + "ext_id": "u1", + "id": 0, + "labels": [ + "Person" + ], + "name": "Alice", + "role": "owner" + }, + { + "ext_id": "u2", + "id": 1, + "labels": [ + "Person" + ], + "name": "Bob", + "role": "analyst" + }, + { + "ext_id": "u3", + "id": 2, + "labels": [ + "Person" + ], + "name": "Carol", + "role": "engineer" + } + ] + } + } + ] + ``` + + +### Filtered, typed traversal + +Who does Alice know that works at a fintech company? + +```cypher +MATCH (a:Person {name: "Alice"})-[:KNOWS]->(f:Person)-[:WORKS_AT]->(c:Company) +WHERE c.sector = "fintech" +RETURN f.name AS person, c.name AS company +ORDER BY person +``` + + + ```json + [ + {"company": "Acme", "person": "Bob"}, + {"company": "Acme", "person": "Eve"} + ] + ``` + + +### Aggregate + +Headcount per company, largest first. + +```cypher +MATCH (p:Person)-[:WORKS_AT]->(c:Company) +RETURN c.name AS company, count(p) AS headcount +ORDER BY headcount DESC +``` + + + ```json + [ + {"company": "Acme", "headcount": 3}, + {"company": "Globex", "headcount": 1} + ] + ``` + + +### Index a property you filter on + +Speeds up lookups by `ext_id`. + +```cypher +CREATE INDEX FOR (n:Person) ON (n.ext_id) +``` + + + ```json + [] + ``` + + +### Delete a node and its edges + +Removes Eve and every relationship attached to her. + +```cypher +MATCH (p:Person {ext_id: "u5"}) +DETACH DELETE p +RETURN count(*) AS deleted +``` + + + ```json + [{"deleted": 1}] + ``` + + +## Response format + +Rows come back in `data`: one object per result row, keyed by your `RETURN` aliases: + +```json +{ + "success": true, + "data": [ + { "name": "Alice", "role": "admin" }, + { "name": "Bob", "role": "analyst" } + ], + "error": null, + "meta": { "request_id": "9be86a4e-…", "latency_ms": 12.4 } +} +``` + +- **Alias every column you read:** `RETURN n.name AS name`. An unaliased column is keyed by its expression text (`"n.name"`). +- A write with no `RETURN` succeeds with `data: []`. + +What each kind of value looks like inside a row: + +| You return | Example | Row in `data` | +| --- | --- | --- | +| Scalar | `RETURN p.name AS name` | `{"name": "Alice"}` | +| Node | `RETURN p` | `{"p": {"id": 0, "labels": ["Person"], "name": "Alice"}}` | +| Relationship | `RETURN k` | `{"k": {"id": 7, "relation": "KNOWS", "source_node_id": 0, "target_node_id": 1, "since": 2020}}` | +| Path | `RETURN shortestPath(...) AS path` | `{"path": {"nodes": [...], "edges": [...]}}` | +| List / map | `RETURN collect(p.name) AS names` | `{"names": ["Alice", "Bob"]}` | + +- Nodes and relationships are flat objects: their properties plus the keys in the table. A stored property with one of those names (`id`, `labels`, `relation`, `source_node_id`, `target_node_id`) is hidden in the response; alias it (`RETURN n.id AS my_id`). +- `id` is internal: it can be reused after deletes and does not survive an export and re-import. Key your data on a property you own, such as `ext_id` or `email`. +- Integers are 64-bit. Values beyond 2⁵³ lose precision in languages that parse JSON numbers as doubles; return them as strings. + +## Use results in your code + +### A minimal client + +Wrap the endpoint once. A success puts rows in `data`; the client reads an error from `detail`. + +```python +import requests + +class HydraGraph: + def __init__(self, base_url, api_key, database, collection="default"): + self.base, self.db, self.col = base_url, database, collection + self.headers = {"Authorization": f"Bearer {api_key}"} + + def query(self, cypher, params=None): + r = requests.post(f"{self.base}/byog/query", headers=self.headers, json={ + "database": self.db, "collection": self.col, + "query": cypher, "params": params or {}, + }) + body = r.json() + if not r.ok: + err = body.get("detail", {}) + raise RuntimeError(f"{r.status_code} {err.get('error_code')}: {err.get('message')}") + return body["data"] # always a list of row dicts + +g = HydraGraph("https://api.hydradb.com", "", "crm", "contacts") +``` + +```typescript +async function query(cypher: string, params: object = {}): Promise[]> { + const res = await fetch(`${BASE}/byog/query`, { + method: "POST", + headers: { Authorization: `Bearer ${KEY}`, "Content-Type": "application/json" }, + body: JSON.stringify({ database: "crm", collection: "contacts", query: cypher, params }), + }); + const body = await res.json(); + if (!res.ok) throw new Error(`${res.status} ${body.detail?.error_code}: ${body.detail?.message}`); + return body.data; // always an array of row objects +} +``` + +### Read rows + +```python +# Scalars - project and alias exactly what you need. +rows = g.query("MATCH (p:Person) RETURN p.name AS name, p.role AS role ORDER BY name") +names = [r["name"] for r in rows] # ["Alice", "Bob"] + +# Nodes - one flat object: properties plus id and labels. +alice = g.query("MATCH (p:Person {name: $n}) RETURN p", {"n": "Alice"})[0]["p"] +props = {k: v for k, v in alice.items() if k not in ("id", "labels")} + +# Relationships - project both ends in the same query. +for row in g.query("MATCH (a:Person)-[k:KNOWS]->(b:Person) " + "RETURN a.name AS a, b.name AS b, k.since AS since"): + print(f'{row["a"]} knows {row["b"]} since {row["since"]}') + +# Paths - nodes and edges in traversal order. +path = g.query("MATCH (a:Person {name:$x}), (b:Person {name:$y}) " + "RETURN shortestPath((a)-[*..6]->(b)) AS path", + {"x": "Alice", "y": "Bob"})[0]["path"] +hops = [n["name"] for n in path["nodes"]] # ["Alice", ..., "Bob"] +``` + +### Pagination + +Result sets past the deployment cap are silently truncated, so page any read that could be large. A stable `ORDER BY` keeps pages consistent: + +```python +def all_rows(cypher_body, page=500, params=None): + offset = 0 + while True: + rows = g.query(f"{cypher_body} SKIP $offset LIMIT $limit", + {**(params or {}), "offset": offset, "limit": page}) + yield from rows + if len(rows) < page: + return + offset += page + +people = list(all_rows("MATCH (p:Person) RETURN p.name AS name ORDER BY name")) +``` + +### Bulk loading + +Chunk rows to stay inside the 256 KiB body cap and the 30 s write budget; `MERGE` on your own key makes the load re-runnable after a failure: + +```python +def load(rows, chunk=500): + for i in range(0, len(rows), chunk): + g.query(""" + UNWIND $rows AS row + MERGE (n:Person {ext_id: row.ext_id}) + SET n += row + """, {"rows": rows[i:i+chunk]}) +``` + +## Errors and limits + +### Errors + +Errors come back with `success: false` and the reason in `error` (also mirrored in `detail`): + +```json +{ + "success": false, + "data": null, + "error": { "code": "DATABASE_ALREADY_EXISTS", "message": "database 'crm' already exists" }, + "detail": { "success": false, "error_code": "DATABASE_ALREADY_EXISTS", "message": "database 'crm' already exists" } +} +``` + +| Status | Meaning | +| --- | --- | +| `400` | Invalid request (missing fields, bad collection name), unsupported construct, **Cypher errors** (the compiler's message is passed through so you can fix the query), or **query timeout** | +| `403` | Missing or invalid API key | +| `404` | Unknown database; create it with `POST /byog/databases` | +| `409` | `POST /byog/databases` with a name that already exists | +| `413` | Request body over 256 KiB | +| `429` | Rate limit exceeded; back off and retry | +| `500` | Server error. Retry reads with backoff; retry writes only when they are idempotent | + +Decide whether to retry by status: + +- **`400`:** do not retry unchanged; it fails identically. The message says what to fix, either your Cypher or a query that needs `LIMIT` or an index (budget timeout). +- **`429` and `500`:** transient; retry with backoff. Writes built on `MERGE`, as in [Bulk loading](#bulk-loading), are safe to retry. Bare `CREATE` batches are not idempotent, so a retried chunk can duplicate nodes. + +### Limits and timeouts + +| Limit | Value | On exceeding | +| --- | --- | --- | +| Request body | 256 KiB | `413` | +| Read query execution | 8 s | `400`: "query exceeded the execution time budget; simplify it, add LIMIT, or create an index" | +| Write query execution | 30 s | same `400` | +| Result set size | deployment-configured cap; rows beyond it are **silently dropped** | no error; paginate | + +A query counts as a **write** (and gets the larger budget) when it contains any write clause: `CREATE`, `MERGE`, `SET`, `DELETE`, `REMOVE`, `FOREACH`. + +To stay inside these limits: + +- **Paginate anything potentially large:** see [Pagination](#pagination). Without an `ORDER BY`, rows dropped at the result-set cap are arbitrary. +- **Chunk bulk imports:** see [Bulk loading](#bulk-loading). +- **Create indexes** for properties you filter on: `CREATE INDEX FOR (n:Person) ON (n.name)`. A slow read usually needs one. + +## Migrate from Neo4j or another Cypher-compatible database + +Most application Cypher from Neo4j, Memgraph, or any other Cypher-compatible database ports directly. The differences you are most likely to notice: + +- Procedure calls (for example Neo4j's `CALL db.*` and `CALL apoc.*`) and `LOAD CSV` are [not supported](#not-supported). The equivalents of a procedure are either plain Cypher or not part of the supported surface. Instead of `LOAD CSV`, batch data in through `params`. +- Existence checks and `shortestPath` take a different form: see [Dialect notes](#dialect-notes). +- Internal node IDs are not portable; migrate using your own key properties, for example `UNWIND $rows AS row MERGE (n:Person {ext_id: row.ext_id}) SET n += row`. + +Migrate one collection at a time: export a graph, replay it into one collection, and verify the counts. + +This script reads from Neo4j with the official driver and writes to HydraDB with the [`HydraGraph` client](#a-minimal-client). Any source you can read nodes and relationships from works the same way. It loads nodes first, then relationships matched on your own key. Cypher does not allow a relationship type as a parameter, so it writes one batch per type. It copies `Person` nodes and `KNOWS` relationships; repeat both steps for every other label and relationship type in your graph, and compare each count: + +```python +from neo4j import GraphDatabase + +src = GraphDatabase.driver("neo4j://localhost:7687", auth=("neo4j", "")) +g = HydraGraph("https://api.hydradb.com", "", "crm", "contacts") + +def batches(rows, n=500): + for i in range(0, len(rows), n): + yield rows[i:i + n] + +# Index the key first so the relationship MATCH below stays fast. +g.query("CREATE INDEX FOR (n:Person) ON (n.ext_id)") + +with src.session() as s: + # 1. Nodes, keyed on a property you own. + people = [r["p"] for r in s.run("MATCH (p:Person) RETURN properties(p) AS p")] + for chunk in batches(people): + g.query("UNWIND $rows AS row MERGE (n:Person {ext_id: row.ext_id}) SET n += row", + {"rows": chunk}) + + # 2. Relationships, one type at a time. + knows = s.run(""" + MATCH (a:Person)-[k:KNOWS]->(b:Person) + RETURN a.ext_id AS src, b.ext_id AS dst, properties(k) AS props + """).data() + for chunk in batches(knows): + g.query(""" + UNWIND $rows AS row + MATCH (a:Person {ext_id: row.src}), (b:Person {ext_id: row.dst}) + MERGE (a)-[k:KNOWS]->(b) + SET k += row.props + """, {"rows": chunk}) + +# 3. Verify counts match. +print(g.query("MATCH (p:Person) RETURN count(p) AS people")) +``` + + + +## Use BYOG without Cypher + +To use your own entities and relations for a source instead of the ones HydraDB extracts, pass a `graph_payload` on [`POST /context/ingest`](/api-reference/v2/endpoint/ingest-context). It is a JSON map keyed by source ID (a `document_metadata` `id`, an `app_knowledge` `id`, or a memory `id`): + +```bash +curl -X POST 'https://api.hydradb.com/context/ingest' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -F "type=knowledge" \ + -F "database=acme_corp" \ + -F "documents=@/path/to/billing-policy.pdf" \ + -F 'document_metadata=[{ "id": "billing-policy-doc" }]' \ + -F 'graph_payload={ + "billing-policy-doc": { + "entities": { + "alice": { "name": "Alice Carter", "type": "PERSON", "namespace": "employees" }, + "billing": { "name": "Billing Policy", "type": "POLICY", "namespace": "policies" } + }, + "relations": [ + { "source": "alice", "target": "billing", "predicate": "OWNS", + "context": "Alice Carter owns the billing policy.", "temporal_details": "since 2021" } + ] + } + }' +``` + +- **Replaces extraction:** HydraDB skips extraction for each keyed source; the source is still chunked and embedded. Relations appear in `/query` `graph_context` tagged `origin: "byog"`, with no query-side changes. +- **Persists across re-ingest:** re-ingesting without a `graph_payload` re-applies the stored graph; sending a new one replaces it. +- **Limits:** at most 5,000 entities, 10,000 relations, and 500 relations per entity; oversized payloads return `400`. A key matching no source in the request is rejected with `400`. +- **Whole-graph only:** there are no per-triple updates, and relations link to their best-matching chunk even when the match is weak. + +See the [`graph_payload` field reference](/api-reference/v2/endpoint/ingest-context) for the full shape. diff --git a/essentials/v2/bring-your-own-graph.mdx b/essentials/v2/bring-your-own-graph.mdx index 25ab8e17..19e095b6 100644 --- a/essentials/v2/bring-your-own-graph.mdx +++ b/essentials/v2/bring-your-own-graph.mdx @@ -1,17 +1,9 @@ --- -title: "Bring Your Own Graph (BYOG)" -description: "Read and write your own graph in HydraDB with Cypher, or attach your own entities and relations at ingest." +title: "Bring Your Own Graph" +description: "Complete guide to build a graph from scratch in Cypher. Considering switching to HydraDB from a different graph store? Read this guide." --- -Bring Your Own Graph (BYOG) lets you use Cypher to read and write data in -[HydraDB's core graph database](https://github.com/hydra-db/hydradb), which -HydraDB hosts and scales in its cloud. - -If you are moving from an existing graph database, start at -[Migrate from Neo4j or another Cypher-compatible database](#migrate-from-neo4j-or-another-cypher-compatible-database). -To bring your own entities and relations without writing Cypher, attach -them to a source at ingest: see -[Use BYOG without Cypher](#use-byog-without-cypher). +If you are moving from an existing graph database, start at [Migrate from Neo4j or another Cypher-compatible database](#migrate-from-neo4j-or-another-cypher-compatible-database). To bring your own entities and relations without writing Cypher, attach them to a source at ingest: see section [Use BYOG without Cypher](#use-byog-without-cypher). ## Quickstart @@ -54,7 +46,7 @@ graph tools (`hydradb_graph_query`, `hydradb_graph_collections`, `hydradb_graph_ Every request needs your HydraDB API key: -``` +```text Authorization: Bearer ``` diff --git a/essentials/v2/connectors-2.mdx b/essentials/v2/connectors-2.mdx new file mode 100644 index 00000000..da6b3d93 --- /dev/null +++ b/essentials/v2/connectors-2.mdx @@ -0,0 +1,662 @@ +--- +title: "Connectors (copy)" +description: "Connect Slack, GitHub, Notion, or any of 70 apps, and HydraDB keeps their data synced into your database." +--- + +HydraDB syncs data from 70 apps into your database without ingestion code on your side. You connect an account once, choose which resources (channels, repositories, pages) to sync, and HydraDB keeps them indexed as searchable [app sources](/essentials/v2/context#send-app-sources). The catalog includes Slack, Gmail, Google Drive, Notion, Jira, Confluence, GitHub, Linear, HubSpot, Zendesk, Supabase, Microsoft Teams, Outlook, Zoom, Gong, and Fireflies. It grows often; call [`GET /connectors/providers`](/api-reference/v2/endpoint/list-connector-providers) for the current list. + +If an app is not in the catalog, or you already have your own integration, ingest its data yourself as [app sources](/essentials/v2/context#send-app-sources). + + + +## 1. Set up a connector + +Setting up a connector takes four calls, made once. The example connects one Slack workspace; every provider uses the same calls, and only the credentials and resource types change. Set up your [SDK client](/api-reference/v2/sdks#client-setup) before running the Python or TypeScript examples. + +### Step 1: Pick a provider + +[`GET /connectors/providers`](/api-reference/v2/endpoint/list-connector-providers) returns the catalog; use an entry's `provider` value in the next call. With `?id={provider}`, it describes one provider, including `credential_schema`, the credentials it needs. + + + + + ```python Python SDK + catalog = client.list_providers() + slack = client.list_providers(id="slack") + ``` + + ```typescript TypeScript SDK + const catalog = await client.listProviders(); + const slack = await client.listProviders({ id: "slack" }); + ``` + + ```bash cURL + curl 'https://api.hydradb.com/connectors/providers' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" + + curl 'https://api.hydradb.com/connectors/providers?id=slack' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" + ``` + + + + A catalog entry looks like this: + + ```json + { + "providers": [ + { + "provider": "slack", + "category": "Communication", + "supported": true, + "webhook_support": false, + "rank": 2 + } + ] + } + ``` + + `webhook_support` is `true` for providers whose data arrives by webhook instead of scheduled syncs, such as Supabase. + + +### Step 2: Create the connector + +[`POST /connectors`](/api-reference/v2/endpoint/create-connector) stores the credentials for one provider account and says which database and collection the synced data goes to. Nothing syncs yet. + + + + + ```python Python SDK + connector = client.connectors.create( + provider="slack", + name="acme-engineering", + database="acme_corp", + collection="company_docs", + provider_account_scope="T12345ACME", + credentials={"access_token": "xoxp-..."}, + ) + connector_id = connector.connector_id + ``` + + ```typescript TypeScript SDK + const connector = await client.connectors.create({ + provider: "slack", + name: "acme-engineering", + database: "acme_corp", + collection: "company_docs", + providerAccountScope: "T12345ACME", + credentials: { access_token: "xoxp-..." }, + }); + const connectorId = connector.connectorId!; + ``` + + ```bash cURL + curl -X POST 'https://api.hydradb.com/connectors' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ + "provider": "slack", + "name": "acme-engineering", + "database": "acme_corp", + "collection": "company_docs", + "provider_account_scope": "T12345ACME", + "credentials": { "access_token": "xoxp-..." } + }' + ``` + + + + The response returns the new connector: + + ```json + { + "connector_id": "{connector_id}", + "provider": "slack", + "name": "acme-engineering", + "database": "acme_corp", + "collection": "company_docs", + "provider_account_scope": "T12345ACME", + "lifecycle": "pending_setup", + "sync_status": "idle", + "sync_interval_seconds": 3600, + "message": "Connector created. Configure resources to start syncing; the first scheduled sync runs in about 5 minutes." + } + ``` + + Keep `connector_id`: every later call uses it. + + +### Step 3: Discover what the credentials can reach + +[`GET /connectors/{id}/discover`](/api-reference/v2/endpoint/discover-connector-resources) asks Slack which channels the token can see; for GitHub it returns repositories, and for Notion it returns pages and databases. Each entry has an `id`, a `name`, and a `resource_type`, which you pass to the next call. Providers that sync a whole account return one entry with `id` `all`. + + + + + ```python Python SDK + found = client.connectors.discover(connector_id) + for resource in found.resources: + print(resource.id, resource.name, resource.resource_type) + ``` + + ```typescript TypeScript SDK + const found = await client.connectors.discover({ id: connectorId }); + for (const resource of found.resources ?? []) { + console.log(resource.id, resource.name, resource.resourceType); + } + ``` + + ```bash cURL + curl 'https://api.hydradb.com/connectors/{id}/discover' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" + ``` + + + + ```json + { + "provider": "slack", + "resources": [ + { "id": "C_GENERAL", "name": "general", "resource_type": "channel" }, + { "id": "C_ENG", "name": "engineering", "resource_type": "channel" } + ] + } + ``` + + For providers with many resources, page with `limit` (1 to 100) and `cursor`, and keep going while `has_more` is `true`. + + +### Step 4: Configure the resources to sync + +[`POST /connectors/{id}/configure`](/api-reference/v2/endpoint/configure-connector) activates the resources you choose and starts the first sync right away. The example keeps both channels in the connector's collection and tags each with a `department`, so one query searches both and a filter can narrow to one. + + + + + ```python Python SDK + result = client.connectors.configure( + connector_id, + lookback_days=30, + resources=[ + { + "resource_id": "C_GENERAL", + "resource_type": "channel", + "name": "general", + "metadata": {"department": "all-hands"}, + "additional_metadata": {"internal_label": "general-slack"}, + }, + { + "resource_id": "C_ENG", + "resource_type": "channel", + "name": "engineering", + "metadata": {"department": "engineering"}, + }, + ], + ) + print(result.configured) + ``` + + ```typescript TypeScript SDK + const result = await client.connectors.configure({ + id: connectorId, + lookbackDays: 30, + resources: [ + { + resourceId: "C_GENERAL", + resourceType: "channel", + name: "general", + metadata: { department: "all-hands" }, + additionalMetadata: { internal_label: "general-slack" }, + }, + { + resourceId: "C_ENG", + resourceType: "channel", + name: "engineering", + metadata: { department: "engineering" }, + }, + ], + }); + console.log(result.configured); + ``` + + ```bash cURL + curl -X POST 'https://api.hydradb.com/connectors/{id}/configure' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ + "lookback_days": 30, + "resources": [ + { + "resource_id": "C_GENERAL", + "resource_type": "channel", + "name": "general", + "metadata": { "department": "all-hands" }, + "additional_metadata": { "internal_label": "general-slack" } + }, + { + "resource_id": "C_ENG", + "resource_type": "channel", + "name": "engineering", + "metadata": { "department": "engineering" } + } + ] + }' + ``` + + + + ```json + { + "connector_id": "{connector_id}", + "configured": 2, + "backfill": false, + "first_sync_at": "2026-06-01T13:00:00Z", + "message": "First sync is running. Data usually appears within a few minutes; the connector reports lifecycle 'ingesting' until data has synced." + } + ``` + + `configured` is the number of resources saved. A `warnings` list names resources that were saved but returned no records when HydraDB tested them; they stay configured and index nothing until they have data. + + +### What each property means + +| Property | Call | What it is | +| --- | --- | --- | +| `provider` | create | A `provider` value from the catalog, such as `slack`, `github`, or `notion`. | +| `name` | create | A label for this connector. Optional, and it cannot be changed later. | +| `database`, `collection` | create | Where synced data goes. `database` must already exist. Each resource can route somewhere else with its own `collection` or `database`. | +| `provider_account_scope` | create | Which external account this connector belongs to, such as a Slack workspace id. It is part of the deduplication key of every synced source, so sources from two accounts never overwrite each other. [Set it per provider](#set-the-account-scope-per-provider). | +| `credentials` | create | The provider's credentials, in the shape of its `credential_schema`. Credentials that do not match the schema are rejected with `422`. | +| `custom_instructions` | create, configure | Guidance for how synced documents are interpreted, for the whole connector or for one resource. See [section 4](#4-custom-ingestion-instructions). | +| `sync_interval_seconds` | create | How often scheduled syncs run. Omit it for the provider default, one hour for most providers. | +| `enforce_acl` | create, update | Whether reads from this connector always enforce ACL for the authenticated caller. Optional and `false` by default. Only workspace owners and writers can set it, and enabling it requires a provider with `acl_supported`. See [ACL enforcement](#enforce-acl). | +| `lookback_days` | configure | How much history the first sync fetches (default `30`). After that, each sync fetches only what is new. Above 30, some providers fetch the older history in the background and the response reports `backfill: true`. | +| `resource_id`, `resource_type`, `name` | configure | The `id`, `resource_type`, and `name` of an entry from discover. Send all three every time you list a resource. | +| `metadata` | configure | Fields merged into the database metadata of every source from this resource. Declare the ones you filter on in your database's [metadata schema](/essentials/v2/metadata). | +| `additional_metadata` | configure | Free-form fields merged into the additional metadata of every source from this resource. No schema needed. | +| `acl` | configure | Your own rule for who can read this resource's sources. Omitted means unrestricted. See [Set your own rule on a resource](#set-your-own-rule-on-a-resource). | + + + +### Set the account scope per provider + +- **Slack:** the workspace id, which starts with `T`. Open Slack in a browser: it is the `T...` segment of `app.slack.com/client/T.../`. +- **GitHub:** the organization or user login from your GitHub URL, as in `github.com/my-github-org`. +- **Linear:** the workspace name shown in Settings, under Workspace. +- **Notion:** the workspace name shown at the top of Settings, under Workspace. +- **Gmail:** leave it empty. To scope queries to one mailbox, filter on `account_email` in `additional_metadata` instead. + + + +### Linear workspace documents + +Linear documents do not belong to one team or project, so they sync as one always-present resource. Discovery returns it alongside the teams and projects, and you configure it like any other resource. Each document is indexed as a `knowledge_base` app source. Its Markdown body is searchable, and files uploaded to it (hosted on `uploads.linear.app`) are downloaded, parsed, and indexed too. Links to external URLs are kept as metadata, not fetched. + + + + + ```json Discover entry + { + "id": "linear_workspace", + "name": "Workspace Documents", + "resource_type": "linear_workspace" + } + ``` + + ```json Configure entry + { + "resource_id": "linear_workspace", + "resource_type": "linear_workspace", + "name": "Workspace Documents" + } + ``` + + + + The documents go to the connector's collection; add `collection` to route them elsewhere. In the dashboard, tick "Workspace Documents" in the resource list, the same way you tick a team or project. + + +## 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. + + + + + ```python Python SDK + status = client.connectors.status(connector_id) + print(status.status, status.lifecycle) + ``` + + ```typescript TypeScript SDK + const status = await client.connectors.status({ id: connectorId }); + console.log(status.status, status.lifecycle); + ``` + + ```bash cURL + curl 'https://api.hydradb.com/connectors/{id}/status' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" + ``` + + + + +`status` is the overall health, such as `healthy`, `degraded`, or `failed`, and `lifecycle` is what the connector is doing: `ingesting` until the first sync lands data, then `active`. Each resource reports its own result, with an `action` when it failed. [Get Connector Status](/api-reference/v2/endpoint/get-connector-status) explains every value. + +From then on, HydraDB syncs every active resource every `sync_interval_seconds` (one hour by default). Each sync fetches only what changed since the resource's saved position (its cursor) and ingests it as app sources. Call [`POST /connectors/{id}/sync`](/api-reference/v2/endpoint/sync-connector) when you need data sooner; a `202` means the sync was started, not that it finished. + +Once `lifecycle` is `active`, query the data with [`POST /query`](/api-reference/v2/endpoint/query) like any other knowledge. [Section 5](#5-filter-on-what-hydradb-writes) shows how to scope a query to one connector or one channel. + + + +## 3. Change a connector after setup + +Use the call that matches what you want to change. The update calls change only the fields you send. + +- **One resource's instructions or ACL:** [Update Connector Resource](/api-reference/v2/endpoint/update-connector-resource), `PATCH /connectors/{id}/resources/{resource_id}`. +- **The connector's instructions, sync interval, or credentials:** [Update Connector](/api-reference/v2/endpoint/update-connector), `PATCH /connectors/{id}`. Sending `credentials` reconnects the connector after a token expired or was revoked; it keeps its id, resources, and sync positions. +- **Which resources sync, and their collection or metadata:** call [Configure Connector](/api-reference/v2/endpoint/configure-connector) again. Resources you leave out are not touched. For each resource you list, send `name` and `resource_type` again, because omitted values are cleared. Its sync position, instructions, and ACL are kept. +- **Stop syncing a resource:** [Delete Connector Resource](/api-reference/v2/endpoint/delete-connector-resource). +- **Stop syncing for a while:** [Pause Connector](/api-reference/v2/endpoint/pause-connector), then [Resume Connector](/api-reference/v2/endpoint/resume-connector). Each resource resumes from its saved position, so nothing created in the meantime is skipped. +- **Remove the connector:** [Delete Connector](/api-reference/v2/endpoint/delete-connector). + + + `POST /connectors/{id}/resources` adds new resources only. On a `resource_id` that already exists, it returns `409` and changes nothing. To edit a resource, use configure or `PATCH /connectors/{id}/resources/{resource_id}`. + + + + +## 4. Custom ingestion instructions + +A custom ingestion instruction is free text that a connector reads at sync time and includes when it extracts entities and relationships from every document it syncs. Use one to explain what the documents do not spell out: a product rename, what a channel is for, or what an internal term means. + +Suppose your product was renamed from _Aurora_ to _Nimbus_. Years of Slack threads and Confluence pages mention only the old name, so a search for "Nimbus" misses them. One instruction on the connector fixes that at ingestion time, with no reconnection. + + + + + ```python Python SDK + client.connectors.update( + connector_id, + custom_instructions=( + "Aurora was renamed to Nimbus in January 2025; they are the same product. " + "Index all Aurora content under the canonical name Nimbus and record Aurora as a former name." + ), + ) + ``` + + ```typescript TypeScript SDK + await client.connectors.update({ + id: connectorId, + customInstructions: + "Aurora was renamed to Nimbus in January 2025; they are the same product. " + + "Index all Aurora content under the canonical name Nimbus and record Aurora as a former name.", + }); + ``` + + ```bash cURL + curl -X PATCH 'https://api.hydradb.com/connectors/{id}' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ + "custom_instructions": "Aurora was renamed to Nimbus in January 2025; they are the same product. Index all Aurora content under the canonical name Nimbus and record Aurora as a former name." + }' + ``` + + + + +From the next sync, documents that mention only Aurora are extracted under the Nimbus entity, with alias links to the old name, so new-name queries reach old-name documents through the context graph. The same works for focus ("prioritize decisions, owners, and deadlines; ignore social chatter"), interpretation ("threads in this workspace are incident retros; extract root cause and remediation"), and vocabulary ("SEV1 and SEV2 are incident severities, not product names"). An instruction can also be set when you create the connector, or from the dashboard's **Instructions** button. + +**Connector default and resource override:** an instruction on the connector applies to every resource without one of its own. An instruction on a resource, such as one Slack channel or one Jira project, **replaces** the connector default for that resource's documents rather than adding to it. Set a resource's instruction with `custom_instructions` in configure, or afterwards on its own: + + + + + ```python Python SDK + client.connectors.update_resource_acl( + connector_id, + "C_INCIDENTS", + request={"custom_instructions": "These are incident retros; extract root cause, impact, and owner."}, + ) + + # Clear it, so the channel uses the connector default again. + client.connectors.update_resource_acl( + connector_id, "C_INCIDENTS", request={"custom_instructions": ""} + ) + ``` + + ```typescript TypeScript SDK + await client.connectors.updateResourceAcl({ + id: connectorId, + resourceId: "C_INCIDENTS", + customInstructions: "These are incident retros; extract root cause, impact, and owner.", + }); + + // Clear it, so the channel uses the connector default again. + await client.connectors.updateResourceAcl({ + id: connectorId, + resourceId: "C_INCIDENTS", + customInstructions: "", + }); + ``` + + ```bash cURL + curl -X PATCH 'https://api.hydradb.com/connectors/{id}/resources/C_INCIDENTS' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ "custom_instructions": "These are incident retros; extract root cause, impact, and owner." }' + + # Clear it, so the channel uses the connector default again. + curl -X PATCH 'https://api.hydradb.com/connectors/{id}/resources/C_INCIDENTS' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ "custom_instructions": "" }' + ``` + + + + In TypeScript (SDK 2.1.8 or later), `updateResourceAcl` takes `customInstructions` and `acl` as top-level fields. + + +An empty string clears an instruction; leaving the field out keeps it, so configuring again never strips a tuned resource. [`GET /connectors/{id}`](/api-reference/v2/endpoint/get-connector) returns the connector's instruction, and [`GET /connectors/{id}/resources`](/api-reference/v2/endpoint/connector-resources) returns each resource's, absent when the resource inherits. In the dashboard, the **Instructions** dialog lists both levels, each resource marked **override** or **inherits**. + +Before you write one: + +- **Future syncs only:** documents already indexed are not indexed again; each keeps the instruction it was ingested under. Set instructions before the first sync when you can. +- **Up to 4,000 characters:** longer values are rejected with `400`, and the stored value stays as it was. +- **Cost:** the text goes into the extraction prompt for every synced document, so a long instruction on a busy connector costs on every sync. Say what matters and stop. +- **Be explicit:** "X was renamed to Y; they are the same product; index under Y" works far better than vague guidance. Name the exact terms and keep unrelated rules in separate sentences. +- **Interpretation only:** instructions do not change which documents sync, where they are stored, or who can read them. Use resource selection, collections, and [ACLs](/essentials/v2/query#6-query-on-behalf-of-a-user) for those. + + + + + + + +## 5. Filter on what HydraDB writes + +Every source a connector syncs carries two metadata layers, the same two that [Metadata](/essentials/v2/metadata) describes for all context. + +`metadata` contains fields declared in your database's metadata schema. Filter them with top-level `metadata_filters` keys. HydraDB always writes `connector_id` and `provider` here for every synced source. Your own `metadata` from configure is merged first, so `connector_id` and `provider` win on conflict. + +`additional_metadata` contains free-form fields and needs no schema. HydraDB always writes `connector_id` and `resource_id` here, plus provider-native fields such as a Slack message timestamp, a GitHub issue number, or a Linear identifier. Your own `additional_metadata` from configure is merged first, so provider-generated fields win on conflict. + +This is the layer to filter on to scope a query to one connector, channel, repository, or table: + + + ```json Querying with a metadata filter + { + "database": "acme_corp", + "query": "deployment checklist", + "metadata_filters": { + "additional_metadata": { + "connector_id": "{connector_id}" + } + } + } + ``` + + Filter on `resource_id` the same way to scope to one channel, repository, or table. + + +To see which provider-native fields a connector writes, call [`GET /connectors/providers?id={provider}`](/api-reference/v2/endpoint/list-connector-providers). Its `filterable_fields` each carry the `filter_key` to use in `metadata_filters`. Its `searchable_fields` are combined into each document's searchable text, so you search them together, not one at a time. + +## 6. ACL on synced content + +For supported providers, HydraDB captures the provider's ACL on every sync, so you do not maintain a second access model. Capture and enforcement are separate: the connector's `enforce_acl` setting controls ACL enforcement on reads. [Query](/essentials/v2/query#6-query-on-behalf-of-a-user) explains principals and what a query's `acl` matches. To change a source's ACL, use [Update Source Metadata](/api-reference/v2/endpoint/update-source-metadata). + +`enforce_acl` is `false` by default. Omitting it on create leaves the new connector unenforced, and existing connectors remain unenforced until an owner or writer enables it. While it is `false`, access control is opt-in on each request: send the caller's identity in `acl` to filter content, and a request without `acl` is not filtered by caller identity. This holds for content from a non-enforced connector even when the same request also reads content from an enforced connector. MCP OAuth does not enforce caller identity for a non-enforced connector; send `acl` when that request needs caller filtering. + +### What each provider captures + +| Provider | ACL HydraDB captures | +| --- | --- | +| **Slack** | Public channels are visible workspace-wide; private channels only to their members, resolved to member emails. | +| **Google Drive** | Per-file sharing: user, group, domain, and public grants. ACL-only changes are picked up through the Drive changes feed, even when the file content does not change. | +| **GitHub** | Repository visibility. Private repos additionally capture the collaborator list when every collaborator has a visible public email; otherwise your resource rule governs. | +| **Confluence** | Space-level view ACLs, with groups expanded to member emails, plus per-page view restrictions. | +| **Jira** | Who holds Browse access per project, plus per-issue security levels. | + +Capture is also built for GitLab, Linear, Dropbox, Zendesk, PagerDuty, Typeform, Attio, LaunchDarkly, ServiceNow, Microsoft Teams, and Outlook, and is switched on per provider. The [provider catalog](/api-reference/v2/endpoint/list-connector-providers) reports capture support in `acl_supported` and summarizes it in `acl_description`. Check [Get Connector Status](/api-reference/v2/endpoint/get-connector-status) for an `acl_warning` after the first sync. For any other provider, [set your own rule on the resource](#set-your-own-rule-on-a-resource). + +### Google Drive files shared with a group + +This section applies only to Google Drive. No other connector expands groups this way or reports this check. + +A Drive file shared with a Google Group carries the grant `group:google:`. To let group members read it, HydraDB reads the group's members through the Google Workspace Directory API. That needs a Drive connection made by a Workspace admin with Directory access. + +When you connect Google Drive, HydraDB checks this access once. The connection check reports the result as `google_group_membership_resolves`, and the dashboard shows it as a notice: + +- `true`: group membership can be read. Members of a group can read the files shared with that group. +- `false`: group membership cannot be read. A file shared only through a group keeps its `group:google:` grant, which no caller matches, so the file stays restricted. With ACL enforcement on, group members cannot see it. A request `acl` sees it only if it names the group. The same applies to a group too large to expand. + +To fix `false`, reconnect Google Drive as a Workspace admin with Directory access. + +### Enforce ACL + +Set `enforce_acl` to `true` to make reads from this connector use the authenticated caller's identity against the ACL HydraDB captured. The provider must report `acl_supported: true` in [List Connector Providers](/api-reference/v2/endpoint/list-connector-providers). Set it on [`POST /connectors`](/api-reference/v2/endpoint/create-connector), or enable or change it later with [`PATCH /connectors/{id}`](/api-reference/v2/endpoint/update-connector). In the dashboard, an owner or writer can use the **Enforce ACL** control in the connector settings. A change takes effect on the next content request for already-synced sources and does not require re-ingestion. + +HydraDB decides which providers report `acl_supported`. If it stops reporting it for a provider, that provider's connectors stop enforcing within about a minute and keep their stored `enforce_acl` value. Enforcement resumes when support returns. + +Only workspace owners and writers can set or change `enforce_acl`; readers can view it. The API requires an owner or writer in a signed-in dashboard session: a request authenticated with an API key can create a connector with the default `false` value, but cannot choose or change the setting. + +When enforcement is enabled, HydraDB selects the identity from authentication rather than trusting a caller-supplied `acl`: + +- **API key or pasted-key MCP:** the email of the person who created the key. +- **MCP OAuth:** the signed-in user. +- **Dashboard:** the signed-in user. + +If a content-read request includes `acl`, HydraDB ignores it for content from connectors with enforcement enabled; the `acl` still scopes content from non-enforced connectors. A successful response includes exactly one machine-readable warning for the override in `meta.warnings`: + +```json +{ + "meta": { + "warnings": [ + { + "code": "acl_ignored_by_connector_enforcement", + "message": "This connector enforces ACL, so the request's acl was ignored." + } + ] + } +} +``` + +An API key stays tied to its creator. When a member is removed from the workspace, or leaves it, every API key they created in that workspace is revoked. Re-inviting them does not restore those keys; they create new ones. Another member must use a key created under their own account. + +### Set your own rule on a resource + +Every source synced from a resource inherits the resource's rule. Set it in `acl` at configure time, or afterwards on its own: + + + + + ```python Python SDK + client.connectors.update_resource_acl( + connector_id, "C_LEADERSHIP", request={"acl": ["grace@acme.com"]} + ) + ``` + + ```typescript TypeScript SDK + await client.connectors.updateResourceAcl({ + id: connectorId, + resourceId: "C_LEADERSHIP", + acl: ["grace@acme.com"], + }); + ``` + + ```bash cURL + curl -X PATCH 'https://api.hydradb.com/connectors/{id}/resources/C_LEADERSHIP' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ "acl": ["grace@acme.com"] }' + ``` + + + + +The change applies to already-synced sources on the next query, with no re-sync. A source's own ACL from the provider wins at the next sync. + +If HydraDB cannot read a resource ACL from the provider, [Get Connector Status](/api-reference/v2/endpoint/get-connector-status) reports an `acl_warning` until the next successful read. Your own resource rule still applies; a resource with no rule is readable by everyone. + +### Restore resource permissions + +To remove a source's own ACL and use its connector resource permissions again, send `acl_inherit: true` without `acl` to [Update Source Metadata](/api-reference/v2/endpoint/update-source-metadata). Use the ID of a source synced by a configured connector. Uploads and manually ingested sources have no connector resource to inherit from. + +```bash cURL +curl -X PATCH 'https://api.hydradb.com/context/confluence-page-9f62/metadata' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ + "database": "acme_corp", + "collection": "engineering", + "acl_inherit": true + }' +``` + +`acl` combined with `acl_inherit: true` is invalid. `acl_inherit: false` or an omitted `acl_inherit` is a no-op and can accompany `acl`. HydraDB rejects inheritance for uploads and sources without connector resource attribution. + + + Inheritance takes effect immediately and can widen access if the resource allows more people than the source's own ACL. The source then follows future permission changes from that resource. Provider-specific source permissions can replace the inherited state on a later sync because ACL writes use last-writer-wins behavior. + + +Deleting a connector resource rule does not widen access on its own. To open a restricted resource, set its ACL to `["__public__"]`. + + + + + +## 7. Connect several accounts of one provider + +One provider can have several connectors: two Slack workspaces, two GitHub organizations, or a personal and a work Gmail. Each is independent, with its own credentials and resources. Give each Slack, GitHub, Linear, or Notion connector a distinct `provider_account_scope`; otherwise sources from two accounts that share an external id overwrite each other in the same database and collection. Gmail has no account scope; tell mailboxes apart with `account_email`. + +All of them can sync into the same collection, so one query searches every account; filter on `connector_id` to narrow to one. If one account's data must never meet the others in a query, set `collection` per resource in [configure](#step-4-configure-the-resources-to-sync). + +## Common mistakes + +- **Editing an existing resource with `POST /connectors/{id}/resources`:** the call returns `409` and changes nothing. Use `PATCH /connectors/{id}/resources/{resource_id}` for instructions and ACLs, or configure again for routing and metadata. +- **Reconfiguring without `name` and `resource_type`:** omitted values are cleared. Send both every time you list a resource. +- **Expecting a resource instruction to add to the connector default:** the resource instruction replaces the connector default. Repeat anything from the default that the resource still needs. +- **Two accounts of one provider with the same `provider_account_scope`:** sources that share an external id overwrite each other. Set a distinct scope per account. +- **Filtering on a provider field as a top-level key:** provider-native fields live in `additional_metadata`. Use the `filter_key` from the provider description. +- **Querying before the first sync has landed:** `lifecycle` reads `ingesting` until then. Wait for `active`, or check `GET /connectors/{id}/status`. + +## Related + +- [Connectors API reference](/api-reference/v2/endpoint/connectors-overview): every endpoint, and which one changes what +- [Context](/essentials/v2/context#send-app-sources): the ingestion model synced sources use, and how to ingest from your own integration +- [Metadata](/essentials/v2/metadata): schema-backed and free-form metadata +- [Databases and Collections](/essentials/v2/databases-and-collections): routing resources to databases and collections +- [Query](/essentials/v2/query): querying connector-synced data diff --git a/essentials/v2/connectors-3.mdx b/essentials/v2/connectors-3.mdx new file mode 100644 index 00000000..5b77bf74 --- /dev/null +++ b/essentials/v2/connectors-3.mdx @@ -0,0 +1,694 @@ +--- +title: "Data Connectors (copy)" +description: "Connect Slack, GitHub, Notion, or any of the 70+ apps with RBAC aware indexing pipelines. HydraDB keeps app data synced into your database." +--- + +HydraDB syncs data from 70 apps into your database without ingestion code on your side. You connect an account once, choose which resources (channels, repositories, pages) to sync, and HydraDB keeps them indexed as searchable [app sources](/essentials/v2/context#send-app-sources). The catalog includes Slack, Gmail, Google Drive, Notion, Jira, Confluence, GitHub, Linear, HubSpot, Zendesk, Supabase, Microsoft Teams, Outlook, Zoom, Gong, and Fireflies. It grows often; call [`GET /connectors/providers`](/api-reference/v2/endpoint/list-connector-providers) for the current list. + +If an app is not in the catalog, or you already have your own integration, ingest its data yourself as [app sources](/essentials/v2/context#send-app-sources). + + + +## 1. Set up a connector + +Setting up a connector takes four calls, made once. The example connects one Slack workspace; every provider uses the same calls, and only the credentials and resource types change. Set up your [SDK client](/api-reference/v2/sdks#client-setup) before running the Python or TypeScript examples. + +### Step 1: Pick a provider + +[`GET /connectors/providers`](/api-reference/v2/endpoint/list-connector-providers) returns the catalog; use an entry's `provider` value in the next call. With `?id={provider}`, it describes one provider, including `credential_schema`, the credentials it needs. + + + + + ```python Python SDK + catalog = client.list_providers() + slack = client.list_providers(id="slack") + ``` + + ```typescript TypeScript SDK + const catalog = await client.listProviders(); + const slack = await client.listProviders({ id: "slack" }); + ``` + + ```bash cURL + curl 'https://api.hydradb.com/connectors/providers' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" + + curl 'https://api.hydradb.com/connectors/providers?id=slack' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" + ``` + + + + A catalog entry looks like this: + + ```json + { + "providers": [ + { + "provider": "slack", + "category": "Communication", + "supported": true, + "webhook_support": false, + "rank": 2 + } + ] + } + ``` + + `webhook_support` is `true` for providers whose data arrives by webhook instead of scheduled syncs, such as Supabase. + + +### Step 2: Create the connector + +[`POST /connectors`](/api-reference/v2/endpoint/create-connector) stores the credentials for one provider account and says which database and collection the synced data goes to. Nothing syncs yet. + + + + + ```python Python SDK + connector = client.connectors.create( + provider="slack", + name="acme-engineering", + database="acme_corp", + collection="company_docs", + provider_account_scope="T12345ACME", + credentials={"access_token": "xoxp-..."}, + ) + connector_id = connector.connector_id + ``` + + ```typescript TypeScript SDK + const connector = await client.connectors.create({ + provider: "slack", + name: "acme-engineering", + database: "acme_corp", + collection: "company_docs", + providerAccountScope: "T12345ACME", + credentials: { access_token: "xoxp-..." }, + }); + const connectorId = connector.connectorId!; + ``` + + ```bash cURL + curl -X POST 'https://api.hydradb.com/connectors' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ + "provider": "slack", + "name": "acme-engineering", + "database": "acme_corp", + "collection": "company_docs", + "provider_account_scope": "T12345ACME", + "credentials": { "access_token": "xoxp-..." } + }' + ``` + + + + The response returns the new connector: + + ```json + { + "connector_id": "{connector_id}", + "provider": "slack", + "name": "acme-engineering", + "database": "acme_corp", + "collection": "company_docs", + "provider_account_scope": "T12345ACME", + "lifecycle": "pending_setup", + "sync_status": "idle", + "sync_interval_seconds": 3600, + "message": "Connector created. Configure resources to start syncing; the first scheduled sync runs in about 5 minutes." + } + ``` + + Keep `connector_id`: every later call uses it. + + +### Step 3: Discover what the credentials can reach + +[`GET /connectors/{id}/discover`](/api-reference/v2/endpoint/discover-connector-resources) asks Slack which channels the token can see; for GitHub it returns repositories, and for Notion it returns pages and databases. Each entry has an `id`, a `name`, and a `resource_type`, which you pass to the next call. Providers that sync a whole account return one entry with `id` `all`. + + + + + ```python Python SDK + found = client.connectors.discover(connector_id) + for resource in found.resources: + print(resource.id, resource.name, resource.resource_type) + ``` + + ```typescript TypeScript SDK + const found = await client.connectors.discover({ id: connectorId }); + for (const resource of found.resources ?? []) { + console.log(resource.id, resource.name, resource.resourceType); + } + ``` + + ```bash cURL + curl 'https://api.hydradb.com/connectors/{id}/discover' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" + ``` + + + + ```json + { + "provider": "slack", + "resources": [ + { "id": "C_GENERAL", "name": "general", "resource_type": "channel" }, + { "id": "C_ENG", "name": "engineering", "resource_type": "channel" } + ] + } + ``` + + For providers with many resources, page with `limit` (1 to 100) and `cursor`, and keep going while `has_more` is `true`. + + +### Step 4: Configure the resources to sync + +[`POST /connectors/{id}/configure`](/api-reference/v2/endpoint/configure-connector) activates the resources you choose and starts the first sync right away. The example keeps both channels in the connector's collection and tags each with a `department`, so one query searches both and a filter can narrow to one. + + + + + ```python Python SDK + result = client.connectors.configure( + connector_id, + lookback_days=30, + resources=[ + { + "resource_id": "C_GENERAL", + "resource_type": "channel", + "name": "general", + "metadata": {"department": "all-hands"}, + "additional_metadata": {"internal_label": "general-slack"}, + }, + { + "resource_id": "C_ENG", + "resource_type": "channel", + "name": "engineering", + "metadata": {"department": "engineering"}, + }, + ], + ) + print(result.configured) + ``` + + ```typescript TypeScript SDK + const result = await client.connectors.configure({ + id: connectorId, + lookbackDays: 30, + resources: [ + { + resourceId: "C_GENERAL", + resourceType: "channel", + name: "general", + metadata: { department: "all-hands" }, + additionalMetadata: { internal_label: "general-slack" }, + }, + { + resourceId: "C_ENG", + resourceType: "channel", + name: "engineering", + metadata: { department: "engineering" }, + }, + ], + }); + console.log(result.configured); + ``` + + ```bash cURL + curl -X POST 'https://api.hydradb.com/connectors/{id}/configure' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ + "lookback_days": 30, + "resources": [ + { + "resource_id": "C_GENERAL", + "resource_type": "channel", + "name": "general", + "metadata": { "department": "all-hands" }, + "additional_metadata": { "internal_label": "general-slack" } + }, + { + "resource_id": "C_ENG", + "resource_type": "channel", + "name": "engineering", + "metadata": { "department": "engineering" } + } + ] + }' + ``` + + + + ```json + { + "connector_id": "{connector_id}", + "configured": 2, + "backfill": false, + "first_sync_at": "2026-06-01T13:00:00Z", + "message": "First sync is running. Data usually appears within a few minutes; the connector reports lifecycle 'ingesting' until data has synced." + } + ``` + + `configured` is the number of resources saved. A `warnings` list names resources that were saved but returned no records when HydraDB tested them; they stay configured and index nothing until they have data. + + +### What each property means + +| Property | Call | What it is | +| --- | --- | --- | +| `provider` | create | A `provider` value from the catalog, such as `slack`, `github`, or `notion`. | +| `name` | create | A label for this connector. Optional, and it cannot be changed later. | +| `database`, `collection` | create | Where synced data goes. `database` must already exist. Each resource can route somewhere else with its own `collection` or `database`. | +| `provider_account_scope` | create | Which external account this connector belongs to, such as a Slack workspace id. It is part of the deduplication key of every synced source, so sources from two accounts never overwrite each other. [Set it per provider](#set-the-account-scope-per-provider). | +| `credentials` | create | The provider's credentials, in the shape of its `credential_schema`. Credentials that do not match the schema are rejected with `422`. | +| `custom_instructions` | create, configure | Guidance for how synced documents are interpreted, for the whole connector or for one resource. See [section 4](#4-custom-ingestion-instructions). | +| `sync_interval_seconds` | create | How often scheduled syncs run. Omit it for the provider default, one hour for most providers. | +| `enforce_acl` | create, update | Whether reads from this connector always enforce ACL for the authenticated caller. Optional and `false` by default. Only workspace owners and writers can set it, and enabling it requires a provider with `acl_supported`. See [ACL enforcement](#enforce-acl). | +| `lookback_days` | configure | How much history the first sync fetches (default `30`). After that, each sync fetches only what is new. Above 30, some providers fetch the older history in the background and the response reports `backfill: true`. | +| `resource_id`, `resource_type`, `name` | configure | The `id`, `resource_type`, and `name` of an entry from discover. Send all three every time you list a resource. | +| `metadata` | configure | Fields merged into the database metadata of every source from this resource. Declare the ones you filter on in your database's [metadata schema](/essentials/v2/metadata). | +| `additional_metadata` | configure | Free-form fields merged into the additional metadata of every source from this resource. No schema needed. | +| `acl` | configure | Your own rule for who can read this resource's sources. Omitted means unrestricted. See [Set your own rule on a resource](#set-your-own-rule-on-a-resource). | + + + +### Set the account scope per provider + +- **Slack:** the workspace id, which starts with `T`. Open Slack in a browser: it is the `T...` segment of `app.slack.com/client/T.../`. +- **GitHub:** the organization or user login from your GitHub URL, as in `github.com/my-github-org`. +- **Linear:** the workspace name shown in Settings, under Workspace. +- **Notion:** the workspace name shown at the top of Settings, under Workspace. +- **Gmail:** leave it empty. To scope queries to one mailbox, filter on `account_email` in `additional_metadata` instead. + + + +### Linear workspace documents + +Linear documents do not belong to one team or project, so they sync as one always-present resource. Discovery returns it alongside the teams and projects, and you configure it like any other resource. Each document is indexed as a `knowledge_base` app source. Its Markdown body is searchable, and files uploaded to it (hosted on `uploads.linear.app`) are downloaded, parsed, and indexed too. Links to external URLs are kept as metadata, not fetched. + + + + + ```json Discover entry + { + "id": "linear_workspace", + "name": "Workspace Documents", + "resource_type": "linear_workspace" + } + ``` + + ```json Configure entry + { + "resource_id": "linear_workspace", + "resource_type": "linear_workspace", + "name": "Workspace Documents" + } + ``` + + + + The documents go to the connector's collection; add `collection` to route them elsewhere. In the dashboard, tick "Workspace Documents" in the resource list, the same way you tick a team or project. + + +## 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. + + + + + ```python Python SDK + status = client.connectors.status(connector_id) + print(status.status, status.lifecycle) + ``` + + ```typescript TypeScript SDK + const status = await client.connectors.status({ id: connectorId }); + console.log(status.status, status.lifecycle); + ``` + + ```bash cURL + curl 'https://api.hydradb.com/connectors/{id}/status' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" + ``` + + + + +`status` is the overall health, such as `healthy`, `degraded`, or `failed`, and `lifecycle` is what the connector is doing: `ingesting` until the first sync lands data, then `active`. Each resource reports its own result, with an `action` when it failed. [Get Connector Status](/api-reference/v2/endpoint/get-connector-status) explains every value. + +From then on, HydraDB syncs every active resource every `sync_interval_seconds` (one hour by default). Each sync fetches only what changed since the resource's saved position (its cursor) and ingests it as app sources. Call [`POST /connectors/{id}/sync`](/api-reference/v2/endpoint/sync-connector) when you need data sooner; a `202` means the sync was started, not that it finished. + +Once `lifecycle` is `active`, query the data with [`POST /query`](/api-reference/v2/endpoint/query) like any other knowledge. [Section 5](#5-filter-on-what-hydradb-writes) shows how to scope a query to one connector or one channel. + + + +## 3. Change a connector after setup + +Use the call that matches what you want to change. The update calls change only the fields you send. + +- **One resource's instructions or ACL:** [Update Connector Resource](/api-reference/v2/endpoint/update-connector-resource), `PATCH /connectors/{id}/resources/{resource_id}`. +- **The connector's instructions, sync interval, or credentials:** [Update Connector](/api-reference/v2/endpoint/update-connector), `PATCH /connectors/{id}`. Sending `credentials` reconnects the connector after a token expired or was revoked; it keeps its id, resources, and sync positions. +- **Which resources sync, and their collection or metadata:** call [Configure Connector](/api-reference/v2/endpoint/configure-connector) again. Resources you leave out are not touched. For each resource you list, send `name` and `resource_type` again, because omitted values are cleared. Its sync position, instructions, and ACL are kept. +- **Stop syncing a resource:** [Delete Connector Resource](/api-reference/v2/endpoint/delete-connector-resource). +- **Stop syncing for a while:** [Pause Connector](/api-reference/v2/endpoint/pause-connector), then [Resume Connector](/api-reference/v2/endpoint/resume-connector). Each resource resumes from its saved position, so nothing created in the meantime is skipped. +- **Remove the connector:** [Delete Connector](/api-reference/v2/endpoint/delete-connector). + + + `POST /connectors/{id}/resources` adds new resources only. On a `resource_id` that already exists, it returns `409` and changes nothing. To edit a resource, use configure or `PATCH /connectors/{id}/resources/{resource_id}`. + + + + +## 4. Custom ingestion instructions + +A custom ingestion instruction is free text that a connector reads at sync time and includes when it extracts entities and relationships from every document it syncs. Use one to explain what the documents do not spell out: a product rename, what a channel is for, or what an internal term means. + +Suppose your product was renamed from _Aurora_ to _Nimbus_. Years of Slack threads and Confluence pages mention only the old name, so a search for "Nimbus" misses them. One instruction on the connector fixes that at ingestion time, with no reconnection. + + + + + ```python Python SDK + client.connectors.update( + connector_id, + custom_instructions=( + "Aurora was renamed to Nimbus in January 2025; they are the same product. " + "Index all Aurora content under the canonical name Nimbus and record Aurora as a former name." + ), + ) + ``` + + ```typescript TypeScript SDK + await client.connectors.update({ + id: connectorId, + customInstructions: + "Aurora was renamed to Nimbus in January 2025; they are the same product. " + + "Index all Aurora content under the canonical name Nimbus and record Aurora as a former name.", + }); + ``` + + ```bash cURL + curl -X PATCH 'https://api.hydradb.com/connectors/{id}' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ + "custom_instructions": "Aurora was renamed to Nimbus in January 2025; they are the same product. Index all Aurora content under the canonical name Nimbus and record Aurora as a former name." + }' + ``` + + + + +From the next sync, documents that mention only Aurora are extracted under the Nimbus entity, with alias links to the old name, so new-name queries reach old-name documents through the context graph. The same works for focus ("prioritize decisions, owners, and deadlines; ignore social chatter"), interpretation ("threads in this workspace are incident retros; extract root cause and remediation"), and vocabulary ("SEV1 and SEV2 are incident severities, not product names"). An instruction can also be set when you create the connector, or from the dashboard's **Instructions** button. + +**Connector default and resource override:** an instruction on the connector applies to every resource without one of its own. An instruction on a resource, such as one Slack channel or one Jira project, **replaces** the connector default for that resource's documents rather than adding to it. Set a resource's instruction with `custom_instructions` in configure, or afterwards on its own: + + + + + ```python Python SDK + client.connectors.update_resource_acl( + connector_id, + "C_INCIDENTS", + request={"custom_instructions": "These are incident retros; extract root cause, impact, and owner."}, + ) + + # Clear it, so the channel uses the connector default again. + client.connectors.update_resource_acl( + connector_id, "C_INCIDENTS", request={"custom_instructions": ""} + ) + ``` + + ```typescript TypeScript SDK + await client.connectors.updateResourceAcl({ + id: connectorId, + resourceId: "C_INCIDENTS", + customInstructions: "These are incident retros; extract root cause, impact, and owner.", + }); + + // Clear it, so the channel uses the connector default again. + await client.connectors.updateResourceAcl({ + id: connectorId, + resourceId: "C_INCIDENTS", + customInstructions: "", + }); + ``` + + ```bash cURL + curl -X PATCH 'https://api.hydradb.com/connectors/{id}/resources/C_INCIDENTS' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ "custom_instructions": "These are incident retros; extract root cause, impact, and owner." }' + + # Clear it, so the channel uses the connector default again. + curl -X PATCH 'https://api.hydradb.com/connectors/{id}/resources/C_INCIDENTS' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ "custom_instructions": "" }' + ``` + + + + In TypeScript (SDK 2.1.8 or later), `updateResourceAcl` takes `customInstructions` and `acl` as top-level fields. + + +An empty string clears an instruction; leaving the field out keeps it, so configuring again never strips a tuned resource. [`GET /connectors/{id}`](/api-reference/v2/endpoint/get-connector) returns the connector's instruction, and [`GET /connectors/{id}/resources`](/api-reference/v2/endpoint/connector-resources) returns each resource's, absent when the resource inherits. In the dashboard, the **Instructions** dialog lists both levels, each resource marked **override** or **inherits**. + +Before you write one: + +- **Future syncs only:** documents already indexed are not indexed again; each keeps the instruction it was ingested under. Set instructions before the first sync when you can. +- **Up to 4,000 characters:** longer values are rejected with `400`, and the stored value stays as it was. +- **Cost:** the text goes into the extraction prompt for every synced document, so a long instruction on a busy connector costs on every sync. Say what matters and stop. +- **Be explicit:** "X was renamed to Y; they are the same product; index under Y" works far better than vague guidance. Name the exact terms and keep unrelated rules in separate sentences. +- **Interpretation only:** instructions do not change which documents sync, where they are stored, or who can read them. Use resource selection, collections, and [ACLs](/essentials/v2/query#6-query-on-behalf-of-a-user) for those. + + + + + + + +## 5. Filter on what HydraDB writes + +Every source a connector syncs carries two metadata layers, the same two that [Metadata](/essentials/v2/metadata) describes for all context. + +`metadata` contains fields declared in your database's metadata schema. Filter them with top-level `metadata_filters` keys. HydraDB always writes `connector_id` and `provider` here for every synced source. Your own `metadata` from configure is merged first, so `connector_id` and `provider` win on conflict. + +`additional_metadata` contains free-form fields and needs no schema. HydraDB always writes `connector_id` and `resource_id` here, plus provider-native fields such as a Slack message timestamp, a GitHub issue number, or a Linear identifier. Your own `additional_metadata` from configure is merged first, so provider-generated fields win on conflict. + +This is the layer to filter on to scope a query to one connector, channel, repository, or table: + + + ```json Querying with a metadata filter + { + "database": "acme_corp", + "query": "deployment checklist", + "metadata_filters": { + "additional_metadata": { + "connector_id": "{connector_id}" + } + } + } + ``` + + Filter on `resource_id` the same way to scope to one channel, repository, or table. + + +To see which provider-native fields a connector writes, call [`GET /connectors/providers?id={provider}`](/api-reference/v2/endpoint/list-connector-providers). Its `filterable_fields` each carry the `filter_key` to use in `metadata_filters`. Its `searchable_fields` are combined into each document's searchable text, so you search them together, not one at a time. + +## 6. ACL on synced content + +For supported providers, HydraDB captures the provider's ACL on every sync, so you do not maintain a second access model. Capture and enforcement are separate: the connector's `enforce_acl` setting controls ACL enforcement on reads. [Query](/essentials/v2/query#6-query-on-behalf-of-a-user) explains principals and what a query's `acl` matches. To change a source's ACL, use [Update Source Metadata](/api-reference/v2/endpoint/update-source-metadata). + +`enforce_acl` is `false` by default. Omitting it on create leaves the new connector unenforced, and existing connectors remain unenforced until an owner or writer enables it. While it is `false`, access control is opt-in on each request: send the caller's identity in `acl` to filter content, and a request without `acl` is not filtered by caller identity. This holds for content from a non-enforced connector even when the same request also reads content from an enforced connector. MCP OAuth does not enforce caller identity for a non-enforced connector; send `acl` when that request needs caller filtering. + +### What each provider captures + +| Provider | ACL HydraDB captures | +| --- | --- | +| **Slack** | Public channels are visible workspace-wide; private channels only to their members, resolved to member emails. | +| **Google Drive** | Per-file sharing: user, group, domain, and public grants. ACL-only changes are picked up through the Drive changes feed, even when the file content does not change. | +| **GitHub** | Repository visibility. Private repos additionally capture the collaborator list when every collaborator has a visible public email; otherwise your resource rule governs. | +| **Confluence** | Space-level view ACLs, with groups expanded to member emails, plus per-page view restrictions. | +| **Jira** | Who holds Browse access per project, plus per-issue security levels. | + +Capture is also built for GitLab, Linear, Dropbox, Zendesk, PagerDuty, Typeform, Attio, LaunchDarkly, ServiceNow, Microsoft Teams, and Outlook, and is switched on per provider. The [provider catalog](/api-reference/v2/endpoint/list-connector-providers) reports capture support in `acl_supported` and summarizes it in `acl_description`. Check [Get Connector Status](/api-reference/v2/endpoint/get-connector-status) for an `acl_warning` after the first sync. For any other provider, [set your own rule on the resource](#set-your-own-rule-on-a-resource). + +### Google Drive files shared with a group + +This section applies only to Google Drive. No other connector expands groups this way or reports this check. + +A Drive file shared with a Google Group carries the grant `group:google:`. To let group members read it, HydraDB reads the group's members through the Google Workspace Directory API. That needs a Drive connection made by a Workspace admin with Directory access. + +When you connect Google Drive, HydraDB checks this access once. The connection check reports the result as `google_group_membership_resolves`, and the dashboard shows it as a notice: + +- `true`: group membership can be read. Members of a group can read the files shared with that group. +- `false`: group membership cannot be read. A file shared only through a group keeps its `group:google:` grant, which no caller matches, so the file stays restricted. With ACL enforcement on, group members cannot see it. A request `acl` sees it only if it names the group. The same applies to a group too large to expand. + +To fix `false`, reconnect Google Drive as a Workspace admin with Directory access. + +### Enforce ACL + +Set `enforce_acl` to `true` to make reads from this connector use the authenticated caller's identity against the ACL HydraDB captured. The provider must report `acl_supported: true` in [List Connector Providers](/api-reference/v2/endpoint/list-connector-providers). Set it on [`POST /connectors`](/api-reference/v2/endpoint/create-connector), or enable or change it later with [`PATCH /connectors/{id}`](/api-reference/v2/endpoint/update-connector). In the dashboard, an owner or writer can use the **Enforce ACL** control in the connector settings. A change takes effect on the next content request for already-synced sources and does not require re-ingestion. + +HydraDB decides which providers report `acl_supported`. If it stops reporting it for a provider, that provider's connectors stop enforcing within about a minute and keep their stored `enforce_acl` value. Enforcement resumes when support returns. + +Only workspace owners and writers can set or change `enforce_acl`; readers can view it. The API requires an owner or writer in a signed-in dashboard session: a request authenticated with an API key can create a connector with the default `false` value, but cannot choose or change the setting. + +When enforcement is enabled, HydraDB selects the identity from authentication rather than trusting a caller-supplied `acl`: + +- **API key or pasted-key MCP:** the email of the person who created the key. +- **MCP OAuth:** the signed-in user. +- **Dashboard:** the signed-in user. + +If a content-read request includes `acl`, HydraDB ignores it for content from connectors with enforcement enabled; the `acl` still scopes content from non-enforced connectors. A successful response includes exactly one machine-readable warning for the override in `meta.warnings`: + +```json +{ + "meta": { + "warnings": [ + { + "code": "acl_ignored_by_connector_enforcement", + "message": "This connector enforces ACL, so the request's acl was ignored." + } + ] + } +} +``` + +An API key stays tied to its creator. When a member is removed from the workspace, or leaves it, every API key they created in that workspace is revoked. Re-inviting them does not restore those keys; they create new ones. Another member must use a key created under their own account. + +### Set your own rule on a resource + +Every source synced from a resource inherits the resource's rule. Set it in `acl` at configure time, or afterwards on its own: + + + + + ```python Python SDK + client.connectors.update_resource_acl( + connector_id, "C_LEADERSHIP", request={"acl": ["grace@acme.com"]} + ) + ``` + + ```typescript TypeScript SDK + await client.connectors.updateResourceAcl({ + id: connectorId, + resourceId: "C_LEADERSHIP", + acl: ["grace@acme.com"], + }); + ``` + + ```bash cURL + curl -X PATCH 'https://api.hydradb.com/connectors/{id}/resources/C_LEADERSHIP' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ "acl": ["grace@acme.com"] }' + ``` + + + + +The change applies to already-synced sources on the next query, with no re-sync. A source's own ACL from the provider wins at the next sync. + +If HydraDB cannot read a resource ACL from the provider, [Get Connector Status](/api-reference/v2/endpoint/get-connector-status) reports an `acl_warning` until the next successful read. Your own resource rule still applies; a resource with no rule is readable by everyone. + +### Restore resource permissions + +To remove a source's own ACL and use its connector resource permissions again, send `acl_inherit: true` without `acl` to [Update Source Metadata](/api-reference/v2/endpoint/update-source-metadata). Use the ID of a source synced by a configured connector. Uploads and manually ingested sources have no connector resource to inherit from. + +```bash cURL +curl -X PATCH 'https://api.hydradb.com/context/confluence-page-9f62/metadata' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ + "database": "acme_corp", + "collection": "engineering", + "acl_inherit": true + }' +``` + +`acl` combined with `acl_inherit: true` is invalid. `acl_inherit: false` or an omitted `acl_inherit` is a no-op and can accompany `acl`. HydraDB rejects inheritance for uploads and sources without connector resource attribution. + + + Inheritance takes effect immediately and can widen access if the resource allows more people than the source's own ACL. The source then follows future permission changes from that resource. Provider-specific source permissions can replace the inherited state on a later sync because ACL writes use last-writer-wins behavior. + + +Deleting a connector resource rule does not widen access on its own. To open a restricted resource, set its ACL to `["__public__"]`. + + + + + +## 7. Connect several accounts of one provider + +One provider can have several connectors: two Slack workspaces, two GitHub organizations, or a personal and a work Gmail. Each is independent, with its own credentials and resources. Give each Slack, GitHub, Linear, or Notion connector a distinct `provider_account_scope`; otherwise sources from two accounts that share an external id overwrite each other in the same database and collection. Gmail has no account scope; tell mailboxes apart with `account_email`. + +All of them can sync into the same collection, so one query searches every account; filter on `connector_id` to narrow to one. If one account's data must never meet the others in a query, set `collection` per resource in [configure](#step-4-configure-the-resources-to-sync). + +## Common mistakes + +- **Editing an existing resource with `POST /connectors/{id}/resources`:** the call returns `409` and changes nothing. Use `PATCH /connectors/{id}/resources/{resource_id}` for instructions and ACLs, or configure again for routing and metadata. +- **Reconfiguring without `name` and `resource_type`:** omitted values are cleared. Send both every time you list a resource. +- **Expecting a resource instruction to add to the connector default:** the resource instruction replaces the connector default. Repeat anything from the default that the resource still needs. +- **Two accounts of one provider with the same `provider_account_scope`:** sources that share an external id overwrite each other. Set a distinct scope per account. +- **Filtering on a provider field as a top-level key:** provider-native fields live in `additional_metadata`. Use the `filter_key` from the provider description. +- **Querying before the first sync has landed:** `lifecycle` reads `ingesting` until then. Wait for `active`, or check `GET /connectors/{id}/status`. + +## Related + +- [Connectors API reference](/api-reference/v2/endpoint/connectors-overview): every endpoint, and which one changes what +- [Context](/essentials/v2/context#send-app-sources): the ingestion model synced sources use, and how to ingest from your own integration +- [Metadata](/essentials/v2/metadata): schema-backed and free-form metadata +- [Databases and Collections](/essentials/v2/databases-and-collections): routing resources to databases and collections +- [Query](/essentials/v2/query): querying connector-synced data + +--- + +HydraDB syncs Slack, GitHub, Notion, and [70+ other apps](/api-reference/v2/endpoint/list-connector-providers) into your database as searchable app sources. No ingestion code needed. + +## Set up + +1. **Pick a provider:** `GET /connectors/providers`. Add `?id=slack` to see the credentials it needs. +2. **Create:** `POST /connectors` with credentials, a target database and collection, and `provider_account_scope`. +3. **Discover:** `GET /connectors/{id}/discover` lists the channels, repos, or pages the credentials can reach. +4. **Configure:** `POST /connectors/{id}/configure` with the resources to sync. The first sync starts immediately. + + + ...one end-to-end example... + + +## Change a connector + +| To change | Call | +| --- | --- | +| A resource's instructions or ACL | `PATCH /connectors/{id}/resources/{resource_id}` | +| Instructions, interval, or credentials | `PATCH /connectors/{id}` | +| Which resources sync, routing, metadata | `POST /connectors/{id}/configure` (resend `name` and `resource_type`) | +| Pause or remove | Pause, Resume, or Delete Connector | + +## Custom instructions + +Free text applied when extracting entities from synced documents, for example: "Aurora was renamed to Nimbus; index under Nimbus." + +- A resource instruction **replaces** the connector default. +- Applies to future syncs only. Maximum 4,000 characters. +- An empty string clears it. Omitting the field keeps it. diff --git a/essentials/v2/connectors.mdx b/essentials/v2/connectors.mdx index efbb8d6c..ebf4331b 100644 --- a/essentials/v2/connectors.mdx +++ b/essentials/v2/connectors.mdx @@ -1,21 +1,64 @@ --- -title: "Connectors" -description: "Connect Slack, GitHub, Notion, or any of 70 apps, and HydraDB keeps their data synced into your database." +title: "Data Connectors" +description: "Connect Slack, GitHub, Notion, or any of the 70+ apps with RBAC aware indexing pipelines. HydraDB keeps app data synced into your database." --- -HydraDB syncs data from 70 apps into your database without ingestion code on your side. You connect an account once, choose which resources (channels, repositories, pages) to sync, and HydraDB keeps them indexed as searchable [app sources](/essentials/v2/context#send-app-sources). The catalog includes Slack, Gmail, Google Drive, Notion, Jira, Confluence, GitHub, Linear, HubSpot, Zendesk, Supabase, Microsoft Teams, Outlook, Zoom, Gong, and Fireflies. It grows often; call [`GET /connectors/providers`](/api-reference/v2/endpoint/list-connector-providers) for the current list. +Connect an app and choose which resources (channels, repositories, pages, etc) to sync. HydraDB keeps them synced into your database, with zero ingestion infrastructure and management required at your side. Connectors include Slack, Zoom, Supabase, Gmail, and many more. -If an app is not in the catalog, or you already have your own integration, ingest its data yourself as [app sources](/essentials/v2/context#send-app-sources). +## Overview + +```mermaid +%%{init: {"theme": "base", "themeVariables": {"fontFamily": "Geist, ui-sans-serif, system-ui, sans-serif", "fontSize": "14px", "lineColor": "#BCBFCC"}, "flowchart": {"curve": "basis", "nodeSpacing": 24, "rankSpacing": 16, "padding": 12}}}%% +flowchart TB + root(["Connectors Overview"]):::root + + S1("1. Set up
a connector"):::section + S2("2. Check that
it is syncing"):::section + S3("3. Change a connector
after setup"):::section + S4("4. Custom ingestion
instructions"):::section + S5("5. Filter on what
HydraDB writes"):::section + S6("6. ACL on
synced content"):::section + S7("7. Connect several
accounts of one provider"):::section + CM("Common mistakes"):::section + RL("Related"):::section + + root ---> S1 & S2 & S3 & S4 & S5 & S6 & S7 & CM & RL + + subgraph G1[" "] + direction TB + C1["Step 1: Pick a provider"]:::sub ~~~ C2["Step 2: Create
the connector"]:::sub + C2 ~~~ C3["Step 3: Discover what
the credentials can reach"]:::sub + C3 ~~~ C4["Step 4: Configure the
resources to start sync"]:::sub + end + + subgraph G6[" "] + direction TB + A2["Enforce ACL"]:::sub + A2 ~~~ A3["Set your own rule
on a resource"]:::sub + end + + S1 --> G1 + S6 --> G6 + + classDef root fill:#000000,stroke:#FF5719,stroke-width:2px,color:#FFFFFF,font-weight:600,font-size:16px + classDef section fill:#FFFFFF,stroke:#000000,stroke-width:1.5px,color:#000000,font-weight:500 + classDef sub fill:#FFFFFF,stroke:#FF5719,stroke-width:1.5px,color:#000000 + + style G1 fill:transparent,stroke:#D3D6E0,stroke-dasharray:5 4 + style G6 fill:transparent,stroke:#D3D6E0,stroke-dasharray:5 4 +``` + +You don't have to write or maintain ingestion code, infrastructure or organize data. On every sync, HydraDB parses the source, organizes it into a context graph, and tags it with metadata: the connector, the resource, and provider-native fields for eg a Slack message with timestamp or a GitHub issue number. -## 1. Set up a connector +## Setting up a connector -Setting up a connector takes four calls, made once. The example connects one Slack workspace; every provider uses the same calls, and only the credentials and resource types change. Set up your [SDK client](/api-reference/v2/sdks#client-setup) before running the Python or TypeScript examples. +They are the same for every provider; only the credentials and resource types change. Set up your [SDK client](/api-reference/v2/sdks#client-setup) first. ### Step 1: Pick a provider -[`GET /connectors/providers`](/api-reference/v2/endpoint/list-connector-providers) returns the catalog; use an entry's `provider` value in the next call. With `?id={provider}`, it describes one provider, including `credential_schema`, the credentials it needs. +[`GET /connectors/providers`](/api-reference/v2/endpoint/list-connector-providers) lists the providers you can connect. Add `?id={provider}` to see the credentials that provider needs (`credential_schema`). @@ -61,7 +104,7 @@ A catalog entry looks like this: ### Step 2: Create the connector -[`POST /connectors`](/api-reference/v2/endpoint/create-connector) stores the credentials for one provider account and says which database and collection the synced data goes to. Nothing syncs yet. +[`POST /connectors`](/api-reference/v2/endpoint/create-connector) saves the credentials and sets the database and collection the data goes to. Nothing syncs yet. Keep the `connector_id` it returns; every later call uses it. @@ -121,15 +164,13 @@ The response returns the new connector: } ``` -Keep `connector_id`: every later call uses it. - -### Step 3: Discover what the credentials can reach +### Step 3: Discover what you can sync from each connector -[`GET /connectors/{id}/discover`](/api-reference/v2/endpoint/discover-connector-resources) asks Slack which channels the token can see; for GitHub it returns repositories, and for Notion it returns pages and databases. Each entry has an `id`, a `name`, and a `resource_type`, which you pass to the next call. Providers that sync a whole account return one entry with `id` `all`. +[`GET /connectors/{id}/discover`](/api-reference/v2/endpoint/discover-connector-resources) lists the resources the credentials can see, such as channels, repositories, or pages. Each entry has an `id`, `name`, and `resource_type`, which you pass to the next call. If a provider has many resources, page with `limit` (1 to 100) and `cursor`, and keep going while `has_more` is `true`. - + ```python Python SDK @@ -160,13 +201,11 @@ curl 'https://api.hydradb.com/connectors/{id}/discover' \ } ``` -For providers with many resources, page with `limit` (1 to 100) and `cursor`, and keep going while `has_more` is `true`. - ### Step 4: Configure the resources to sync -[`POST /connectors/{id}/configure`](/api-reference/v2/endpoint/configure-connector) activates the resources you choose and starts the first sync right away. The example keeps both channels in the connector's collection and tags each with a `department`, so one query searches both and a filter can narrow to one. +[`POST /connectors/{id}/configure`](/api-reference/v2/endpoint/configure-connector) saves the resources you pick and starts the first sync right away. @@ -255,315 +294,115 @@ curl -X POST 'https://api.hydradb.com/connectors/{id}/configure' \ -### What each property means - -| Property | Call | What it is | -|---|---|---| -| `provider` | create | A `provider` value from the catalog, such as `slack`, `github`, or `notion`. | -| `name` | create | A label for this connector. Optional, and it cannot be changed later. | -| `database`, `collection` | create | Where synced data goes. `database` must already exist. Each resource can route somewhere else with its own `collection` or `database`. | -| `provider_account_scope` | create | Which external account this connector belongs to, such as a Slack workspace id. It is part of the deduplication key of every synced source, so sources from two accounts never overwrite each other. [Set it per provider](#set-the-account-scope-per-provider). | -| `credentials` | create | The provider's credentials, in the shape of its `credential_schema`. Credentials that do not match the schema are rejected with `422`. | -| `custom_instructions` | create, configure | Guidance for how synced documents are interpreted, for the whole connector or for one resource. See [section 4](#4-custom-ingestion-instructions). | -| `sync_interval_seconds` | create | How often scheduled syncs run. Omit it for the provider default, one hour for most providers. | -| `enforce_acl` | create, update | Whether reads from this connector always enforce ACL for the authenticated caller. Optional and `false` by default. Only workspace owners and writers can set it, and enabling it requires a provider with `acl_supported`. See [ACL enforcement](#enforce-acl). | -| `lookback_days` | configure | How much history the first sync fetches (default `30`). After that, each sync fetches only what is new. Above 30, some providers fetch the older history in the background and the response reports `backfill: true`. | -| `resource_id`, `resource_type`, `name` | configure | The `id`, `resource_type`, and `name` of an entry from discover. Send all three every time you list a resource. | -| `metadata` | configure | Fields merged into the database metadata of every source from this resource. Declare the ones you filter on in your database's [metadata schema](/essentials/v2/metadata). | -| `additional_metadata` | configure | Free-form fields merged into the additional metadata of every source from this resource. No schema needed. | -| `acl` | configure | Your own rule for who can read this resource's sources. Omitted means unrestricted. See [Set your own rule on a resource](#set-your-own-rule-on-a-resource). | - - - -### Set the account scope per provider - -- **Slack:** the workspace id, which starts with `T`. Open Slack in a browser: it is the `T...` segment of `app.slack.com/client/T.../`. -- **GitHub:** the organization or user login from your GitHub URL, as in `github.com/my-github-org`. -- **Linear:** the workspace name shown in Settings, under Workspace. -- **Notion:** the workspace name shown at the top of Settings, under Workspace. -- **Gmail:** leave it empty. To scope queries to one mailbox, filter on `account_email` in `additional_metadata` instead. +### What does each property mean - - -### Linear workspace documents - -Linear documents do not belong to one team or project, so they sync as one always-present resource. Discovery returns it alongside the teams and projects, and you configure it like any other resource. Each document is indexed as a `knowledge_base` app source. Its Markdown body is searchable, and files uploaded to it (hosted on `uploads.linear.app`) are downloaded, parsed, and indexed too. Links to external URLs are kept as metadata, not fetched. - - - - -```json Discover entry -{ - "id": "linear_workspace", - "name": "Workspace Documents", - "resource_type": "linear_workspace" -} -``` -```json Configure entry -{ - "resource_id": "linear_workspace", - "resource_type": "linear_workspace", - "name": "Workspace Documents" -} -``` - - -The documents go to the connector's collection; add `collection` to route them elsewhere. In the dashboard, tick "Workspace Documents" in the resource list, the same way you tick a team or project. - - - -## 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. - - - - -```python Python SDK -status = client.connectors.status(connector_id) -print(status.status, status.lifecycle) -``` -```typescript TypeScript SDK -const status = await client.connectors.status({ id: connectorId }); -console.log(status.status, status.lifecycle); -``` -```bash cURL -curl 'https://api.hydradb.com/connectors/{id}/status' \ - -H "Authorization: Bearer $HYDRADB_API_KEY" \ - -H "API-Version: 2" -``` - +| Property | Set in | Meaning | +| --- | --- | --- | +| `provider` | create | Which app, such as `slack`. | +| `provider_account_scope` | create | Which account this is, such as a Slack workspace id. It keeps sources from two accounts from overwriting each other. [Set it per provider](#set-the-account-scope-per-provider). | +| `credentials` | create | The app's credentials, in the shape of its `credential_schema`. | +| `custom_instructions` | create, configure | How to interpret synced documents. See [section 4](#4-custom-ingestion-instructions). | +| `sync_interval_seconds` | create | How often it syncs. The default is 1 hour for most providers. | +| `enforce_acl` | create, update | Filter reads by the caller's identity. The default is `false`, and it requires a provider with `acl_supported: true`. See [Enforce ACL](#enforce-acl). | +| `lookback_days` | configure | How much history the first sync fetches. The default is 30 days. | +| `resource_id`, `resource_type`, `name` | configure | Copied from discover. Send all three every time you list a resource. | +| `acl` | configure | Who can read the ingested resource. By default ACLs are mirrored from the apps. If you omit it, anyone can read. | - + -`status` is the overall health, such as `healthy`, `degraded`, or `failed`, and `lifecycle` is what the connector is doing: `ingesting` until the first sync lands data, then `active`. Each resource reports its own result, with an `action` when it failed. [Get Connector Status](/api-reference/v2/endpoint/get-connector-status) explains every value. +## 2. Syncing -From then on, HydraDB syncs every active resource every `sync_interval_seconds` (one hour by default). Each sync fetches only what changed since the resource's saved position (its cursor) and ingests it as app sources. Call [`POST /connectors/{id}/sync`](/api-reference/v2/endpoint/sync-connector) when you need data sooner; a `202` means the sync was started, not that it finished. +[`GET /connectors/{id}/status`](/api-reference/v2/endpoint/get-connector-status) reports the connector and each resource. `lifecycle` reads as `ingesting` until the first sync ingests data fully, then it says `active`. Query the data once it's `active`. -Once `lifecycle` is `active`, query the data with [`POST /query`](/api-reference/v2/endpoint/query) like any other knowledge. [Section 5](#5-filter-on-what-hydradb-writes) shows how to scope a query to one connector or one channel. +After that, HydraDB syncs every `sync_interval_seconds` (1 hour by default). Call `POST /connectors/{id}/sync` to change. -## 3. Change a connector after setup +## 3. Making changes to setup -Use the call that matches what you want to change. The update calls change only the fields you send. - -- **One resource's instructions or ACL:** [Update Connector Resource](/api-reference/v2/endpoint/update-connector-resource), `PATCH /connectors/{id}/resources/{resource_id}`. -- **The connector's instructions, sync interval, or credentials:** [Update Connector](/api-reference/v2/endpoint/update-connector), `PATCH /connectors/{id}`. Sending `credentials` reconnects the connector after a token expired or was revoked; it keeps its id, resources, and sync positions. -- **Which resources sync, and their collection or metadata:** call [Configure Connector](/api-reference/v2/endpoint/configure-connector) again. Resources you leave out are not touched. For each resource you list, send `name` and `resource_type` again, because omitted values are cleared. Its sync position, instructions, and ACL are kept. -- **Stop syncing a resource:** [Delete Connector Resource](/api-reference/v2/endpoint/delete-connector-resource). -- **Stop syncing for a while:** [Pause Connector](/api-reference/v2/endpoint/pause-connector), then [Resume Connector](/api-reference/v2/endpoint/resume-connector). Each resource resumes from its saved position, so nothing created in the meantime is skipped. -- **Remove the connector:** [Delete Connector](/api-reference/v2/endpoint/delete-connector). - - - `POST /connectors/{id}/resources` adds new resources only. On a `resource_id` that already exists, it returns `409` and changes nothing. To edit a resource, use configure or `PATCH /connectors/{id}/resources/{resource_id}`. - +| To change | Call | +| --- | --- | +| A resource's instructions around ACL | [`PATCH /connectors/{id}/resources/{resource_id}`](/api-reference/v2/endpoint/update-connector-resource) | +| Connector custom ingestion instructions, interval, or credentials | [`PATCH /connectors/{id}`](/api-reference/v2/endpoint/update-connector). Sending new credentials reconnects it and keeps its resources. | +| Stop syncing a resource. | [Delete Connector Resource](/api-reference/v2/endpoint/delete-connector-resource). You can also look into [Pause](/api-reference/v2/endpoint/pause-connector) or [Resume](/api-reference/v2/endpoint/resume-connector). Nothing created in the meantime is skipped. | +| Deleting the entire connector | [Delete Connector](/api-reference/v2/endpoint/delete-connector) | ## 4. Custom ingestion instructions -A custom ingestion instruction is free text that a connector reads at sync time and includes when it extracts entities and relationships from every document it syncs. Use one to explain what the documents do not spell out: a product rename, what a channel is for, or what an internal term means. - -Suppose your product was renamed from *Aurora* to *Nimbus*. Years of Slack threads and Confluence pages mention only the old name, so a search for "Nimbus" misses them. One instruction on the connector fixes that at ingestion time, with no reconnection. - - - - -```python Python SDK -client.connectors.update( - connector_id, - custom_instructions=( - "Aurora was renamed to Nimbus in January 2025; they are the same product. " - "Index all Aurora content under the canonical name Nimbus and record Aurora as a former name." - ), -) -``` -```typescript TypeScript SDK -await client.connectors.update({ - id: connectorId, - customInstructions: - "Aurora was renamed to Nimbus in January 2025; they are the same product. " + - "Index all Aurora content under the canonical name Nimbus and record Aurora as a former name.", -}); -``` -```bash cURL -curl -X PATCH 'https://api.hydradb.com/connectors/{id}' \ - -H "Authorization: Bearer $HYDRADB_API_KEY" \ - -H "API-Version: 2" \ - -H "Content-Type: application/json" \ - -d '{ - "custom_instructions": "Aurora was renamed to Nimbus in January 2025; they are the same product. Index all Aurora content under the canonical name Nimbus and record Aurora as a former name." - }' -``` - - - - -From the next sync, documents that mention only Aurora are extracted under the Nimbus entity, with alias links to the old name, so new-name queries reach old-name documents through the context graph. The same works for focus ("prioritize decisions, owners, and deadlines; ignore social chatter"), interpretation ("threads in this workspace are incident retros; extract root cause and remediation"), and vocabulary ("SEV1 and SEV2 are incident severities, not product names"). An instruction can also be set when you create the connector, or from the dashboard's **Instructions** button. - -**Connector default and resource override:** an instruction on the connector applies to every resource without one of its own. An instruction on a resource, such as one Slack channel or one Jira project, **replaces** the connector default for that resource's documents rather than adding to it. Set a resource's instruction with `custom_instructions` in configure, or afterwards on its own: - - - - -```python Python SDK -client.connectors.update_resource_acl( - connector_id, - "C_INCIDENTS", - request={"custom_instructions": "These are incident retros; extract root cause, impact, and owner."}, -) - -# Clear it, so the channel uses the connector default again. -client.connectors.update_resource_acl( - connector_id, "C_INCIDENTS", request={"custom_instructions": ""} -) -``` -```typescript TypeScript SDK -await client.connectors.updateResourceAcl({ - id: connectorId, - resourceId: "C_INCIDENTS", - customInstructions: "These are incident retros; extract root cause, impact, and owner.", -}); - -// Clear it, so the channel uses the connector default again. -await client.connectors.updateResourceAcl({ - id: connectorId, - resourceId: "C_INCIDENTS", - customInstructions: "", -}); -``` -```bash cURL -curl -X PATCH 'https://api.hydradb.com/connectors/{id}/resources/C_INCIDENTS' \ - -H "Authorization: Bearer $HYDRADB_API_KEY" \ - -H "API-Version: 2" \ - -H "Content-Type: application/json" \ - -d '{ "custom_instructions": "These are incident retros; extract root cause, impact, and owner." }' - -# Clear it, so the channel uses the connector default again. -curl -X PATCH 'https://api.hydradb.com/connectors/{id}/resources/C_INCIDENTS' \ - -H "Authorization: Bearer $HYDRADB_API_KEY" \ - -H "API-Version: 2" \ - -H "Content-Type: application/json" \ - -d '{ "custom_instructions": "" }' -``` - - -In TypeScript (SDK 2.1.8 or later), `updateResourceAcl` takes `customInstructions` and `acl` as top-level fields. - +Custom instructions tell HydraDB how to read your synced documents and what to look for. They change how documents are interpreted, not what gets ingested. For example: + +- "Aurora was renamed to Nimbus; they are the same product." +- "Customer support Slack threads contain typos and mix up accounts, so be careful when creating relationships." + +**Instructions apply to future syncs only.** Documents that are already indexed keep the instruction they were ingested under. + + + + + ```python Python SDK + client.connectors.update( + connector_id, + custom_instructions=( + "Aurora was renamed to Nimbus in January 2025; they are the same product. " + "Index all Aurora content under the canonical name Nimbus and record Aurora as a former name." + ), + ) + ``` + + ```typescript TypeScript SDK + await client.connectors.update({ + id: connectorId, + customInstructions: + "Aurora was renamed to Nimbus in January 2025; they are the same product. " + + "Index all Aurora content under the canonical name Nimbus and record Aurora as a former name.", + }); + ``` + + ```bash cURL + curl -X PATCH 'https://api.hydradb.com/connectors/{id}' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ + "custom_instructions": "Aurora was renamed to Nimbus in January 2025; they are the same product. Index all Aurora content under the canonical name Nimbus and record Aurora as a former name." + }' + ``` + + -An empty string clears an instruction; leaving the field out keeps it, so configuring again never strips a tuned resource. [`GET /connectors/{id}`](/api-reference/v2/endpoint/get-connector) returns the connector's instruction, and [`GET /connectors/{id}/resources`](/api-reference/v2/endpoint/connector-resources) returns each resource's, absent when the resource inherits. In the dashboard, the **Instructions** dialog lists both levels, each resource marked **override** or **inherits**. - -Before you write one: - -- **Future syncs only:** documents already indexed are not indexed again; each keeps the instruction it was ingested under. Set instructions before the first sync when you can. -- **Up to 4,000 characters:** longer values are rejected with `400`, and the stored value stays as it was. -- **Cost:** the text goes into the extraction prompt for every synced document, so a long instruction on a busy connector costs on every sync. Say what matters and stop. -- **Be explicit:** "X was renamed to Y; they are the same product; index under Y" works far better than vague guidance. Name the exact terms and keep unrelated rules in separate sentences. -- **Interpretation only:** instructions do not change which documents sync, where they are stored, or who can read them. Use resource selection, collections, and [ACLs](/essentials/v2/query#6-query-on-behalf-of-a-user) for those. - -## 5. Filter on what HydraDB writes - -Every source a connector syncs carries two metadata layers, the same two that [Metadata](/essentials/v2/metadata) describes for all context. - -`metadata` contains fields declared in your database's metadata schema. Filter them with top-level `metadata_filters` keys. HydraDB always writes `connector_id` and `provider` here for every synced source. Your own `metadata` from configure is merged first, so `connector_id` and `provider` win on conflict. - -`additional_metadata` contains free-form fields and needs no schema. HydraDB always writes `connector_id` and `resource_id` here, plus provider-native fields such as a Slack message timestamp, a GitHub issue number, or a Linear identifier. Your own `additional_metadata` from configure is merged first, so provider-generated fields win on conflict. - -This is the layer to filter on to scope a query to one connector, channel, repository, or table: - - - -```json Querying with a metadata filter -{ - "database": "acme_corp", - "query": "deployment checklist", - "metadata_filters": { - "additional_metadata": { - "connector_id": "{connector_id}" - } - } -} -``` - -Filter on `resource_id` the same way to scope to one channel, repository, or table. - - - -To see which provider-native fields a connector writes, call [`GET /connectors/providers?id={provider}`](/api-reference/v2/endpoint/list-connector-providers). Its `filterable_fields` each carry the `filter_key` to use in `metadata_filters`. Its `searchable_fields` are combined into each document's searchable text, so you search them together, not one at a time. - -## 6. ACL on synced content - -For supported providers, HydraDB captures the provider's ACL on every sync, so you do not maintain a second access model. Capture and enforcement are separate: the connector's `enforce_acl` setting controls ACL enforcement on reads. [Query](/essentials/v2/query#6-query-on-behalf-of-a-user) explains principals and what a query's `acl` matches. To change a source's ACL, use [Update Source Metadata](/api-reference/v2/endpoint/update-source-metadata). - -`enforce_acl` is `false` by default. Omitting it on create leaves the new connector unenforced, and existing connectors remain unenforced until an owner or writer enables it. While it is `false`, access control is opt-in on each request: send the caller's identity in `acl` to filter content, and a request without `acl` is not filtered by caller identity. This holds for content from a non-enforced connector even when the same request also reads content from an enforced connector. MCP OAuth does not enforce caller identity for a non-enforced connector; send `acl` when that request needs caller filtering. - -### What each provider captures - -| Provider | ACL HydraDB captures | -|---|---| -| **Slack** | Public channels are visible workspace-wide; private channels only to their members, resolved to member emails. | -| **Google Drive** | Per-file sharing: user, group, domain, and public grants. ACL-only changes are picked up through the Drive changes feed, even when the file content does not change. | -| **GitHub** | Repository visibility. Private repos additionally capture the collaborator list when every collaborator has a visible public email; otherwise your resource rule governs. | -| **Confluence** | Space-level view ACLs, with groups expanded to member emails, plus per-page view restrictions. | -| **Jira** | Who holds Browse access per project, plus per-issue security levels. | - -Capture is also built for GitLab, Linear, Dropbox, Zendesk, PagerDuty, Typeform, Attio, LaunchDarkly, ServiceNow, Microsoft Teams, and Outlook, and is switched on per provider. The [provider catalog](/api-reference/v2/endpoint/list-connector-providers) reports capture support in `acl_supported` and summarizes it in `acl_description`. Check [Get Connector Status](/api-reference/v2/endpoint/get-connector-status) for an `acl_warning` after the first sync. For any other provider, [set your own rule on the resource](#set-your-own-rule-on-a-resource). - -### Google Drive files shared with a group - -This section applies only to Google Drive. No other connector expands groups this way or reports this check. - -A Drive file shared with a Google Group carries the grant `group:google:`. To let group members read it, HydraDB reads the group's members through the Google Workspace Directory API. That needs a Drive connection made by a Workspace admin with Directory access. +## 5. ACL (native RBAC awareness) -When you connect Google Drive, HydraDB checks this access once. The connection check reports the result as `google_group_membership_resolves`, and the dashboard shows it as a notice: +This is the best part about using managed connectors. You don't have to worry about the infrastructure and all permissions automatically come with the data. -- `true`: group membership can be read. Members of a group can read the files shared with that group. -- `false`: group membership cannot be read. A file shared only through a group keeps its `group:google:` grant, which no caller matches, so the file stays restricted. With ACL enforcement on, group members cannot see it. A request `acl` sees it only if it names the group. The same applies to a group too large to expand. +`enforce_acl: true` filters reads by the authenticated caller's identity and ignores any request `acl` for this connector's content. -To fix `false`, reconnect Google Drive as a Workspace admin with Directory access. +### Examples of what each provider captures -### Enforce ACL +- **Slack:** Public channels are visible workspace-wide; private channels only to their members. +- **Google Drive**: Per-file sharing: user, group, domain, and public grants. +- **Confluence:** Space view permissions and per-page restrictions. -Set `enforce_acl` to `true` to make reads from this connector use the authenticated caller's identity against the ACL HydraDB captured. The provider must report `acl_supported: true` in [List Connector Providers](/api-reference/v2/endpoint/list-connector-providers). Set it on [`POST /connectors`](/api-reference/v2/endpoint/create-connector), or enable or change it later with [`PATCH /connectors/{id}`](/api-reference/v2/endpoint/update-connector). In the dashboard, an owner or writer can use the **Enforce ACL** control in the connector settings. A change takes effect on the next content request for already-synced sources and does not require re-ingestion. +and so forth. For other providers, check `acl_supported` in the [provider catalog](/api-reference/v2/endpoint/list-connector-providers). For other providers that don't you can [set your own rule on the resource](#set-your-own-rule-on-a-resource). -HydraDB decides which providers report `acl_supported`. If it stops reporting it for a provider, that provider's connectors stop enforcing within about a minute and keep their stored `enforce_acl` value. Enforcement resumes when support returns. - -Only workspace owners and writers can set or change `enforce_acl`; readers can view it. The API requires an owner or writer in a signed-in dashboard session: a request authenticated with an API key can create a connector with the default `false` value, but cannot choose or change the setting. - -When enforcement is enabled, HydraDB selects the identity from authentication rather than trusting a caller-supplied `acl`: - -- **API key or pasted-key MCP:** the email of the person who created the key. -- **MCP OAuth:** the signed-in user. -- **Dashboard:** the signed-in user. - -If a content-read request includes `acl`, HydraDB ignores it for content from connectors with enforcement enabled; the `acl` still scopes content from non-enforced connectors. A successful response includes exactly one machine-readable warning for the override in `meta.warnings`: - -```json -{ - "meta": { - "warnings": [ - { - "code": "acl_ignored_by_connector_enforcement", - "message": "This connector enforces ACL, so the request's acl was ignored." - } - ] - } -} -``` - -An API key stays tied to its creator. When a member is removed from the workspace, or leaves it, every API key they created in that workspace is revoked. Re-inviting them does not restore those keys; they create new ones. Another member must use a key created under their own account. + + While `enforce_acl` is `false` (the default), a request without `acl` is **not** filtered by caller identity. Either send identity in `acl`, or turn on [enforcement](#enforce-acl) if you want to set this manually. + ### Set your own rule on a resource -Every source synced from a resource inherits the resource's rule. Set it in `acl` at configure time, or afterwards on its own: +Send `acl` to [`PATCH /connectors/{id}/resources/{resource_id}`](/api-reference/v2/endpoint/update-connector-resource). It applies to already-synced sources on the next query, with no re-sync. - +- A source's own permissions from the provider replace your rule at the next sync. +- A resource with no rule is readable by everyone. + + ```python Python SDK @@ -589,13 +428,13 @@ curl -X PATCH 'https://api.hydradb.com/connectors/{id}/resources/C_LEADERSHIP' \ -The change applies to already-synced sources on the next query, with no re-sync. A source's own ACL from the provider wins at the next sync. - -If HydraDB cannot read a resource ACL from the provider, [Get Connector Status](/api-reference/v2/endpoint/get-connector-status) reports an `acl_warning` until the next successful read. Your own resource rule still applies; a resource with no rule is readable by everyone. - ### Restore resource permissions -To remove a source's own ACL and use its connector resource permissions again, send `acl_inherit: true` without `acl` to [Update Source Metadata](/api-reference/v2/endpoint/update-source-metadata). Use the ID of a source synced by a configured connector. Uploads and manually ingested sources have no connector resource to inherit from. + + This takes effect immediately, and it can widen access if the resource allows more people than the source's own ACL did. + + +Send `acl_inherit: true`, without `acl`, to [Update Source Metadata](/api-reference/v2/endpoint/update-source-metadata). The source goes back to following its resource's rule. ```bash cURL curl -X PATCH 'https://api.hydradb.com/context/confluence-page-9f62/metadata' \ @@ -609,36 +448,80 @@ curl -X PATCH 'https://api.hydradb.com/context/confluence-page-9f62/metadata' \ }' ``` -`acl` combined with `acl_inherit: true` is invalid. `acl_inherit: false` or an omitted `acl_inherit` is a no-op and can accompany `acl`. HydraDB rejects inheritance for uploads and sources without connector resource attribution. - - -Inheritance takes effect immediately and can widen access if the resource allows more people than the source's own ACL. The source then follows future permission changes from that resource. Provider-specific source permissions can replace the inherited state on a later sync because ACL writes use last-writer-wins behavior. - - -Deleting a connector resource rule does not widen access on its own. To open a restricted resource, set its ACL to `["__public__"]`. - -## 7. Connect several accounts of one provider - -One provider can have several connectors: two Slack workspaces, two GitHub organizations, or a personal and a work Gmail. Each is independent, with its own credentials and resources. Give each Slack, GitHub, Linear, or Notion connector a distinct `provider_account_scope`; otherwise sources from two accounts that share an external id overwrite each other in the same database and collection. Gmail has no account scope; tell mailboxes apart with `account_email`. - -All of them can sync into the same collection, so one query searches every account; filter on `connector_id` to narrow to one. If one account's data must never meet the others in a query, set `collection` per resource in [configure](#step-4-configure-the-resources-to-sync). - -## Common mistakes - -- **Editing an existing resource with `POST /connectors/{id}/resources`:** the call returns `409` and changes nothing. Use `PATCH /connectors/{id}/resources/{resource_id}` for instructions and ACLs, or configure again for routing and metadata. -- **Reconfiguring without `name` and `resource_type`:** omitted values are cleared. Send both every time you list a resource. -- **Expecting a resource instruction to add to the connector default:** the resource instruction replaces the connector default. Repeat anything from the default that the resource still needs. -- **Two accounts of one provider with the same `provider_account_scope`:** sources that share an external id overwrite each other. Set a distinct scope per account. -- **Filtering on a provider field as a top-level key:** provider-native fields live in `additional_metadata`. Use the `filter_key` from the provider description. -- **Querying before the first sync has landed:** `lifecycle` reads `ingesting` until then. Wait for `active`, or check `GET /connectors/{id}/status`. - -## Related - -- [Connectors API reference](/api-reference/v2/endpoint/connectors-overview): every endpoint, and which one changes what -- [Context](/essentials/v2/context#send-app-sources): the ingestion model synced sources use, and how to ingest from your own integration -- [Metadata](/essentials/v2/metadata): schema-backed and free-form metadata -- [Databases and Collections](/essentials/v2/databases-and-collections): routing resources to databases and collections -- [Query](/essentials/v2/query): querying connector-synced data +## 6. Connecting several accounts/workspaces with each connector + +Create one or multiple accounts per connector. Filter on `connector_id` to query one account. Read more about this under API references of each of the connectors offered. + +## Advanced (mostly for agents) + + + + - `filterable_fields` each carry the `filter_key` to use in `metadata_filters`. + - `searchable_fields` are combined into each document's searchable text, so you search them together, not one at a time. + - `acl_supported` and `acl_description` report whether a provider's permissions are captured. Capture is also built for GitLab, Linear, Dropbox, Zendesk, PagerDuty, Typeform, Attio, LaunchDarkly, ServiceNow, Microsoft Teams, and Outlook, and is switched on per provider. + + + + - **Create:** a new connector starts with `lifecycle: pending_setup` and `sync_status: idle`. + - **Discover:** providers that sync a whole account return one entry with `id` `all`. + - **Backfill:** with `lookback_days` above 30, some providers fetch older history in the background and report `backfill: true`. + + + + - **Credentials:** credentials that don't match `credential_schema` are rejected with `422`. + - **Routing:** each resource can route to its own `collection` or `database`. + - **Account scope:** `provider_account_scope` is part of every synced source's deduplication key, so sources from two accounts never overwrite each other. + + + + - **Status:** `status` is the overall health, such as `healthy`, `degraded`, or `failed`. Each resource reports its own result, with an `action` when it failed. See [Get Connector Status](/api-reference/v2/endpoint/get-connector-status). + - **Incremental sync:** each sync fetches only what changed since the resource's saved position (its cursor). + - **Manual sync:** a `202` from `POST /connectors/{id}/sync` means the sync started, not that it finished. + - **Pause and resume:** after a pause, each resource resumes from its saved position. + - **Reconfiguring:** configuring again keeps each resource's sync position, instructions, and ACL. + + + + - **Length limit:** up to 4,000 characters. Longer values are rejected with `400`, and the stored value stays as it was. + - **Cost:** the text goes into the extraction prompt for every synced document, so keep it short. + - **Be explicit:** name the exact terms, and keep unrelated rules in separate sentences. + - **Checking instructions:** `GET /connectors/{id}` returns the connector's instruction. `GET /connectors/{id}/resources` returns each resource's, which is absent when the resource inherits. The dashboard's **Instructions** dialog marks each resource as **override** or **inherits**. + + + + - **`metadata`:** HydraDB writes `connector_id` and `provider` here, and they win over your own fields on conflict. + - **`additional_metadata`:** HydraDB writes `connector_id`, `resource_id`, and provider-native fields here, and provider-generated fields win over yours on conflict. + + + + - **Without enforcement:** while `enforce_acl` is `false`, the request `acl` still scopes this connector's content, even when the same request reads from enforced connectors. MCP OAuth doesn't enforce caller identity for non-enforced connectors. + - **Identity under enforcement:** + - API key or pasted-key MCP: the email of the person who created the key. + - MCP OAuth and the dashboard: the signed-in user. + - **Ignored `acl`:** when a request's `acl` is ignored because of enforcement, the response includes one warning: + ```json + { "meta": { "warnings": [{ "code": "acl_ignored_by_connector_enforcement", "message": "This connector enforces ACL, so the request's acl was ignored." }] } } + ``` + - **Support withdrawn:** if a provider stops reporting `acl_supported`, its connectors stop enforcing within about a minute and keep their stored setting. Enforcement resumes when support returns. + - **API key revocation:** when a member leaves or is removed from the workspace, every API key they created there is revoked. Re-inviting them doesn't restore those keys. + - **Read failures:** if HydraDB can't read a resource's permissions, Get Connector Status reports an `acl_warning` until the next successful read. + - **Opening a resource:** deleting a resource rule doesn't widen access. To open a restricted resource, set its ACL to `["__public__"]`. + - **Inheritance limits:** `acl` combined with `acl_inherit: true` is invalid. Uploads and manually ingested sources can't inherit. Provider permissions can replace inherited state on a later sync, because the last write wins. + + + + All connectors can sync into the same collection, so one query searches every account. If one account's data must never appear alongside the others in a query, set `collection` per resource in configure. + + + + - **Editing a resource with** `POST /connectors/{id}/resources`**:** it returns `409` and changes nothing. Use `PATCH /connectors/{id}/resources/{resource_id}` instead, or configure again. + - **Configuring again without** `name `**and** `resource_type`**:** omitted values are cleared. + - **Expecting a resource instruction to add to the connector default:** it replaces the default. + - **Two accounts with the same** `provider_account_scope`**:** their sources overwrite each other. + - **Filtering a provider field as a top-level key:** provider-native fields live in `additional_metadata`. Use the `filter_key` from the provider description. + - **Querying before** `lifecycle `**is** `active`**:** the first sync hasn't landed yet. + + diff --git a/essentials/v2/context.mdx b/essentials/v2/context.mdx index c5cb8ea2..cf150f3d 100644 --- a/essentials/v2/context.mdx +++ b/essentials/v2/context.mdx @@ -1,123 +1,76 @@ --- title: "Context" -description: "Knowledge and memories: the two types of context HydraDB stores, how to ingest each, and how they work together." +description: "Context is everything you give HydraDB so the database can organize it and your AI can find it. You can directly ingest docs, emails, and all forms of knowledge or you can use our data connectors." --- import { Field } from "/snippets/field.jsx"; -Context is everything you give HydraDB so your AI can find it later. It comes in two types, and most applications use both: - -| | Knowledge | Memories | -|---|---|---| -| What it is | What your organization has written down | What your agent has learned about a user | -| Examples | Product docs, policy PDFs, runbooks, Slack threads, tickets, emails | Preferences, decisions, things already tried, past conversations | -| Usually shared by | Everyone who may read it | One user | -| Ingest with | `type=knowledge` | `type=memory` | -| What you send | Files, or records from an app (**app sources**) | Text or a conversation | -| Changes when | The document changes | The user says or does something new | - -The two types work the same way. Both go to [`POST /context/ingest`](/api-reference/v2/endpoint/ingest-context), both are saved in a [collection](/essentials/v2/databases-and-collections), both are indexed in the background, and both come back from [`POST /query`](/api-reference/v2/endpoint/query). Each item you ingest is a **source**; HydraDB splits it into searchable passages called **chunks** and builds a context graph from it. - -They are stored separately, so a query chooses what to read: `type: "knowledge"`, `type: "memory"`, or `type: "all"` for both in one ranked list. A support agent, for example, answers from the help center (knowledge) and from the fact that this customer already tried restarting (a memory). - -## 1. Ingest knowledge - -There are three ways to ingest knowledge: - -- **Files:** upload PDF, DOCX, Markdown, CSV, or TXT files, and HydraDB reads them for you. -- **App sources:** send records your application already holds from an app, such as a Slack message or a Jira ticket. -- **[Connectors](/essentials/v2/connectors):** connect an app such as Slack, Google Drive, Notion, or GitHub once, and HydraDB keeps it in sync. - -### Upload files - -The request is **multipart/form-data** with these fields: - -| Form field | What to send | -|---|---| -| `type` | `knowledge` | -| `database` | An existing [database](/api-reference/v2/endpoint/create-database) | -| `collection` | Optional. Leave it out to use the database's default collection. A query that names another collection does not read the default one. | -| `documents` | One or more files | -| `document_metadata` | One item per file, in the same order, as a JSON string. Optional, but this is where a file's `id` and `metadata` go. | -| `upsert` | Leave it out. It defaults to `true`, so a file sent again with the same `id` replaces the saved one. | - - - -Set up your [SDK client](/api-reference/v2/sdks#client-setup) before running the Python or TypeScript example. - - -```python Python SDK -import json - -with open("/path/to/policy.pdf", "rb") as f1, open("/path/to/runbook.pdf", "rb") as f2: - result = client.context.ingest( - type="knowledge", - database="acme_corp", - documents=[ - ("policy.pdf", f1, "application/pdf"), - ("runbook.pdf", f2, "application/pdf"), - ], - document_metadata=json.dumps([ - {"id": "policy_v2", "metadata": {"document_type": "policy", "status": "approved"}}, - {"id": "runbook_deploy", "metadata": {"document_type": "runbook"}}, - ]), - ) -``` -```typescript TypeScript SDK -const result = await client.context.ingest({ - type: "knowledge", - database: "acme_corp", - documents: [ - { path: "/path/to/policy.pdf", filename: "policy.pdf", contentType: "application/pdf" }, - { path: "/path/to/runbook.pdf", filename: "runbook.pdf", contentType: "application/pdf" }, - ], - documentMetadata: JSON.stringify([ - { id: "policy_v2", metadata: { document_type: "policy", status: "approved" } }, - { id: "runbook_deploy", metadata: { document_type: "runbook" } }, - ]), -}); -``` -```bash cURL -curl -X POST 'https://api.hydradb.com/context/ingest' \ - -H "Authorization: Bearer $HYDRADB_API_KEY" \ - -H "API-Version: 2" \ - -F "type=knowledge" \ - -F "database=acme_corp" \ - -F "documents=@/path/to/policy.pdf" \ - -F "documents=@/path/to/runbook.pdf" \ - -F 'document_metadata=[ - { "id": "policy_v2", "metadata": { "document_type": "policy", "status": "approved" } }, - { "id": "runbook_deploy", "metadata": { "document_type": "runbook" } } - ]' -``` - - -The response lists each file in `data.results` with its `id` and a `status` of `queued`. The payload is wrapped in the standard envelope, so read it from `response.data`: - -```json -{ - "success": true, - "data": { - "success": true, - "message": "Knowledge uploaded successfully", - "results": [ - { "id": "policy_v2", "filename": "policy.pdf", "status": "queued", "error": null }, - { "id": "runbook_deploy", "filename": "runbook.pdf", "status": "queued", "error": null } - ], - "success_count": 2, - "failed_count": 0 - }, - "error": null, - "meta": { - "request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d", - "latency_ms": 12.3 - } -} -``` - - - -Each `document_metadata` item takes these properties: +# Overview + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
**Default****Knowledge****Memory****Traces (Experimental)**
DescriptionHydraDB is built to organize all of your information into the types in the following columns automatically, so you don't have to choose. When you have a deterministic requirement, set the ingestion type yourself.All the data your agent should be able to access: docs, emails, chats, transcripts, code, and sheets. You can directly ingest context or use connectors API to programmatically ingest data from your apps (RBAC aware).What your agent has learned about a user and their preferences, used to personalize search on each query.Agent decisions or traces: a record of every agent run, successful or failed, so future agents have a procedural memory of what works and what doesn't.
ExamplesEverything in the following columnsProduct docs, policy PDFs, runbooks, Slack threads, Linear tickets, emailsUser preferences, chats, and past decisionsTool calls and agent logs
RBACUse multi-tenancy features to maintain access controls (ACLs).Ranges from org-wide (tribal) knowledge to team knowledge, and sometimes personal knowledge.Same as knowledge, but usually scoped to individual users.Same as knowledge, but usually org-wide, so agent runs across all sessions improve together.
IngestionIncoming content is routed automatically. Set `type` only when you need deterministic routing.`type=knowledge``type=memory``type=traces`
Evolves temporallyHydraDB maintains a temporally versioned graph of everything you ingest.As knowledge changes, HydraDB keeps a version history. The latest node is a snapshot of the current information and links back through a chain of earlier nodes that record past states.A preference changes whenever the user says or does something new, which happens often.Build agents that improve after every run, with procedural memory.
+ +## Ingesting Knowledge + +There are two ways to ingest knowledge/context + +1. Directly using the ingest API. You have to set your own ACLs with multi tenancy features within the database +2. Connectors API - programmatically ingest data from slack, gmail, linear, and 70+ connectors with all RBAC aware. Read more in [Connectors](/essentials/v2/connectors). + +### Upload with metadata | Property | What it is | |---|---| @@ -126,110 +79,16 @@ Each `document_metadata` item takes these properties: | `additional_metadata` | Free-form values for display and bookkeeping. Filterable only when nested under `additional_metadata` in `metadata_filters`. Up to 1 KiB as compact JSON. | | `relations` | Other sources this file belongs with, as `{ "ids": [...] }`. See [Link documents that belong together](#6-link-sources-that-belong-together). | -The key list is closed. Any other key, including `title`, `type`, `url`, and `timestamp`, returns `400`. [Ingest Context](/api-reference/v2/endpoint/ingest-context#supported-file-formats) lists the supported file formats. - -### Send app sources +## Ingesting memory -When your application already holds the text and fields of a Slack message, a Jira ticket, a Notion page, or a CRM record, send it as an **app source** instead of a file. HydraDB keeps the app's structure: the author, the thread, the ticket's status, and the links between records. +HydraDB does not capture memories on its own: your application saves one when a user states a preference, makes a decision in a specific way, finishes a task, or corrects the agent. -The request goes to the same endpoint, with `app_knowledge` in place of `documents`. One request can carry both. `kind` says what the record is (`email`, `message`, `ticket`, `knowledge_base`, `comment`, `meeting`, or `custom`), and `fields` carries its content. An app source can also carry an `acl`, the list of principals allowed to retrieve it. The [field reference](#field-reference) lists the keys each kind takes in `fields`. - - - -```python Python SDK -import json - -result = client.context.ingest( - type="knowledge", - database="acme_corp", - app_knowledge=json.dumps([ - { - "id": "slack_C01_1716213600_000100", - "title": "Pricing discussion - Slack #product", - "kind": "message", - "provider": "slack", - "external_id": "1716213600.000100", - "fields": { - "kind": "message", - "body": "We agreed on three tiers: Starter at $29, Pro at $79, Enterprise at $199.", - "author": "alice", - "thread_id": "1716213600.000100", - "created_at": "2026-05-20T10:00:00Z", - }, - "metadata": {"channel": "product", "status": "finalized"}, - "additional_metadata": {"slack_ts": "1716213600.000100"}, - } - ]), -) -``` -```typescript TypeScript SDK -const result = await client.context.ingest({ - type: "knowledge", - database: "acme_corp", - appKnowledge: JSON.stringify([ - { - id: "slack_C01_1716213600_000100", - title: "Pricing discussion - Slack #product", - kind: "message", - provider: "slack", - external_id: "1716213600.000100", - fields: { - kind: "message", - body: "We agreed on three tiers: Starter at $29, Pro at $79, Enterprise at $199.", - author: "alice", - thread_id: "1716213600.000100", - created_at: "2026-05-20T10:00:00Z", - }, - metadata: { channel: "product", status: "finalized" }, - additional_metadata: { slack_ts: "1716213600.000100" }, - }, - ]), -}); -``` -```bash cURL -curl -X POST 'https://api.hydradb.com/context/ingest' \ - -H "Authorization: Bearer $HYDRADB_API_KEY" \ - -H "API-Version: 2" \ - -F "type=knowledge" \ - -F "database=acme_corp" \ - -F 'app_knowledge=[ - { - "id": "slack_C01_1716213600_000100", - "title": "Pricing discussion - Slack #product", - "kind": "message", - "provider": "slack", - "external_id": "1716213600.000100", - "fields": { - "kind": "message", - "body": "We agreed on three tiers: Starter at $29, Pro at $79, Enterprise at $199.", - "author": "alice", - "thread_id": "1716213600.000100", - "created_at": "2026-05-20T10:00:00Z" - }, - "metadata": { "channel": "product", "status": "finalized" }, - "additional_metadata": { "slack_ts": "1716213600.000100" } - } - ]' -``` - - -The response has the same shape as a file upload, with one entry per app source in `data.results`. - - - -## 2. Save memories - -HydraDB does not capture memories on its own: your application saves one when a user states a preference, makes a decision, finishes a task, or corrects the agent. Give each user their own collection, such as `user_john_123`, and send it on every ingest, status check, and query. Your backend picks it from the signed-in session; the name itself does not authenticate anyone. - -The request is the same as for knowledge, with `type=memory` and a `memories` list in place of files: - -| Form field | What to send | -|---|---| -| `type` | `memory` | -| `database` | An existing [database](/api-reference/v2/endpoint/create-database) | -| `collection` | The user's own collection, such as `user_john_123`. | -| `memories` | One item or a list of items, as a JSON string | -| `upsert` | Leave it out. It defaults to `true`, so sending an item again with the same `id` replaces the saved memory. | +1. **Let HydraDB infer**: `infer` controls whether HydraDB extracts memories and preferences from what you send. + 1. `infer: true`(default): Extracts the preferences, trait, or fact from messy or indirect evidence. + 2. `infer: false`: Stores and indexes exactly what you send. No preprocessing step. +2. **Ingest memory**: It can be via `text` or `user_assistant_pairs`, not both. + - `text`: Any prose, such as observations, facts, meeting notes, or semi-structured records. Set `is_markdown: true` for Markdown content so HydraDB keeps its structure when chunking and embedding. + - `user_assistant_pairs`: Dialogue, especially when a preference is implied rather than stated. Each pair is `{ "user": "...", "assistant": "..." }`. @@ -321,449 +180,37 @@ The response lists each memory in `data.results` with its `id` and a `status` of -### Let HydraDB infer the memory - -`infer` controls whether HydraDB extracts the memory from what you send or stores it as written. - -| | `infer: true` | `infer: false` (the default) | -|---|---|---| -| What HydraDB does | Extracts the useful preference, trait, or fact from messy or indirect evidence. | Stores and indexes exactly what you send. There is no extraction step, so it is faster and deterministic. | -| Use it for | Dialogue where the preference is implicit, behavior logs and event streams, and feedback like "the last summary was too long." | Facts you already captured, such as `"User's plan tier is Pro"`, pre-structured notes, and text you want to retrieve exactly as written. | - -`custom_instructions` takes effect only when `infer: true`. Use it to guide extraction, for example: `"Focus on UI and notification preferences only"`. - - - -A user has been toggling dark mode in your application. Instead of extracting the preference yourself, send the raw behavior log and let HydraDB infer the memory. - - - -```python Python SDK -import json - -client.context.ingest( - type="memory", - database="acme_corp", - collection="user_john_123", - memories=json.dumps([ - { - "text": ( - "User opened the app 14 times in the last week. " - "Switched to dark mode on first session. " - "Toggled back to light once on 2026-04-12 at 3pm, " - "then switched back to dark within 4 minutes. " - "Has not changed theme since." - ), - "infer": True, - "user_name": "John", - "custom_instructions": "Focus on display and theme preferences.", - } - ]), -) -``` - -```typescript TypeScript SDK -const result = await client.context.ingest({ - type: "memory", - database: "acme_corp", - collection: "user_john_123", - memories: JSON.stringify([ - { - text: - "User opened the app 14 times in the last week. " + - "Switched to dark mode on first session. " + - "Toggled back to light once on 2026-04-12 at 3pm, " + - "then switched back to dark within 4 minutes. " + - "Has not changed theme since.", - infer: true, - user_name: "John", - custom_instructions: "Focus on display and theme preferences.", - }, - ]), -}); -``` - -```bash cURL -curl -X POST 'https://api.hydradb.com/context/ingest' \ - -H "Authorization: Bearer $HYDRADB_API_KEY" \ - -H "API-Version: 2" \ - -F "type=memory" \ - -F "database=acme_corp" \ - -F "collection=user_john_123" \ - -F 'memories=[ - { - "text": "User opened the app 14 times in the last week. Switched to dark mode on first session. Toggled back to light once on 2026-04-12 at 3pm, then switched back to dark within 4 minutes. Has not changed theme since.", - "infer": true, - "user_name": "John", - "custom_instructions": "Focus on display and theme preferences." - } - ]' -``` - - - -Later, when [`POST /query`](/api-reference/v2/endpoint/query) runs with `type: "memory"` and a query like `"what UI settings does the user prefer?"`, HydraDB can return the inferred preference (for example, `"prefers dark mode"`) rather than the raw event log. - -If you sent the same input with `infer: false`, HydraDB would index the event log verbatim. That is useful only when you want to retrieve the log itself. - - - -### Send text or a conversation - -Each memory item takes either `text` or `user_assistant_pairs`, **not both** (sending both returns `400`). - -- **`text`:** prose of any kind, such as observations, captured facts, meeting notes, or semi-structured records. Set `is_markdown: true` when the content uses Markdown (headings, lists, code blocks) so HydraDB keeps that structure during chunking and embedding. -- **`user_assistant_pairs`:** dialogue, especially when the preference is implied rather than stated. Each pair is `{ "user": "...", "assistant": "..." }`. - - - -Markdown notes, stored as written: - -```json -{ - "text": "# Meeting Notes\n\n## Key Points\n- Budget approved", - "is_markdown": true, - "infer": false -} -``` - -A plain statement, with the preference extracted: - -```json -{ - "text": "Prefers detailed technical explanations and works in PST.", - "infer": true -} -``` - -A conversation, with the preference extracted: - -```json -{ - "user_assistant_pairs": [ - { "user": "Remember I like dark mode", "assistant": "Noted." } - ], - "infer": true -} -``` - - - -## 3. Wait for indexing - -Knowledge and memories are indexed the same way, in the background: HydraDB parses each source, splits it into chunks, infers the memory if you asked it to, finds the people, teams, and topics it mentions and how they relate, and builds the search indexes. The ingest request returns `202 Accepted` with each source's `id`. - -Poll [`GET /context/status`](/api-reference/v2/endpoint/source-status) with those ids and the same `collection` every few seconds. A source's `indexing_status` moves forward through `queued`, `processing`, `graph_creation`, and `completed`, or lands in `errored` on failure: - -- At `graph_creation` the source becomes searchable within a few seconds, while its graph is still building. A query sent the moment this status appears can miss the source, and a collection that is new can still be reported as not existing. -- At `completed` the source and its graph are ready. Wait for `completed` when you query straight after ingesting. Most documents complete in 1 to 5 minutes. - -[Ingestion Status](/api-reference/v2/endpoint/source-status) has the full status table. To skip polling, register a [webhook](/api-reference/v2/endpoint/webhooks-overview). - - - -```python Python SDK -import time - -ids = ["policy_v2", "runbook_deploy"] -terminal = {"completed", "errored"} - -while True: - status = client.context.status( - database="acme_corp", - collection="default", - ids=ids, - ) - if all(s.indexing_status in terminal for s in status.data.statuses): - break - time.sleep(5) -``` -```typescript TypeScript SDK -const ids = ["policy_v2", "runbook_deploy"]; -const terminal = new Set(["completed", "errored"]); - -let status; -while (true) { - status = await client.context.status({ - database: "acme_corp", - collection: "default", - ids: ids, - }); - - const allDone = (status.data?.statuses ?? []).every((s) => terminal.has(s.indexingStatus ?? "")); - if (allDone) break; - - await new Promise((r) => setTimeout(r, 5_000)); -} -``` -```bash cURL -while true; do - response=$(curl -s -G 'https://api.hydradb.com/context/status' \ - -H "Authorization: Bearer $HYDRADB_API_KEY" \ - -H "API-Version: 2" \ - --data-urlencode "database=acme_corp" \ - --data-urlencode "collection=default" \ - --data-urlencode "ids=policy_v2" \ - --data-urlencode "ids=runbook_deploy") - - statuses=$(echo "$response" | jq -r '.data.statuses[].indexing_status') - if echo "$statuses" | grep -qv '^\(completed\|errored\)$'; then - sleep 5 - continue - fi - echo "$response" | jq - break -done -``` - - -Each status in the `data` payload looks like this: - -```json -{ - "statuses": [ - { - "id": "policy_v2", - "indexing_status": "completed", - "success": true - } - ] -} -``` - - - -## 4. Query knowledge and memories together - -[`POST /query`](/api-reference/v2/endpoint/query) reaches each type through the `type` parameter: - -- `type: "knowledge"` (the default) searches files and app sources. -- `type: "memory"` searches memories. -- `type: "all"` searches both and returns one merged, ranked list. - -Both types are read from the collections you name. Shared knowledge usually lives in one collection and each user's memories in their own, so list both in `collections`. If some sources carry an `acl`, also send the caller's identity as `acl`. [Query](/essentials/v2/query) covers the other parameters and how to pass the result to a model. - - +| Form field | What to send | +| --- | --- | +| `type` | `memory` | +| `database` | An existing [database](/api-reference/v2/endpoint/create-database) | +| `collection` | The user's own collection, such as `user_john_123`. | +| `memories` | One item or a list of items, as a JSON string | +| `upsert` | Leave it out. It defaults to `true`, so sending an item again with the same `id` replaces the saved memory. | - -```python Python SDK -result = client.query( - database="acme_corp", - collections=["company_docs", "user_john_123"], - query="How do I reset my password?", - type="all", - mode="thinking", - max_results=8, -) -``` -```typescript TypeScript SDK -const result = await client.query({ - database: "acme_corp", - collections: ["company_docs", "user_john_123"], - query: "How do I reset my password?", - type: "all", - mode: "thinking", - maxResults: 8, -}); -``` -```bash cURL -curl -X POST 'https://api.hydradb.com/query' \ - -H "Authorization: Bearer $HYDRADB_API_KEY" \ - -H "API-Version: 2" \ - -H "Content-Type: application/json" \ - -d '{ - "database": "acme_corp", - "collections": ["company_docs", "user_john_123"], - "query": "How do I reset my password?", - "type": "all", - "mode": "thinking", - "max_results": 8 - }' -``` - +## Wait for indexing -Knowledge and memories come back together in `data.chunks`, ranked as one list. To let the user's memories outrank the shared documents, send weights instead of a list: +Use polling or webhooks for verify indexing status: -```json -{ - "collections": { - "user_john_123": 2, - "company_docs": 1 - } -} -``` +- **Webhooks:** register a [webhook](/api-reference/v2/endpoint/webhooks-overview) and HydraDB notifies you when indexing finishes, so you don't need to poll. +- **Polling:** call [`GET /context/status`](/api-reference/v2/endpoint/source-status) with those ids and the same `collection` every few seconds until `indexing_status` is `completed` or `errored`. + - At `graph_creation`, the source becomes searchable but its graph is still building. Queries sent right away can miss it, and a new collection can still be reported as not existing. + - At `completed`, the source and its graph are ready to query. - +[Ingestion Status](/api-reference/v2/endpoint/source-status) lists every status. -## 5. Update or delete context +## Upsert or Delete -To change a source or a memory, send it again with the same `id`. `upsert` defaults to `true`, so the saved one is replaced; include everything you want to keep. Wait for the previous ingestion to reach `completed` or `errored` before sending the next update for the same `id`. +To change a source, send it again with the same `id`. `upsert` defaults to `true`, so the saved one is replaced; include everything you want to keep. Wait for the previous ingestion to reach `completed` or `errored` before sending the next update for the same `id`. To remove one, call [`DELETE /context`](/api-reference/v2/endpoint/delete-source) with its `id` and the same `collection`. -## 6. Link sources that belong together +## Link sources explicitly/pragmatically/deterministically -Forceful relations are links you declare between knowledge sources when you ingest them. When a query matches a source that has forceful relations, HydraDB returns the linked sources in the `additional_context` field of the response, alongside the primary chunks. +You can declare links and relations between sources using `explicit_relations` that you want to explicitly link together. HydraDB returns these explicitly linked sources in the `additional_context` field of the response, alongside the primary response. -This is separate from the context graph HydraDB builds on its own. Use forceful relations for documents that belong together when the text does not say so: a contract and its addendum, or a runbook and its troubleshooting guide. They link whole **sources**. To declare the entity and relation graph within one document, replacing extraction for it, use [Bring Your Own Graph](/essentials/v2/bring-your-own-graph#using-byog-without-cypher). +This is separate from the relations in the context graph HydraDB builds on its own. On a file, set `relations.ids` on its `document_metadata` item. On an app source, set `relations.ids` the same way, and name the relationship in `app_relations` so the link also carries a predicate. `relations.ids` is what makes the linked text come back with query results; a named relationship alone connects the sources without requesting their text. - - -This Notion guide links to a troubleshooting page already ingested with the HydraDB `id` `auth-troubleshooting`. Ingest that page first and wait for `completed`. - - -```python Python SDK -client.context.ingest( - type="knowledge", - database="acme_corp", - app_knowledge=json.dumps([ - { - "id": "auth-guide", - "title": "Authentication Guide", - "kind": "knowledge_base", - "provider": "notion", - "external_id": "AUTH-GUIDE", - "fields": {"kind": "knowledge_base", "title": "Authentication Guide", "body": "..."}, - "relations": {"ids": ["auth-troubleshooting"]}, - "app_relations": [ - {"predicate": "linked_to", "target": {"source_id": "auth-troubleshooting"}}, - ], - } - ]), -) -``` -```typescript TypeScript SDK -await client.context.ingest({ - type: "knowledge", - database: "acme_corp", - appKnowledge: JSON.stringify([ - { - id: "auth-guide", - title: "Authentication Guide", - kind: "knowledge_base", - provider: "notion", - external_id: "AUTH-GUIDE", - fields: { kind: "knowledge_base", title: "Authentication Guide", body: "..." }, - relations: { ids: ["auth-troubleshooting"] }, - app_relations: [ - { predicate: "linked_to", target: { source_id: "auth-troubleshooting" } }, - ], - }, - ]), -}); -``` -```bash cURL -curl -X POST 'https://api.hydradb.com/context/ingest' \ - -H "Authorization: Bearer $HYDRADB_API_KEY" \ - -H "API-Version: 2" \ - -F "type=knowledge" \ - -F "database=acme_corp" \ - -F 'app_knowledge=[ - { - "id": "auth-guide", - "title": "Authentication Guide", - "kind": "knowledge_base", - "provider": "notion", - "external_id": "AUTH-GUIDE", - "fields": { "kind": "knowledge_base", "title": "Authentication Guide", "body": "..." }, - "relations": { "ids": ["auth-troubleshooting"] }, - "app_relations": [ - { "predicate": "linked_to", "target": { "source_id": "auth-troubleshooting" } } - ] - } - ]' -``` - - - - -`query_forceful_relations` defaults to `true`; set it to `false` to skip the linked sources. - - -**Knowledge sources, `thinking` mode only:** Forceful relations stay within one store, so pointing a knowledge source at a memory ID silently returns nothing. Linked context is fetched only when `mode: "thinking"` is set on the query, or when `mode: "auto"` routes to thinking. In `fast` mode, `query_forceful_relations` is ignored even if set to `true`. - - -## Field reference - - - - -| Field | Default | Description | -|---|---|---| -| | None | Selects the type of context. | -| | None | Target database. | -| | default collection | The collection to save into. If omitted, context goes to the database's default collection, which a query naming another `collection` does not read. | -| | None | Knowledge only. Files for HydraDB to parse. | -| | None | Knowledge only. One item per file in `documents`, in the same order. | -| | None | Knowledge only. App sources. | -| | None | Memories only. Memory items. | -| | `true` | Replace existing context with the same `id`. | - - - - -Set `kind` on the app source and repeat it as `fields.kind`. Every other key in `fields` is optional. - -| Kind | Use it for | Keys in `fields` | -|---|---|---| -| `email` | An email | `subject`, `body`, `from`, `to`, `cc`, `bcc`, `thread_id`, `reply_to_id`, `forwarded_from_id`, `created_at`, `url` | -| `message` | A chat message | `body`, `author`, `thread_id`, `parent_id`, `mentions`, `created_at`, `edited_at`, `url` | -| `ticket` | A ticket or issue | `title`, `description`, `status`, `priority`, `assignee`, `reporter`, `parent_id`, `linked_issue_ids`, `created_at`, `updated_at`, `url` | -| `knowledge_base` | A wiki page or article | `title`, `body`, `parent_id`, `created_by`, `updated_by`, `created_at`, `updated_at`, `url` | -| `comment` | A comment on another record | `body`, `author`, `parent_id`, `thread_id`, `created_at`, `updated_at`, `url`, `properties` | -| `meeting` | A meeting or call | `title`, `body`, `host`, `host_email`, `participants`, `started_at`, `updated_at`, `labels`, `url` | -| `custom` | Any other record, such as a CRM deal or a database row | `body`, `parent_id`, `thread_id`, `data` | - - - - -| Field | Description | -|---|---| -| | Optional stable ID. Acts as the upsert key. | -| | Short label for display in `/context/list` and query results. | -| | Raw text or Markdown content. Required unless `user_assistant_pairs` is provided. | -| | Conversation pairs in the shape `{ "user": "...", "assistant": "..." }`. Required unless `text` is provided. | -| | Treat `text` as Markdown for chunking and indexing. | -| | When `true`, HydraDB extracts the underlying preference, trait, or fact. When `false` (the default), it stores the input as written. | -| | Guides extraction when `infer: true`. Ignored when `infer: false`. | -| | User name used during inference. | -| | Metadata schema fields for filtering. Send this as an object inside each `memories[]` item, for example `"metadata": { "department": "support" }`. Up to 16 KiB as compact JSON. | -| | Free-form per-memory fields for display or bookkeeping. Send this as an object. Up to 1 KiB as compact JSON. | - -`memories` is a JSON string. Inside each item, `metadata` and `additional_metadata` are plain objects; do not stringify them again. - -```json -{ - "id": "pref_dark_mode", - "text": "User prefers dark mode and concise answers.", - "infer": true, - "metadata": { "department": "support", "workspace": "docs" }, - "additional_metadata": { "source": "onboarding" } -} -``` - - - - -## Common mistakes - -| Mistake | What goes wrong | Fix | -|---|---|---| -| Storing shared documents as memories | They do not surface when querying `type: "knowledge"` | Ingest them with `type=knowledge`. | -| Querying with the wrong `type` | Nothing returned: the other type was searched | Use the matching `type`, or `"all"`. | -| Omitting `collection` for per-user memories | The memory lands in the default collection and may surface in the wrong scope | Use the user's ID as `collection` to keep each user separate. | -| Querying before indexing finishes | Results are empty, or a new collection returns `400` as not existing | Wait for `indexing_status` to reach `completed`. | -| Sending `document_metadata`, `app_knowledge`, or `memories` as a JSON object | `multipart/form-data` validation fails | Send each as a JSON string. | -| Sending pre-extracted facts with `infer: true` | HydraDB may re-derive the memory and change the original phrasing | Use `infer: false` for already-structured facts. | -| Extracting preferences yourself instead of sending the raw logs | You duplicate work HydraDB can do for you | Send the raw signal with `infer: true`. | -| Pointing a forceful relation from knowledge to a memory | Nothing is returned: relations stay within one type | Link knowledge to knowledge. | - -## Related - -- [Query](/essentials/v2/query): search context and pass the result to a model -- [Databases and Collections](/essentials/v2/databases-and-collections): where context is saved, and how to keep users apart -- [Metadata Filters](/essentials/v2/metadata): fields to filter on -- [Connectors](/essentials/v2/connectors): keep an app's knowledge in sync -- [Ingest Context: API Reference](/api-reference/v2/endpoint/ingest-context) +`query_explicit_relations` defaults to `true`; set it to `false` to skip the linked sources. diff --git a/essentials/v2/databases-and-collections.mdx b/essentials/v2/databases-and-collections.mdx index c9b17ef9..cab276ac 100644 --- a/essentials/v2/databases-and-collections.mdx +++ b/essentials/v2/databases-and-collections.mdx @@ -1,234 +1,42 @@ --- title: "Databases and Collections" -description: "Scope every write and read with a database and a collection, and split scopes only where context must never meet in one query." +description: "HydraDB is multi tenant by design. Every database can hold multiple collections/namespaces. You can scope read/write split between database(s) and collections. " --- -HydraDB scopes every write and every read with two fields: `database`, an isolated store for one customer or one environment, and `collection`, an optional group inside a database. Most products need one database and one collection. Your backend sets both on every request; the user never chooses them. +Every write and read is scoped with two fields: `database`, an isolated store for one environment (for eg - one enterprise could be one database), and `collection`, a group separated by logic, not infrastructure, inside a database. Most products need one database and multiple collections. -## 1. Choose how to scope your data +## Choose how to scope your data -Pick the scope by what must never meet in one query: +Some examples of goals and outcomes to help shape up your mental model | Goal | Use | |---|---| | A company brain: one query across all your files and connectors | One `database` and one collection for everything. Isolate results inside it with metadata filters and access control | -| Separate customers on your platform | A different `database` per customer | -| Separate environments (`prod` vs `staging`) | A different `database` per environment | +| Separate enterprise customers on your platform | A different `database` per customer | | Keep each person's memories apart | One `database`, and a collection per person, such as `user_123` | -### Company brain - -Put everything in one collection: connect all your connectors and ingest all your files and app sources there, so one query searches across all of it. When some results must stay out of reach for some people, keep the single collection and isolate inside it. Put a team, region, or user ID in [metadata](/essentials/v2/metadata) and filter on it. Let [access control](/essentials/v2/query#6-query-on-behalf-of-a-user), captured from the source app's permissions or set by you, decide who may retrieve each source. HydraDB enforces both inside one query. - -### B2C application - -Use one database for the application. Keep shared knowledge in one collection, and give each user a collection for their memories, for example `collection = "user_123"`. Ingest each user's preferences and conversation history with that collection, and query with the same one. - -### B2B SaaS - -Use one database per customer organization, for example `database = "acme_corp"`. Inside it, keep the organization's knowledge in one collection and isolate teams with metadata filters and access control. Give each user a collection only for their memories. - -### Shared knowledge plus personal memories - -For answers grounded in shared knowledge and personalized with the user's memories, send `type: "all"` on [`POST /query`](/api-reference/v2/endpoint/query). It reads both from the same collections and returns one ranked list, so name the knowledge collection and the user's with `collections: ["company_docs", "user_123"]`. Every listed collection must already exist, and the list holds up to 100. When your prompt needs the two formatted differently, call `POST /query` twice, once with `type: "knowledge"` and once with `type: "memory"`. - -## 2. Write and read with the same scope - -This example saves a memory for `user_123` and then queries it for the same user. Both requests name the database `acme_corp` and the collection `user_123`. That is the whole mechanism: context written under a collection is read back only by requests that name that collection. - - - -Set up your [SDK client](/api-reference/v2/sdks#client-setup) before running the Python or TypeScript example. - - - -```python Python SDK -import json -import os -from hydra_db import HydraDB - -client = HydraDB(token=os.environ["HYDRADB_API_KEY"]) - -# 1. Write a memory under the user's collection. -client.context.ingest( - type="memory", - database="acme_corp", - collection="user_123", - memories=json.dumps([ - { - "text": "Prefers dark mode and short answers.", - "infer": True, - "user_name": "John", - } - ]), -) -``` - -```typescript TypeScript SDK -import { HydraDBClient } from "@hydradb/sdk"; - -const client = new HydraDBClient({ - token: process.env.HYDRADB_API_KEY, -}); - -// 1. Write a memory under the user's collection. -await client.context.ingest({ - type: "memory", - database: "acme_corp", - collection: "user_123", - memories: JSON.stringify([ - { - text: "Prefers dark mode and short answers.", - infer: true, - user_name: "John", - }, - ]), -}); -``` - -```bash cURL -# 1. Write a memory under the user's collection. -curl -X POST 'https://api.hydradb.com/context/ingest' \ - -H "Authorization: Bearer $HYDRADB_API_KEY" \ - -H "API-Version: 2" \ - -F "type=memory" \ - -F "database=acme_corp" \ - -F "collection=user_123" \ - -F 'memories=[ - { - "text": "Prefers dark mode and short answers.", - "infer": true, - "user_name": "John" - } - ]' -``` - - - -Wait for [`GET /context/status`](/api-reference/v2/endpoint/source-status) to report `completed` for the returned memory `id` in `user_123`, then run the query. - - - -```python Python SDK -# 2. Search the memories in the same collection. -result = client.query( - database="acme_corp", - collection="user_123", - query="How does this user like answers written?", - type="memory", -) -``` - -```typescript TypeScript SDK -// 2. Search the memories in the same collection. -const result = await client.query({ - database: "acme_corp", - collection: "user_123", - query: "How does this user like answers written?", - type: "memory", -}); -``` - -```bash cURL -# 2. Search the memories in the same collection. -curl -X POST 'https://api.hydradb.com/query' \ - -H "Authorization: Bearer $HYDRADB_API_KEY" \ - -H "API-Version: 2" \ - -H "Content-Type: application/json" \ - -d '{ - "database": "acme_corp", - "collection": "user_123", - "query": "How does this user like answers written?", - "type": "memory" - }' -``` - - - - - -### What each property means - -| Property | What it is | -|---|---| -| `database` | The customer's or environment's database. Create it first with [`POST /databases`](/api-reference/v2/endpoint/create-database). | -| `collection` | The group inside the database. Both requests name the same one, so the query reads what the write stored. | -| `type` | `memory` on both: the write saves a [memory](/essentials/v2/context#2-save-memories) and the query searches memories. `knowledge` and `all` work the same way with the same scope. | -| `memories` | The memory items, as a JSON string. | -| `query` | The user's question. HydraDB ranks results inside the collection you named. | - -Use stable internal IDs for both fields, such as `user_123`, `workspace_42`, or `org_acme`. Display names, emails, and user-typed labels change, and a changed scope name orphans the context written under the old one. - -## 3. How writes and reads scope +## How writes and reads scope -**Writes:** Send the `collection` you will query the context from. John's memories go in John's collection; shared knowledge goes in the shared one. Omit `collection` and HydraDB uses the database's default collection, which is created on the first write. +**Writes:** Send the `collection` you will query the context from. John's memories go in John's collection; shared knowledge goes in the shared one. When omit `collection` HydraDB uses a universal default collection, which is automatically created. -**Reads:** A query that names one `collection` reads only that collection. It does not read the default collection or any other collection. To read several at once, send `collections` as a list, or as an object that maps each collection to a relative ranking weight, as in `{"company_docs": 1.5, "user_123": 0.8}`. +**Reads:** A query containing one `collection` reads only that collection. To read several collections at once, send `collection` names as a list, or as an object that maps each collection to a relative ranking weight, as in `{"company_docs": 1.5, "user_123": 0.8}`. -**Deleting a collection:** [`DELETE /databases/collections`](/api-reference/v2/endpoint/delete-collection) permanently removes one collection and everything in it. The parent database and its other collections stay. Confirm the name with [List Collections](/api-reference/v2/endpoint/list-collections) first. On the dashboard, open a database to see its collections and delete from the list. +**Deleting a collection:** `DELETE /databases/collections` permanently deletes that collection and everything in it. The parent database and its other collections unaffected. -## 4. Migrate from the deprecated tenant and sub-tenant fields - -`database` and `collection` are the current names for the fields that were called `tenant_id` and `sub_tenant_id`. The rename is user-facing only. Nothing about your stored context changes, the old names still work as deprecated aliases, and migration is optional and non-breaking. - -Both names work on every surface: - -| Surface | Deprecated (still works) | Current (preferred) | -|---|---|---| -| Routes | `/tenants`, `/tenants/status`, `/tenants/{tenant_id}/metadata-schema`, and the rest | `/databases`, `/databases/status`, `/databases/{database}/metadata-schema`, and the rest | -| Request fields | `tenant_id`, `sub_tenant_id` | `database`, `collection` | -| `/query` multi-scope selector | `sub_tenant_ids` | `collections` | -| Query params | `?tenant_id=...&sub_tenant_id=...` | `?database=...&collection=...` | - -Both route prefixes use the same handlers. Deprecated fields are accepted in the query string, the JSON body, and the multipart form. The singular `sub_tenant_id` still works on [`/query`](/api-reference/v2/endpoint/query) too. - -### Deprecation signals +## Deprecation signals When a request uses a deprecated route or field, HydraDB adds a deprecation notice. It is never an error, and the status code is unchanged: -- **Response headers:** `Deprecation: true`, plus a `Warning` header carrying the migration message. -- **`meta.deprecation`:** a list of notices in the response envelope's `meta` object, on endpoints that return the envelope. Each entry carries `deprecated`, a readable `message`, and `deprecated_since` (`"2.0.1"`). Field-level notices, such as `sub_tenant_ids` to `collections`, also include `deprecated_field` and `preferred_field`; route-level notices omit them. - - - -```json -{ - "success": true, - "data": { "...": "..." }, - "error": null, - "meta": { - "request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d", - "latency_ms": 12.3, - "deprecation": [ - { - "deprecated": true, - "message": "The /tenants routes are deprecated. Migrate to the /databases routes.", - "deprecated_since": "2.0.1" - } - ] - } -} -``` - - - -Use these signals to find and retire deprecated usage. Once you send only the current names on the `/databases` routes, the header and `meta.deprecation` disappear. - -### Sending both names - -If you send a current field and its deprecated alias together: - -- **Same value:** for example `database` and `tenant_id` both `"acme"`. Accepted. HydraDB uses the current field. -- **Different values:** for example `database: "acme"` and `tenant_id: "other"`. Rejected with `400`, because the two names refer to the same thing and must agree. Send only one. The same rule applies to `collection` and `sub_tenant_id`, and to `collections` and `sub_tenant_ids` on `/query`. +**Response headers:** `Deprecation: true`, plus a `Warning` header carrying the migration message. ## Common mistakes diff --git a/essentials/v2/metadata-2.mdx b/essentials/v2/metadata-2.mdx new file mode 100644 index 00000000..6e3a8885 --- /dev/null +++ b/essentials/v2/metadata-2.mdx @@ -0,0 +1,644 @@ +--- +title: "Metadata & Filtering (copy)" +description: "Declare metadata fields on a database, attach values when you ingest, and filter queries to the sources that match." +--- + +## Declare a field and filter on it + +Three requests: create the database with a metadata schema, ingest a source that carries values for those fields, then query with `metadata_filters`. The example declares `department`, `priority`, and a `summary_label` field that is also searchable as text. + + + Set up your [SDK client](/api-reference/v2/sdks#client-setup) before running the Python or TypeScript example. + + + + ```python Python SDK + import os + from hydra_db import HydraDB + + client = HydraDB(token=os.environ["HYDRADB_API_KEY"]) + + client.databases.create( + database="acme_corp", + database_metadata_schema=[ + {"name": "department", "data_type": "VARCHAR"}, + {"name": "priority", "data_type": "INT64"}, + { + "name": "summary_label", + "data_type": "VARCHAR", + "enable_dense_embedding": True, + "enable_sparse_embedding": True, + }, + ], + ) + ``` + + ```typescript TypeScript SDK + import { HydraDBClient } from "@hydradb/sdk"; + + const client = new HydraDBClient({ + token: process.env.HYDRADB_API_KEY, + }); + + await client.databases.create({ + database: "acme_corp", + databaseMetadataSchema: [ + { name: "department", dataType: "VARCHAR" }, + { name: "priority", dataType: "INT64" }, + { + name: "summary_label", + dataType: "VARCHAR", + enableDenseEmbedding: true, + enableSparseEmbedding: true, + }, + ], + }); + ``` + + ```bash cURL + curl -X POST 'https://api.hydradb.com/databases' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ + "database": "acme_corp", + "database_metadata_schema": [ + { "name": "department", "data_type": "VARCHAR" }, + { "name": "priority", "data_type": "INT64" }, + { + "name": "summary_label", + "data_type": "VARCHAR", + "enable_dense_embedding": true, + "enable_sparse_embedding": true + } + ] + }' + ``` + + + + + + After creating the database, wait for [`GET /databases/status`](/api-reference/v2/endpoint/database-status) to report `infra.ready_for_ingestion: true` before ingesting. + + Send `metadata` and `additional_metadata` on each `app_knowledge[]` item, or on each `document_metadata[]` item when you upload files. For `type=memory`, the `memories` field is already a JSON string, and each memory item's `metadata` and `additional_metadata` are plain objects inside it; do not stringify them a second time. + + + + ```python Python SDK + import json + + client.context.ingest( + type="knowledge", + database="acme_corp", + collection="default", + app_knowledge=json.dumps([ + { + "database": "acme_corp", + "collection": "default", + "id": "auth-controls-001", + "kind": "knowledge_base", + "fields": { + "kind": "knowledge_base", + "title": "Authentication controls", + "body": "Authentication controls are reviewed quarterly for SOC2.", + }, + "metadata": { + "department": "security", + "priority": 7, + "summary_label": "quarterly access control review", + }, + "additional_metadata": {"author": "alice", "doc_version": 3}, + } + ]), + ) + ``` + + ```typescript TypeScript SDK + await client.context.ingest({ + type: "knowledge", + database: "acme_corp", + collection: "default", + appKnowledge: JSON.stringify([ + { + database: "acme_corp", + collection: "default", + id: "auth-controls-001", + kind: "knowledge_base", + fields: { + kind: "knowledge_base", + title: "Authentication controls", + body: "Authentication controls are reviewed quarterly for SOC2.", + }, + metadata: { + department: "security", + priority: 7, + summary_label: "quarterly access control review", + }, + additional_metadata: { author: "alice", doc_version: 3 }, + }, + ]), + }); + ``` + + ```bash cURL + curl -X POST 'https://api.hydradb.com/context/ingest' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -F "type=knowledge" \ + -F "database=acme_corp" \ + -F "collection=default" \ + -F 'app_knowledge=[ + { + "database": "acme_corp", + "collection": "default", + "id": "auth-controls-001", + "kind": "knowledge_base", + "fields": { + "kind": "knowledge_base", + "title": "Authentication controls", + "body": "Authentication controls are reviewed quarterly for SOC2." + }, + "metadata": { + "department": "security", + "priority": 7, + "summary_label": "quarterly access control review" + }, + "additional_metadata": { + "author": "alice", + "doc_version": 3 + } + } + ]' + ``` + + + + + + Wait for [`GET /context/status`](/api-reference/v2/endpoint/source-status) to report `completed` for `auth-controls-001` in the `default` collection before running this query. + + Top-level keys filter on `metadata`. Keys nested under `additional_metadata` filter on the free-form layer. Both can appear in one request. + + + + ```python Python SDK + result = client.query( + database="acme_corp", + collection="default", + query="How do access control reviews work?", + type="knowledge", + metadata_filters={ + "department": {"equals": "security"}, + "priority": {"equals": 7}, + "additional_metadata": {"author": "alice"}, + }, + ) + ``` + + ```typescript TypeScript SDK + const result = await client.query({ + database: "acme_corp", + collection: "default", + query: "How do access control reviews work?", + type: "knowledge", + metadataFilters: { + department: { equals: "security" }, + priority: { equals: 7 }, + additional_metadata: { author: "alice" }, + }, + }); + ``` + + ```bash cURL + curl -X POST 'https://api.hydradb.com/query' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ + "database": "acme_corp", + "collection": "default", + "query": "How do access control reviews work?", + "type": "knowledge", + "metadata_filters": { + "department": { "equals": "security" }, + "priority": { "equals": 7 }, + "additional_metadata": { "author": "alice" } + } + }' + ``` + + + + +### What each property means + +| Property | What it is | +| --- | --- | +| `metadata` on the item | Values for the declared fields. | +| `database_metadata_schema` | The fields a source's `metadata` may carry, each with a `name` and a `data_type`. The [schema field reference](#schema-field-reference) lists every option and limit. | +| `enable_dense_embedding`, `enable_sparse_embedding` | Make a `VARCHAR` field searchable as text: dense adds semantic search, sparse adds keyword (BM25) search. To search it, put the concept in `query`, not in `metadata_filters`. | +| `additional_metadata` on the item | Free-form fields with no schema. [The two layers](#2-the-two-layers) compares the two, and [Size limits](#4-size-limits) gives the per-item cap on each. | +| `metadata_filters` | Hard constraints applied before ranking. Every key must match. [Filter operators](#3-filter-operators) covers the forms. | + +A valid filter that matches no source returns an empty result. HydraDB does not widen it into an unfiltered search. + + + +## Metadata and additional metadata + +| Layer | Sent at ingest as | Query filter shape | Best for | +| --- | --- | --- | --- | +| Database metadata | `metadata` | Top-level keys in `metadata_filters.` | Fields you filter on often, such as department, region, plan, customer, or status. Declare their names and types in `database_metadata_schema`. | +| Additional metadata | `additional_metadata` | Nested under metadata `metadata_filters.additional_metadata` | Free-form per-source fields for display, citations, debugging, external IDs, or occasional filters. No schema. | + +A filter runs in three steps: + +1. HydraDB resolves the `metadata` and `additional_metadata` filters to the matching source IDs. +2. It runs vector and keyword retrieval only over those sources. +3. It rechecks every retrieved chunk against the filter. The recheck also keeps graph expansion and retry paths from leaking excluded sources. + +An `additional_metadata` filter that cannot be resolved up front is checked after retrieval, with about 3x over-fetch to compensate. + +A few fields worth declaring from the start: + +- **`status`:** tag every source `draft` or `published`, and send `{"status": {"equals": "published"}}` on user-facing queries to keep work in progress out of customer answers. +- **`language`:** route each query to its language with a filter on the detected language. + +For a company brain, filters do the isolation inside one collection: put a team, region, or user id in `metadata` and filter on it in each query. Use separate [collections](/essentials/v2/databases-and-collections#1-choose-how-to-scope-your-data) only for data that must never meet in one search. + + + + + +## 3. Filter operators + +Each top-level key in `metadata_filters` takes an operator object naming the comparison: + +| Operator | Value | Matches | +| --- | --- | --- | +| `equals` | a single value | sources whose whole stored value is exactly that value | +| `contains` | a single value | sources whose field holds that value, at any position in a multi-value field | +| `contains_any` | an array | sources holding any one of the listed values (OR, like IN) | + +`equals` works on every declared type, so `{"priority": {"equals": 7}}` is valid on an `INT64` field. `contains`, `contains_any`, and arrays need a `VARCHAR` field; sent for a declared field of another type, they are rejected with `400`. + + + ```json + { + "metadata_filters": { + "department": { "equals": "legal" }, + "attendee_emails": { "contains": "b@company.com" }, + "tags": { "contains_any": ["alpha", "beta"] } + } + } + ``` + + Given four sources with these `attendee_emails` values: + + | Source | `attendee_emails` | + | --- | --- | + | A | `a@company.com` | + | B | `a@company.com,b@company.com` | + | C | `c@company.com` | + | D | `x@company.com,a@company.com,z@company.com` | + + | Filter | Returns | + | --- | --- | + | `{"equals": "a@company.com"}` | A | + | `{"contains": "a@company.com"}` | A, B, D | + | `{"contains_any": ["a@company.com", "c@company.com"]}` | A, B, C, D | + + +| Behavior | Contract | +| --- | --- | +| Multiple keys | AND. Every key you send must match, across both layers. | +| Lists | ANY, not ALL. `{"contains_any": ["alpha", "beta"]}` matches a source tagged `alpha` and a source tagged `beta`. Adding values widens the result set; there is no ALL operator inside a single key. | +| OR | Within one key, use `contains_any`. Across different keys, run several queries and union the results yourself. | +| Null values | Rejected with `400` (`metadata_filters values cannot be null`). | +| Range and fuzzy | Not supported. Put the concept in `query`, use a searchable `VARCHAR` field, or post-process in your application. | +| Graph context | Respects the filter; graph paths from excluded sources are removed. | +| Size | At most 500 values per list, and 64 KiB for the whole `metadata_filters` object. See [filter size limits](#filter-size-limits). | + +**Filtering `additional_metadata`:** operators apply to top-level keys only. Inside `additional_metadata`, use a bare value for an exact match or an array to match any listed value. An operator placed there is not rejected; it is read as an exact match against a stored object, so the query returns `200` with an empty result. + +**What returns `400`, and what does not:** a known operator with the wrong value type, several operators in one object, or a `null` value is rejected with `400`. A misspelled operator, such as `{"contian": "x"}`, is not rejected; it is read as a filter for a stored object with that key and matches nothing. + +**Reserved key names:** `equals`, `contains`, and `contains_any` are read as operators. This only matters for a `JSON` field that stores an object whose keys are all drawn from those words: `{"contains": "x"}` is read as the operator, `{"contains": "a", "equals": "b"}` is rejected with `400`, and `{"contains": "a", "other": 1}` stays an ordinary exact-match filter. To match such an object, rename the nested key or the field. + +**Bare forms:** filters without an operator still work but are deprecated, because the comparison is inferred from the JSON shape. A bare value behaves as `equals`, a bare array as `contains_any`, and a one-element array as `contains`, so `{"emails": "a@x"}` and `{"emails": ["a@x"]}` return different results. `document_metadata` is still accepted as a deprecated alias for `additional_metadata`; when both are present, `additional_metadata` wins on conflicts. + + + +### Store several values in one field + +A declared schema field holds a single value. To store several values in one field, declare it as `VARCHAR` and join the values with commas, then filter for one member with `contains`. + + + At ingest: + + ```json + { + "metadata": { + "attendee_emails": "a@company.com,b@company.com" + } + } + ``` + + At query: + + ```json + { + "metadata_filters": { + "attendee_emails": { "contains": "b@company.com" } + } + } + ``` + + +- **`data_type: "array"` is not accepted on a declared field:** declaring one is rejected with `400`. +- **An array value for a declared `VARCHAR` field is also rejected:** `metadata field "attendee_emails" must be of type string, got array`. Join the values yourself. +- **The comma is the separator:** a value that itself contains a comma will not match as expected. Use a field per value, or a different value format, if your values can contain commas. +- **Size the field for the whole joined string:** `max_length` defaults to `1024`, its maximum is `65535`, and it cannot be raised after the field is created, so declare it large enough up front. +- **`equals` compares the entire joined string:** it is rarely what you want on a multi-value field. Use `contains`. + + + +## 4. Size limits + +### Stored metadata + +Every request that attaches metadata is checked against two caps, on ingest and on metadata edit alike: + +| Layer | Send as | Cap | +| --- | --- | --- | +| `metadata` | `metadata` at ingest, `database_metadata` on edit | 16 KiB (16,384 bytes) | +| `additional_metadata` | `additional_metadata` | 1 KiB (1,024 bytes) | + +Deprecated aliases are still accepted, but which one works depends on the endpoint: + +| Alias | On `/context/ingest` | On `PATCH /context/{id}/metadata` | +| --- | --- | --- | +| `tenant_metadata` | accepted | accepted (`database_metadata` wins if both are sent) | +| `document_metadata` | accepted | rejected with `400`: send `additional_metadata` | + +Accepted aliases have the same cap as the canonical field. + +The cap applies to the whole map, not to any one value, and it is measured on the map's compact JSON encoding in UTF-8 bytes. Three consequences: + +- **Keys and punctuation count:** quotes, colons, commas, and braces all count toward the byte limit. +- **Bytes, not characters:** accented Latin characters cost 2 bytes, most CJK characters 3, and emoji 4. +- **Budget in bytes from the start:** a 950-character summary sounds comfortably under a 1 KiB cap, but with two small sibling keys it serializes to 1,015 bytes (65 bytes of that is structure alone). Push the summary to 1,000 characters and the request is rejected at 1,065 bytes. + +Exceeding either cap fails the whole request with `400` before anything is ingested. The message names the offending field and reports both numbers. On [`PATCH /context/{id}/metadata`](/api-reference/v2/endpoint/update-source-metadata) the same message is prefixed with `invalid metadata edit:`. + + + ```json Document metadata: 1,015 bytes, just inside the 1 KiB cap + {"title":"Q3 Board Deck","author":"ada@example.com","summary":"<950 characters>"} + ``` + + ```json + { + "success": false, + "data": null, + "error": { + "code": "INVALID_INPUT", + "message": "additional_metadata is too large (1065 bytes when serialized; the maximum is 1024). Reduce the number or size of metadata fields." + } + } + ``` + + +If a source needs more than 1 KiB of descriptive metadata, put the long text in the source's body, where it gets chunked and embedded, and keep `additional_metadata` for the short values you filter on. + +### Filter size limits + +`metadata_filters` on [`/query`](/api-reference/v2/endpoint/query) has its own pair of caps. They bound what you send at query time, not how much metadata a source carries: + +| Limit | Cap | +| --- | --- | +| Values in any one list | 500 | +| Whole `metadata_filters` object | 64 KiB (65,536 bytes) | + +Both are measured the same way as the stored caps: compact JSON, UTF-8 bytes, field names and punctuation counted. The object total includes the nested `additional_metadata` object, and it is measured after operator objects are reduced to their values, so `{"contains": "x"}` counts as `["x"]` and the operator keyword costs nothing. + +Both limits exist because every value in a list is expanded into the filter expression sent to the vector store. The per-list cap catches one runaway list; the object cap catches many individually legal lists adding up. Twenty lists of 500 values are each within the element cap but total roughly 127 KiB, so the object cap is what rejects them. + +Exceeding either limit returns `400` before the query runs, naming the offending key or the actual byte count. + + + ```text + metadata_filters.customer_id (got 743) must contain at most 500 values + + metadata_filters is too large (130251 bytes when serialized; the maximum is 65536). + Reduce the number or size of filter values. + ``` + + +Needing far more than 500 values in one filter usually means the constraint belongs in the data rather than the query: add a metadata field that groups those values (a segment, tier, or cohort key) and filter on that instead. + + + + + +## 5. Add schema fields later + +[`PATCH /databases/{database}/metadata-schema`](/api-reference/v2/endpoint/update-metadata-schema) adds fields to an existing database. It is additive only: fields are added, never deleted, retyped, or reflagged. The response returns `added_fields` directly, without the `success` and `data` envelope, and a field you resend with an identical definition is skipped. + + + + + ```python Python SDK + client.databases.update_metadata_schema( + "acme_corp", + add_fields=[{"name": "status", "data_type": "VARCHAR", "max_length": 32}], + ) + ``` + + ```typescript TypeScript SDK + await client.databases.updateMetadataSchema({ + database: "acme_corp", + addFields: [{ name: "status", dataType: "VARCHAR", maxLength: 32 }], + }); + ``` + + ```bash cURL + curl -X PATCH 'https://api.hydradb.com/databases/acme_corp/metadata-schema' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ + "add_fields": [ + { "name": "status", "data_type": "VARCHAR", "max_length": 32 } + ] + }' + ``` + + + + +Plan the schema before your first ingest: + +- **Searchable fields are declared at creation:** fields added later cannot turn on dense or sparse search; the endpoint rejects `enable_dense_embedding` and `enable_sparse_embedding`. +- **Existing fields are fixed:** renaming a key means re-ingesting the affected sources, or creating a new database with the corrected schema. +- **Undeclared keys match nothing:** a database with a schema rejects undeclared `metadata` keys on ingest and on edit, so no source ever holds them, and a filter on such a key returns nothing. The exceptions are `connector_id` and `provider`, which [connectors](/essentials/v2/connectors#metadata-on-synced-objects) write on every synced source. If you will filter on a field more than once, declare it. + + + +## 6. Update metadata without re-ingesting + +Use [`PATCH /context/{id}/metadata`](/api-reference/v2/endpoint/update-source-metadata) when you know the source ID and need to change its metadata in place. The body uses `database_metadata` for the schema-backed layer (the shorter `metadata` spelling from ingest is not accepted here) and `additional_metadata` for the free-form layer. + + + + + ```python Python SDK + client.context.update_source_metadata( + "auth-controls-001", + database="acme_corp", + collection="default", + database_metadata={"department": "legal"}, + additional_metadata={"author": "grace"}, + ) + ``` + + ```typescript TypeScript SDK + await client.context.updateSourceMetadata({ + id: "auth-controls-001", + database: "acme_corp", + collection: "default", + databaseMetadata: { department: "legal" }, + additionalMetadata: { author: "grace" }, + }); + ``` + + ```bash cURL + curl -X PATCH 'https://api.hydradb.com/context/auth-controls-001/metadata' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ + "database": "acme_corp", + "collection": "default", + "database_metadata": { "department": "legal" }, + "additional_metadata": { "author": "grace" } + }' + ``` + + + + +- **The source must already exist:** this endpoint does not create sources, and `collection` is required. +- **At least one of `database_metadata`, `additional_metadata`, `acl`, or `acl_inherit: true` is required:** `tenant_metadata` is a deprecated alias for `database_metadata`; `document_metadata` is rejected. +- **Metadata merges:** sent keys are inserted or overwritten; omitted keys are preserved. `acl` is the exception: when sent, it replaces the stored list, and an `acl`-only body is a valid edit. To remove a connector source's own ACL, send `acl_inherit: true` without `acl`. This can widen access. See [Restore resource permissions](/essentials/v2/connectors#restore-resource-permissions) for eligibility and validation rules. +- **The edit is visible to filters and listing right away:** if no edited field has an embedding flag, the vector store is untouched and the response reports `vector_sync_required: false`. +- **Searchable fields sync synchronously:** if an edited field has `enable_dense_embedding` or `enable_sparse_embedding`, HydraDB refreshes that field's search lane and reports `vector_sync_required` and `vector_synced` in the response (the `milvus_sync_required` and `milvus_synced` aliases are still emitted, deprecated). Such a field rejects `null`, because it would leave stale metadata vectors behind. + +To replace a source's content as well as its metadata, re-ingest it with `upsert: true` and the same source `id`. Upsert replaces the source payload and the metadata supplied by ingestion. + + + +## 7. List sources with metadata filters + +Use [`POST /context/list`](/api-reference/v2/endpoint/list-context) to browse or page sources rather than run semantic retrieval. Its `filters` object takes `metadata`, `additional_metadata`, and `source_fields`, each as bare key-value pairs. `source_fields` filters on the source's own fields: `title`, `type`, `description`, `url`, `timestamp`, and for app sources `app_provider`, `app_kind`, `app_external_id`, and `app_parent_id`. Pair `app_external_id` or `app_parent_id` with `app_provider`, because a Jira issue key and a Linear ID can collide. + + + + + ```python Python SDK + from hydra_db import ListContentFilter + + result = client.context.list( + database="acme_corp", + collection="default", + type="knowledge", + filters=ListContentFilter( + metadata={"department": "legal"}, + additional_metadata={"author": "alice"}, + source_fields={"app_provider": "slack"}, + ), + ) + ``` + + ```typescript TypeScript SDK + const result = await client.context.list({ + database: "acme_corp", + collection: "default", + type: "knowledge", + filters: { + metadata: { department: "legal" }, + additionalMetadata: { author: "alice" }, + sourceFields: { appProvider: "slack" }, + }, + }); + ``` + + ```bash cURL + curl -X POST 'https://api.hydradb.com/context/list' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ + "database": "acme_corp", + "collection": "default", + "type": "knowledge", + "filters": { + "metadata": { "department": "legal" }, + "additional_metadata": { "author": "alice" }, + "source_fields": { "app_provider": "slack" } + } + }' + ``` + + + + +`/context/list` also accepts the deprecated aliases `tenant_metadata` for `metadata` and `document_metadata` for `additional_metadata`; the current name wins on conflicts. It takes the same `acl` field as `/query` to list as one user. See [Query](/essentials/v2/query#6-query-on-behalf-of-a-user). + + + + + +## Schema field reference + +Each entry in `database_metadata_schema` on [Create Database](/api-reference/v2/endpoint/create-database), and in `add_fields` on [Update Metadata Schema](/api-reference/v2/endpoint/update-metadata-schema), takes these options: + +| Field | Type / values | Purpose | +| --- | --- | --- | +| `name` | string | Metadata key. Must start with a letter, contain only letters, numbers, and underscores, and not use a reserved system name such as `source_id`, `chunk_id`, or `metadata`. | +| `data_type` | `VARCHAR`, `BOOL`, `INT8`, `INT16`, `INT32`, `INT64`, `FLOAT`, `DOUBLE`, `JSON`, or the friendly aliases `string`, `boolean`, `integer`, `float`, `object` | Defaults to `VARCHAR`. `ARRAY` is not supported and is rejected with `400`; for multi-value fields see [Store several values in one field](#store-several-values-in-one-field). | +| `max_length` | integer | Maximum length for a `VARCHAR` value. Default `1024`, maximum `65535`. This sizes one declared field; it is not the limit on how much metadata you can send per request, which is in [Size limits](#4-size-limits). | +| `enable_dense_embedding` | boolean | Adds semantic search over a `VARCHAR` field. | +| `enable_sparse_embedding` | boolean | Adds keyword (BM25) search over a `VARCHAR` field. | + +Limits: + +- Up to 32 custom metadata fields per database. +- Up to 6 embedding-enabled fields per database: `enable_dense_embedding` and `enable_sparse_embedding` each count as one, so a field with both set counts as two. Exceeding the limit fails database creation with `400` before anything is provisioned. +- Field names are unique case-insensitively. +- Embedding flags are only valid on `VARCHAR` fields. +- Values must match the declared type when the database has a schema. +- Unknown `metadata` keys are rejected on ingest and edit when the database has a non-empty schema. + +## Common mistakes + +| Symptom | Cause | Fix | +| --- | --- | --- | +| A filter on a top-level key returns nothing | The key is not declared in the schema, so no source holds it | [Add the field](#5-add-schema-fields-later) and set a value on your sources, or keep it in `additional_metadata` and nest the filter there. | +| A filter on an `additional_metadata` key returns nothing | The key was sent top-level, so it was matched against `metadata`, or it was sent with an operator object | Nest it with a bare value: `metadata_filters: { additional_metadata: { author: "alice" } }`. See [Filter operators](#3-filter-operators). | +| A query returns nothing after you add filters | The combined constraints exclude everything; keys are ANDed | Start with the minimum hard constraints, add filters one at a time, and re-check counts. | +| A range or fuzzy filter does not work | Only `equals`, `contains`, and `contains_any` are supported | Move the constraint into the `query` text, or post-process in your application. | +| An `additional_metadata` filter is slow | It could not be resolved up front, so it is checked [after retrieval](#2-the-two-layers) | Move the hot field into `metadata` and declare it in the schema. | +| A schema change does not take effect, or you need a searchable field after creation | The schema is [additive only](#5-add-schema-fields-later), and added fields cannot take embedding flags | Create a new database with the corrected schema and re-ingest. There is no in-place migration for existing fields. | +| A metadata edit returns `400` | Unknown key, wrong type, oversized payload, too-deep nesting, reserved key, missing `collection`, `null` on a searchable field, `acl` combined with `acl_inherit: true`, or inheritance without connector resource attribution | Check the schema, the [size limits](#4-size-limits), and the [edit rules](#6-update-metadata-without-re-ingesting); send a valid metadata edit or one ACL action. For a searchable field, set a non-null value or re-ingest. | + +## Related + +- [Context](/essentials/v2/context): what attaches to knowledge sources +- [Databases and Collections](/essentials/v2/databases-and-collections): scoping with collections, which filters do not replace +- [Query](/essentials/v2/query): how `metadata_filters` interacts with ranking +- [Create Database (API Reference)](/api-reference/v2/endpoint/create-database): full `database_metadata_schema` reference +- [Query (API Reference)](/api-reference/v2/endpoint/query): full `metadata_filters` reference +- [List Context (API Reference)](/api-reference/v2/endpoint/list-context): source browsing filters +- [Update Source Metadata (API Reference)](/api-reference/v2/endpoint/update-source-metadata): point metadata edits +- [Update Metadata Schema (API Reference)](/api-reference/v2/endpoint/update-metadata-schema): additive database schema changes diff --git a/essentials/v2/metadata.mdx b/essentials/v2/metadata.mdx index 317872b0..3b260fc0 100644 --- a/essentials/v2/metadata.mdx +++ b/essentials/v2/metadata.mdx @@ -1,639 +1,93 @@ --- -title: "Metadata Filters" -description: "Declare metadata fields on a database, attach values when you ingest, and filter queries to the sources that match." +title: "Metadata" +description: "Declare metadata fields on a database, attach values when you ingest, and filter queries to the sources that match. Use it for filtering and advanced querying patterns." --- -Metadata is structured data attached to each [knowledge](/essentials/v2/context) source and [memory](/essentials/v2/context#2-save-memories). You send it at ingest, and at query time `metadata_filters` on [`POST /query`](/api-reference/v2/endpoint/query) keeps only the sources whose values match, such as `department = legal` or `status = published`, before ranking runs. +## Overview - Two layers -## 1. Declare a field and filter on it - -Three requests: create the database with a metadata schema, ingest a source that carries values for those fields, then query with `metadata_filters`. The example declares `department`, `priority`, and a `summary_label` field that is also searchable as text. - - - -Set up your [SDK client](/api-reference/v2/sdks#client-setup) before running the Python or TypeScript example. - - -```python Python SDK -import os -from hydra_db import HydraDB - -client = HydraDB(token=os.environ["HYDRADB_API_KEY"]) - -client.databases.create( - database="acme_corp", - database_metadata_schema=[ - {"name": "department", "data_type": "VARCHAR"}, - {"name": "priority", "data_type": "INT64"}, - { - "name": "summary_label", - "data_type": "VARCHAR", - "enable_dense_embedding": True, - "enable_sparse_embedding": True, - }, - ], -) -``` -```typescript TypeScript SDK -import { HydraDBClient } from "@hydradb/sdk"; - -const client = new HydraDBClient({ - token: process.env.HYDRADB_API_KEY, -}); - -await client.databases.create({ - database: "acme_corp", - databaseMetadataSchema: [ - { name: "department", dataType: "VARCHAR" }, - { name: "priority", dataType: "INT64" }, - { - name: "summary_label", - dataType: "VARCHAR", - enableDenseEmbedding: true, - enableSparseEmbedding: true, - }, - ], -}); -``` -```bash cURL -curl -X POST 'https://api.hydradb.com/databases' \ - -H "Authorization: Bearer $HYDRADB_API_KEY" \ - -H "API-Version: 2" \ - -H "Content-Type: application/json" \ - -d '{ - "database": "acme_corp", - "database_metadata_schema": [ - { "name": "department", "data_type": "VARCHAR" }, - { "name": "priority", "data_type": "INT64" }, - { - "name": "summary_label", - "data_type": "VARCHAR", - "enable_dense_embedding": true, - "enable_sparse_embedding": true - } - ] - }' -``` - - - - - - -After creating the database, wait for [`GET /databases/status`](/api-reference/v2/endpoint/database-status) to report `infra.ready_for_ingestion: true` before ingesting. - -Send `metadata` and `additional_metadata` on each `app_knowledge[]` item, or on each `document_metadata[]` item when you upload files. For `type=memory`, the `memories` field is already a JSON string, and each memory item's `metadata` and `additional_metadata` are plain objects inside it; do not stringify them a second time. - - -```python Python SDK -import json - -client.context.ingest( - type="knowledge", - database="acme_corp", - collection="default", - app_knowledge=json.dumps([ - { - "database": "acme_corp", - "collection": "default", - "id": "auth-controls-001", - "kind": "knowledge_base", - "fields": { - "kind": "knowledge_base", - "title": "Authentication controls", - "body": "Authentication controls are reviewed quarterly for SOC2.", - }, - "metadata": { - "department": "security", - "priority": 7, - "summary_label": "quarterly access control review", - }, - "additional_metadata": {"author": "alice", "doc_version": 3}, - } - ]), -) -``` -```typescript TypeScript SDK -await client.context.ingest({ - type: "knowledge", - database: "acme_corp", - collection: "default", - appKnowledge: JSON.stringify([ - { - database: "acme_corp", - collection: "default", - id: "auth-controls-001", - kind: "knowledge_base", - fields: { - kind: "knowledge_base", - title: "Authentication controls", - body: "Authentication controls are reviewed quarterly for SOC2.", - }, - metadata: { - department: "security", - priority: 7, - summary_label: "quarterly access control review", - }, - additional_metadata: { author: "alice", doc_version: 3 }, - }, - ]), -}); -``` -```bash cURL -curl -X POST 'https://api.hydradb.com/context/ingest' \ - -H "Authorization: Bearer $HYDRADB_API_KEY" \ - -H "API-Version: 2" \ - -F "type=knowledge" \ - -F "database=acme_corp" \ - -F "collection=default" \ - -F 'app_knowledge=[ - { - "database": "acme_corp", - "collection": "default", - "id": "auth-controls-001", - "kind": "knowledge_base", - "fields": { - "kind": "knowledge_base", - "title": "Authentication controls", - "body": "Authentication controls are reviewed quarterly for SOC2." - }, - "metadata": { - "department": "security", - "priority": 7, - "summary_label": "quarterly access control review" - }, - "additional_metadata": { - "author": "alice", - "doc_version": 3 - } - } - ]' -``` - - - - - - -Wait for [`GET /context/status`](/api-reference/v2/endpoint/source-status) to report `completed` for `auth-controls-001` in the `default` collection before running this query. - -Top-level keys filter on `metadata`. Keys nested under `additional_metadata` filter on the free-form layer. Both can appear in one request. - - -```python Python SDK -result = client.query( - database="acme_corp", - collection="default", - query="How do access control reviews work?", - type="knowledge", - metadata_filters={ - "department": {"equals": "security"}, - "priority": {"equals": 7}, - "additional_metadata": {"author": "alice"}, - }, -) -``` -```typescript TypeScript SDK -const result = await client.query({ - database: "acme_corp", - collection: "default", - query: "How do access control reviews work?", - type: "knowledge", - metadataFilters: { - department: { equals: "security" }, - priority: { equals: 7 }, - additional_metadata: { author: "alice" }, - }, -}); -``` -```bash cURL -curl -X POST 'https://api.hydradb.com/query' \ - -H "Authorization: Bearer $HYDRADB_API_KEY" \ - -H "API-Version: 2" \ - -H "Content-Type: application/json" \ - -d '{ - "database": "acme_corp", - "collection": "default", - "query": "How do access control reviews work?", - "type": "knowledge", - "metadata_filters": { - "department": { "equals": "security" }, - "priority": { "equals": 7 }, - "additional_metadata": { "author": "alice" } - } - }' -``` - - - - -### What each property means - -| Property | What it is | -|---|---| -| `database_metadata_schema` | The fields a source's `metadata` may carry, each with a `name` and a `data_type`. The [schema field reference](#schema-field-reference) lists every option and limit. | -| `enable_dense_embedding`, `enable_sparse_embedding` | Make a `VARCHAR` field searchable as text: dense adds semantic search, sparse adds keyword (BM25) search. To search it, put the concept in `query`, not in `metadata_filters`. | -| `metadata` on the item | Values for the declared fields. | -| `additional_metadata` on the item | Free-form fields with no schema. [The two layers](#2-the-two-layers) compares the two, and [Size limits](#4-size-limits) gives the per-item cap on each. | -| `metadata_filters` | Hard constraints applied before ranking. Every key must match. [Filter operators](#3-filter-operators) covers the forms. | - -A valid filter that matches no source returns an empty result. HydraDB does not widen it into an unfiltered search. - - - -## 2. The two layers - -| Layer | Sent at ingest as | Query filter shape | Best for | -| --- | --- | --- | --- | -| Database metadata | `metadata` | Top-level keys in `metadata_filters` | Fields you filter on often, such as department, region, plan, customer, or status. Declare their names and types in `database_metadata_schema`. | -| Additional metadata | `additional_metadata` | Nested under `metadata_filters.additional_metadata` | Free-form per-source fields for display, citations, debugging, external IDs, or occasional filters. No schema. | - -A filter runs in three steps: - -1. HydraDB resolves the `metadata` and `additional_metadata` filters to the matching source IDs. -2. It runs vector and keyword retrieval only over those sources. -3. It rechecks every retrieved chunk against the filter. The recheck also keeps graph expansion and retry paths from leaking excluded sources. - -An `additional_metadata` filter that cannot be resolved up front is checked after retrieval, with about 3x over-fetch to compensate. - -A few fields worth declaring from the start: - -- **`status`:** tag every source `draft` or `published`, and send `{"status": {"equals": "published"}}` on user-facing queries to keep work in progress out of customer answers. -- **`language`:** route each query to its language with a filter on the detected language. - -For a company brain, filters do the isolation inside one collection: put a team, region, or user id in `metadata` and filter on it in each query. Use separate [collections](/essentials/v2/databases-and-collections#1-choose-how-to-scope-your-data) only for data that must never meet in one search. - - - - -## 3. Filter operators - -Each top-level key in `metadata_filters` takes an operator object naming the comparison: - -| Operator | Value | Matches | +| Layer | What it is | Use for | | --- | --- | --- | -| `equals` | a single value | sources whose whole stored value is exactly that value | -| `contains` | a single value | sources whose field holds that value, at any position in a multi-value field | -| `contains_any` | an array | sources holding any one of the listed values (OR, like IN) | - -`equals` works on every declared type, so `{"priority": {"equals": 7}}` is valid on an `INT64` field. `contains`, `contains_any`, and arrays need a `VARCHAR` field; sent for a declared field of another type, they are rejected with `400`. - - +| `metadata` | Declared in the schema and typed, so filters on it are fast. | Fields you filter on often, like department or status. | +| `additional_metadata` | Free-form with no schema. Filters can be slower, since they may be checked after retrieval. | Display values, citations, and external IDs. | -```json -{ - "metadata_filters": { - "department": { "equals": "legal" }, - "attendee_emails": { "contains": "b@company.com" }, - "tags": { "contains_any": ["alpha", "beta"] } - } -} -``` +## Schema fields -Given four sources with these `attendee_emails` values: - -| Source | `attendee_emails` | -| --- | --- | -| A | `a@company.com` | -| B | `a@company.com,b@company.com` | -| C | `c@company.com` | -| D | `x@company.com,a@company.com,z@company.com` | - -| Filter | Returns | -| --- | --- | -| `{"equals": "a@company.com"}` | A | -| `{"contains": "a@company.com"}` | A, B, D | -| `{"contains_any": ["a@company.com", "c@company.com"]}` | A, B, C, D | - - - -| Behavior | Contract | +| Option | Rule | | --- | --- | -| Multiple keys | AND. Every key you send must match, across both layers. | -| Lists | ANY, not ALL. `{"contains_any": ["alpha", "beta"]}` matches a source tagged `alpha` and a source tagged `beta`. Adding values widens the result set; there is no ALL operator inside a single key. | -| OR | Within one key, use `contains_any`. Across different keys, run several queries and union the results yourself. | -| Null values | Rejected with `400` (`metadata_filters values cannot be null`). | -| Range and fuzzy | Not supported. Put the concept in `query`, use a searchable `VARCHAR` field, or post-process in your application. | -| Graph context | Respects the filter; graph paths from excluded sources are removed. | -| Size | At most 500 values per list, and 64 KiB for the whole `metadata_filters` object. See [filter size limits](#filter-size-limits). | - -**Filtering `additional_metadata`:** operators apply to top-level keys only. Inside `additional_metadata`, use a bare value for an exact match or an array to match any listed value. An operator placed there is not rejected; it is read as an exact match against a stored object, so the query returns `200` with an empty result. - -**What returns `400`, and what does not:** a known operator with the wrong value type, several operators in one object, or a `null` value is rejected with `400`. A misspelled operator, such as `{"contian": "x"}`, is not rejected; it is read as a filter for a stored object with that key and matches nothing. - -**Reserved key names:** `equals`, `contains`, and `contains_any` are read as operators. This only matters for a `JSON` field that stores an object whose keys are all drawn from those words: `{"contains": "x"}` is read as the operator, `{"contains": "a", "equals": "b"}` is rejected with `400`, and `{"contains": "a", "other": 1}` stays an ordinary exact-match filter. To match such an object, rename the nested key or the field. - -**Bare forms:** filters without an operator still work but are deprecated, because the comparison is inferred from the JSON shape. A bare value behaves as `equals`, a bare array as `contains_any`, and a one-element array as `contains`, so `{"emails": "a@x"}` and `{"emails": ["a@x"]}` return different results. `document_metadata` is still accepted as a deprecated alias for `additional_metadata`; when both are present, `additional_metadata` wins on conflicts. - - - -### Store several values in one field +| `name` | Must be unique (case-insensitive). | +| `data_type` | Defaults to `VARCHAR`. `ARRAY` isn't supported. | +| `max_length` | Defaults to 1024, up to 65535. | +| Dense/sparse flags | Make a `VARCHAR` field searchable through `query`, not through filters. | -A declared schema field holds a single value. To store several values in one field, declare it as `VARCHAR` and join the values with commas, then filter for one member with `contains`. +A database allows up to 32 fields and 6 embedding flags. Values must match their declared type, and unknown keys are rejected. - +## Lifecycle & how filters run -At ingest: +Create the database with a schema and wait until it's ready. Ingest your sources with metadata values, wait for them to reach `completed`, then query with `metadata_filters`. -```json -{ - "metadata": { - "attendee_emails": "a@company.com,b@company.com" - } -} -``` +When a query runs, HydraDB: -At query: +- Finds the sources that match the filter, retrieves only from those, then rechecks every chunk, including graph paths. +- Returns an empty result if nothing matches. It never falls back to a wider search. -```json -{ - "metadata_filters": { - "attendee_emails": { "contains": "b@company.com" } - } -} -``` +## Operators - - -- **`data_type: "array"` is not accepted on a declared field:** declaring one is rejected with `400`. -- **An array value for a declared `VARCHAR` field is also rejected:** `metadata field "attendee_emails" must be of type string, got array`. Join the values yourself. -- **The comma is the separator:** a value that itself contains a comma will not match as expected. Use a field per value, or a different value format, if your values can contain commas. -- **Size the field for the whole joined string:** `max_length` defaults to `1024`, its maximum is `65535`, and it cannot be raised after the field is created, so declare it large enough up front. -- **`equals` compares the entire joined string:** it is rarely what you want on a multi-value field. Use `contains`. - - - -## 4. Size limits - -### Stored metadata - -Every request that attaches metadata is checked against two caps, on ingest and on metadata edit alike: - -| Layer | Send as | Cap | +| Operator | Matches | Types | | --- | --- | --- | -| `metadata` | `metadata` at ingest, `database_metadata` on edit | 16 KiB (16,384 bytes) | -| `additional_metadata` | `additional_metadata` | 1 KiB (1,024 bytes) | - -Deprecated aliases are still accepted, but which one works depends on the endpoint: - -| Alias | On `/context/ingest` | On `PATCH /context/{id}/metadata` | -| --- | --- | --- | -| `tenant_metadata` | accepted | accepted (`database_metadata` wins if both are sent) | -| `document_metadata` | accepted | rejected with `400`: send `additional_metadata` | - -Accepted aliases have the same cap as the canonical field. - -The cap applies to the whole map, not to any one value, and it is measured on the map's compact JSON encoding in UTF-8 bytes. Three consequences: - -- **Keys and punctuation count:** quotes, colons, commas, and braces all count toward the byte limit. -- **Bytes, not characters:** accented Latin characters cost 2 bytes, most CJK characters 3, and emoji 4. -- **Budget in bytes from the start:** a 950-character summary sounds comfortably under a 1 KiB cap, but with two small sibling keys it serializes to 1,015 bytes (65 bytes of that is structure alone). Push the summary to 1,000 characters and the request is rejected at 1,065 bytes. - -Exceeding either cap fails the whole request with `400` before anything is ingested. The message names the offending field and reports both numbers. On [`PATCH /context/{id}/metadata`](/api-reference/v2/endpoint/update-source-metadata) the same message is prefixed with `invalid metadata edit:`. +| `equals` | The exact whole value | Any | +| `contains` | One member of a multi-value field | `VARCHAR` only | +| `contains_any` | Any of the listed values (OR) | `VARCHAR` only | - +| Behavior | Rule | +| --- | --- | +| Multiple keys | All must match (AND). | +| Null, range, fuzzy | Not supported. | +| OR across keys | Run separate queries and combine the results. | +| `additional_metadata` | Takes bare values or arrays only, not operators. | -```json Document metadata: 1,015 bytes, just inside the 1 KiB cap -{"title":"Q3 Board Deck","author":"ada@example.com","summary":"<950 characters>"} -``` +## Multi-value fields -```json -{ - "success": false, - "data": null, - "error": { - "code": "INVALID_INPUT", - "message": "additional_metadata is too large (1065 bytes when serialized; the maximum is 1024). Reduce the number or size of metadata fields." - } -} -``` +- Store the values as one comma-joined `VARCHAR` and filter for a member with `contains`. +- Set `max_length` large enough for the whole string up front, since it can't be raised later. - +## Errors -If a source needs more than 1 KiB of descriptive metadata, put the long text in the source's body, where it gets chunked and embedded, and keep `additional_metadata` for the short values you filter on. +- A wrong type, multiple operators in one object, or a null value returns `400`. +- A misspelled operator, or an operator inside `additional_metadata`, doesn't error but silently returns nothing. +- Bare filters without an operator still work but are deprecated. -### Filter size limits +## Size caps -`metadata_filters` on [`/query`](/api-reference/v2/endpoint/query) has its own pair of caps. They bound what you send at query time, not how much metadata a source carries: +Caps are measured in bytes of compact JSON, and keys count toward the total. | Limit | Cap | | --- | --- | -| Values in any one list | 500 | -| Whole `metadata_filters` object | 64 KiB (65,536 bytes) | - -Both are measured the same way as the stored caps: compact JSON, UTF-8 bytes, field names and punctuation counted. The object total includes the nested `additional_metadata` object, and it is measured after operator objects are reduced to their values, so `{"contains": "x"}` counts as `["x"]` and the operator keyword costs nothing. - -Both limits exist because every value in a list is expanded into the filter expression sent to the vector store. The per-list cap catches one runaway list; the object cap catches many individually legal lists adding up. Twenty lists of 500 values are each within the element cap but total roughly 127 KiB, so the object cap is what rejects them. - -Exceeding either limit returns `400` before the query runs, naming the offending key or the actual byte count. - - - -```text -metadata_filters.customer_id (got 743) must contain at most 500 values - -metadata_filters is too large (130251 bytes when serialized; the maximum is 65536). -Reduce the number or size of filter values. -``` - - - -Needing far more than 500 values in one filter usually means the constraint belongs in the data rather than the query: add a metadata field that groups those values (a segment, tier, or cohort key) and filter on that instead. - - - - -## 5. Add schema fields later - -[`PATCH /databases/{database}/metadata-schema`](/api-reference/v2/endpoint/update-metadata-schema) adds fields to an existing database. It is additive only: fields are added, never deleted, retyped, or reflagged. The response returns `added_fields` directly, without the `success` and `data` envelope, and a field you resend with an identical definition is skipped. +| `metadata` (stored) | 16 KiB | +| `additional_metadata` (stored) | 1 KiB | +| Values per filter list | 500 | +| Whole `metadata_filters` object | 64 KiB | - +- Going over a cap fails the request with `400`. +- If you need more than 500 values, add a grouping field and filter on that instead. Long text belongs in the source body. - -```python Python SDK -client.databases.update_metadata_schema( - "acme_corp", - add_fields=[{"name": "status", "data_type": "VARCHAR", "max_length": 32}], -) -``` -```typescript TypeScript SDK -await client.databases.updateMetadataSchema({ - database: "acme_corp", - addFields: [{ name: "status", dataType: "VARCHAR", maxLength: 32 }], -}); -``` -```bash cURL -curl -X PATCH 'https://api.hydradb.com/databases/acme_corp/metadata-schema' \ - -H "Authorization: Bearer $HYDRADB_API_KEY" \ - -H "API-Version: 2" \ - -H "Content-Type: application/json" \ - -d '{ - "add_fields": [ - { "name": "status", "data_type": "VARCHAR", "max_length": 32 } - ] - }' -``` - +## Schema changes - +- Schemas are add-only: you can't delete, retype, or rename a field. +- Fields added later can't be made searchable. +- Filtering on an undeclared key matches nothing, except for keys written by connectors. -Plan the schema before your first ingest: +## Edit in place (`PATCH /context/{id}/metadata`) -- **Searchable fields are declared at creation:** fields added later cannot turn on dense or sparse search; the endpoint rejects `enable_dense_embedding` and `enable_sparse_embedding`. -- **Existing fields are fixed:** renaming a key means re-ingesting the affected sources, or creating a new database with the corrected schema. -- **Undeclared keys match nothing:** a database with a schema rejects undeclared `metadata` keys on ingest and on edit, so no source ever holds them, and a filter on such a key returns nothing. The exceptions are `connector_id` and `provider`, which [connectors](/essentials/v2/connectors#metadata-on-synced-objects) write on every synced source. If you will filter on a field more than once, declare it. +- Send `database_metadata` and/or `additional_metadata`. `collection` is required. +- Sent keys are merged into existing metadata, while `acl` replaces the stored list. Searchable fields sync immediately and can't be set to null. +- To replace the content as well, re-ingest with `upsert: true`. - +## List (`/context/list`) -## 6. Update metadata without re-ingesting - -Use [`PATCH /context/{id}/metadata`](/api-reference/v2/endpoint/update-source-metadata) when you know the source ID and need to change its metadata in place. The body uses `database_metadata` for the schema-backed layer (the shorter `metadata` spelling from ingest is not accepted here) and `additional_metadata` for the free-form layer. - - - - -```python Python SDK -client.context.update_source_metadata( - "auth-controls-001", - database="acme_corp", - collection="default", - database_metadata={"department": "legal"}, - additional_metadata={"author": "grace"}, -) -``` -```typescript TypeScript SDK -await client.context.updateSourceMetadata({ - id: "auth-controls-001", - database: "acme_corp", - collection: "default", - databaseMetadata: { department: "legal" }, - additionalMetadata: { author: "grace" }, -}); -``` -```bash cURL -curl -X PATCH 'https://api.hydradb.com/context/auth-controls-001/metadata' \ - -H "Authorization: Bearer $HYDRADB_API_KEY" \ - -H "API-Version: 2" \ - -H "Content-Type: application/json" \ - -d '{ - "database": "acme_corp", - "collection": "default", - "database_metadata": { "department": "legal" }, - "additional_metadata": { "author": "grace" } - }' -``` - - - - -- **The source must already exist:** this endpoint does not create sources, and `collection` is required. -- **At least one of `database_metadata`, `additional_metadata`, `acl`, or `acl_inherit: true` is required:** `tenant_metadata` is a deprecated alias for `database_metadata`; `document_metadata` is rejected. -- **Metadata merges:** sent keys are inserted or overwritten; omitted keys are preserved. `acl` is the exception: when sent, it replaces the stored list, and an `acl`-only body is a valid edit. To remove a connector source's own ACL, send `acl_inherit: true` without `acl`. This can widen access. See [Restore resource permissions](/essentials/v2/connectors#restore-resource-permissions) for eligibility and validation rules. -- **The edit is visible to filters and listing right away:** if no edited field has an embedding flag, the vector store is untouched and the response reports `vector_sync_required: false`. -- **Searchable fields sync synchronously:** if an edited field has `enable_dense_embedding` or `enable_sparse_embedding`, HydraDB refreshes that field's search lane and reports `vector_sync_required` and `vector_synced` in the response (the `milvus_sync_required` and `milvus_synced` aliases are still emitted, deprecated). Such a field rejects `null`, because it would leave stale metadata vectors behind. - -To replace a source's content as well as its metadata, re-ingest it with `upsert: true` and the same source `id`. Upsert replaces the source payload and the metadata supplied by ingestion. - - - -## 7. List sources with metadata filters - -Use [`POST /context/list`](/api-reference/v2/endpoint/list-context) to browse or page sources rather than run semantic retrieval. Its `filters` object takes `metadata`, `additional_metadata`, and `source_fields`, each as bare key-value pairs. `source_fields` filters on the source's own fields: `title`, `type`, `description`, `url`, `timestamp`, and for app sources `app_provider`, `app_kind`, `app_external_id`, and `app_parent_id`. Pair `app_external_id` or `app_parent_id` with `app_provider`, because a Jira issue key and a Linear ID can collide. - - - - -```python Python SDK -from hydra_db import ListContentFilter - -result = client.context.list( - database="acme_corp", - collection="default", - type="knowledge", - filters=ListContentFilter( - metadata={"department": "legal"}, - additional_metadata={"author": "alice"}, - source_fields={"app_provider": "slack"}, - ), -) -``` -```typescript TypeScript SDK -const result = await client.context.list({ - database: "acme_corp", - collection: "default", - type: "knowledge", - filters: { - metadata: { department: "legal" }, - additionalMetadata: { author: "alice" }, - sourceFields: { appProvider: "slack" }, - }, -}); -``` -```bash cURL -curl -X POST 'https://api.hydradb.com/context/list' \ - -H "Authorization: Bearer $HYDRADB_API_KEY" \ - -H "API-Version: 2" \ - -H "Content-Type: application/json" \ - -d '{ - "database": "acme_corp", - "collection": "default", - "type": "knowledge", - "filters": { - "metadata": { "department": "legal" }, - "additional_metadata": { "author": "alice" }, - "source_fields": { "app_provider": "slack" } - } - }' -``` - - - - -`/context/list` also accepts the deprecated aliases `tenant_metadata` for `metadata` and `document_metadata` for `additional_metadata`; the current name wins on conflicts. It takes the same `acl` field as `/query` to list as one user. See [Query](/essentials/v2/query#6-query-on-behalf-of-a-user). - - - - -## Schema field reference - -Each entry in `database_metadata_schema` on [Create Database](/api-reference/v2/endpoint/create-database), and in `add_fields` on [Update Metadata Schema](/api-reference/v2/endpoint/update-metadata-schema), takes these options: - -| Field | Type / values | Purpose | -| --- | --- | --- | -| `name` | string | Metadata key. Must start with a letter, contain only letters, numbers, and underscores, and not use a reserved system name such as `source_id`, `chunk_id`, or `metadata`. | -| `data_type` | `VARCHAR`, `BOOL`, `INT8`, `INT16`, `INT32`, `INT64`, `FLOAT`, `DOUBLE`, `JSON`, or the friendly aliases `string`, `boolean`, `integer`, `float`, `object` | Defaults to `VARCHAR`. `ARRAY` is not supported and is rejected with `400`; for multi-value fields see [Store several values in one field](#store-several-values-in-one-field). | -| `max_length` | integer | Maximum length for a `VARCHAR` value. Default `1024`, maximum `65535`. This sizes one declared field; it is not the limit on how much metadata you can send per request, which is in [Size limits](#4-size-limits). | -| `enable_dense_embedding` | boolean | Adds semantic search over a `VARCHAR` field. | -| `enable_sparse_embedding` | boolean | Adds keyword (BM25) search over a `VARCHAR` field. | - -Limits: - -- Up to 32 custom metadata fields per database. -- Up to 6 embedding-enabled fields per database: `enable_dense_embedding` and `enable_sparse_embedding` each count as one, so a field with both set counts as two. Exceeding the limit fails database creation with `400` before anything is provisioned. -- Field names are unique case-insensitively. -- Embedding flags are only valid on `VARCHAR` fields. -- Values must match the declared type when the database has a schema. -- Unknown `metadata` keys are rejected on ingest and edit when the database has a non-empty schema. - -## Common mistakes - -| Symptom | Cause | Fix | -| --- | --- | --- | -| A filter on a top-level key returns nothing | The key is not declared in the schema, so no source holds it | [Add the field](#5-add-schema-fields-later) and set a value on your sources, or keep it in `additional_metadata` and nest the filter there. | -| A filter on an `additional_metadata` key returns nothing | The key was sent top-level, so it was matched against `metadata`, or it was sent with an operator object | Nest it with a bare value: `metadata_filters: { additional_metadata: { author: "alice" } }`. See [Filter operators](#3-filter-operators). | -| A query returns nothing after you add filters | The combined constraints exclude everything; keys are ANDed | Start with the minimum hard constraints, add filters one at a time, and re-check counts. | -| A range or fuzzy filter does not work | Only `equals`, `contains`, and `contains_any` are supported | Move the constraint into the `query` text, or post-process in your application. | -| An `additional_metadata` filter is slow | It could not be resolved up front, so it is checked [after retrieval](#2-the-two-layers) | Move the hot field into `metadata` and declare it in the schema. | -| A schema change does not take effect, or you need a searchable field after creation | The schema is [additive only](#5-add-schema-fields-later), and added fields cannot take embedding flags | Create a new database with the corrected schema and re-ingest. There is no in-place migration for existing fields. | -| A metadata edit returns `400` | Unknown key, wrong type, oversized payload, too-deep nesting, reserved key, missing `collection`, `null` on a searchable field, `acl` combined with `acl_inherit: true`, or inheritance without connector resource attribution | Check the schema, the [size limits](#4-size-limits), and the [edit rules](#6-update-metadata-without-re-ingesting); send a valid metadata edit or one ACL action. For a searchable field, set a non-null value or re-ingest. | +Browse sources without ranking, filtering by `metadata`, `additional_metadata`, or source fields. -## Related +## Best practice -- [Context](/essentials/v2/context): what attaches to knowledge sources -- [Databases and Collections](/essentials/v2/databases-and-collections): scoping with collections, which filters do not replace -- [Query](/essentials/v2/query): how `metadata_filters` interacts with ranking -- [Create Database (API Reference)](/api-reference/v2/endpoint/create-database): full `database_metadata_schema` reference -- [Query (API Reference)](/api-reference/v2/endpoint/query): full `metadata_filters` reference -- [List Context (API Reference)](/api-reference/v2/endpoint/list-context): source browsing filters -- [Update Source Metadata (API Reference)](/api-reference/v2/endpoint/update-source-metadata): point metadata edits -- [Update Metadata Schema (API Reference)](/api-reference/v2/endpoint/update-metadata-schema): additive database schema changes +- Declare `status` and `language` from the start. +- Use filters to isolate data within a collection, and separate collections only when data must never be searched together. +- Add filters one at a time and check counts as you go. diff --git a/essentials/v2/query-2.mdx b/essentials/v2/query-2.mdx new file mode 100644 index 00000000..3d356b88 --- /dev/null +++ b/essentials/v2/query-2.mdx @@ -0,0 +1,348 @@ +--- +title: "Query (copy)" +description: "Agents query differently. They ask harder, longer, and multi part questions. " +--- + +Imagine your AI at the center of a web of information and it can keep crawling the web gathers all relevant information. + +This is where the real magic happens. Agents perform better searches with graphs i.e. you notice agents asking less up front, while consistently delivering accurate work that is verifiable with citations across sources. + +## Running a query + +The following sample request searches the `acme_corp` database. + + + Set up your [SDK client](/api-reference/v2/sdks#client-setup) before running the Python or TypeScript example. + + + + ```python Python SDK + result = client.query( + database="acme_corp", + collection="company_docs", + query="How do I rotate API keys?", + type="all", + mode="thinking", + max_results=10, + ) + + for chunk in result.data.chunks: + print(chunk.source_title, chunk.chunk_content) + ``` + + ```typescript TypeScript SDK + const result = await client.query({ + database: "acme_corp", + collection: "company_docs", + query: "How do I rotate API keys?", + type: "knowledge", + maxResults: 5, + }); + + if (!result.data || typeof result.data === "string") throw new Error("Expected structured query results"); + for (const chunk of result.data.chunks ?? []) { + console.log(chunk.sourceTitle, chunk.chunkContent); + } + ``` + + ```bash cURL + curl -X POST 'https://api.hydradb.com/query' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ + "database": "acme_corp", + "collection": "company_docs", + "query": "How do I rotate API keys?", + "type": "knowledge", + "max_results": 5 + }' + ``` + + + + The response is wrapped in the standard envelope, so read the result from `data`. Trimmed to the fields you use most, it looks like this: + + ```json + { + "success": true, + "data": { + "chunks": [ + { + "chunk_uuid": "runbook_keys_chunk_2", + "id": "runbook_keys", + "chunk_content": "Rotate API keys from Settings, then Security. The old key stays valid for 24 hours.", + "source_title": "API key runbook", + "relevancy_score": 0.91, + "metadata": { "document_type": "runbook" } + } + ], + "graph_context": { + "query_paths": [], + "chunk_relations": [], + "chunk_id_to_group_ids": {} + }, + "additional_context": {} + }, + "error": null, + "meta": { + "request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d", + "latency_ms": 412.0 + } + } + ``` + + The full response schema is on the [Query API reference](/api-reference/v2/endpoint/query). + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
OverviewDescription
`query`Incoming agent query.
`query_by``"hybrid"` (the default) matches by meaning and by keyword together, and `"text"` matches keywords only
`mode`Decide how much compute the query requires. `"thinking"` mode takes more time and scans more nodes. `"fast"` mode uses less compute but returns results extremely fast.
`max_results`How many chunks to return. Default `10`, maximum `250`.
`type`By default everything is searched, unless you specify.

`"knowledge"` for just documents; `"memory"` for just preferences; `"trace"` for agent traces
+ +### What comes back + +- `data.llm_prompt`**:** the query and the entire response to the query in one markdown file, complete with citations, that your agents can easily read. +- `data.chunks`**:** the matching chunks from the graph, ranked by relevance, each with its source `id`, `chunk_content`, `source_title`, `relevancy_score`, and `metadata`. +- **`data.graph_context`** and `data.additional_context`**:** relationships and linkages, covered in [section 5](#5-add-relationships). + +## 3. Tune the ranking + +When the defaults are not right, start here: + +- **`mode`:** `"fast"` is one retrieval pass, for chat and autocomplete. `"thinking"` expands the query, reranks, and pulls in [forceful relations](#5-add-relationships), for answers where quality matters more than latency. `"auto"`, the default, scores each query and routes it to one of the two, choosing thinking when unsure; the response does not say which it chose. Applies to `query_by: "hybrid"` only. +- **`alpha`:** the balance between meaning (`1.0`) and keywords (`0.0`) in a hybrid query. Default `0.8`, which `"auto"` also resolves to. Lower it toward `0.3` to `0.5` for error codes, SKUs, and product names; raise it toward `0.9` for conceptual questions. +- **`recency_bias`:** how much newer context is favored, from `0.0` to `1.0`. Default `0.4`, a mild tilt that only reorders close results. Send `0` for policies and other context that rarely changes, and `0.6` to `0.8` for changelogs and status updates. +- **`max_results`:** drop to `5` for tight context windows; raise to `20` when you rerank downstream. +- **`additional_context`:** a short factual hint, such as `"user is on the billing page"`, that sharpens retrieval. It is not a filter. + +In production: + +- **Timeouts:** 3 to 5 s for thinking, 500 ms or less for fast. Budget `"auto"` like thinking. +- **Literal token plus intent:** run `query_by: "hybrid"` and `query_by: "text"` in parallel, dedupe by `chunk_uuid`, and keep the text hits. +- **Recall, then rerank:** ask for `max_results: 20` and apply your own rules before picking the final set. +- **Caching:** key on the database, the collections, the caller's `acl`, and every query parameter, and expire entries when context or permissions change. + +## 4. Choose what to search + +To search beyond one collection: + +- **Several collections:** send `collections` instead, as a list, or as an object of weights to rank one collection over another. Up to 100; every listed collection must exist, or the call returns `400`. `max_results` caps the merged list. +- **Knowledge and memories together:** `type: "all"` reads both from the same collections and ranks them together. When shared documents and memories live in different collections, list both. +- **A slice you already know:** `metadata_filters` narrows results before ranking, such as only runbooks or only one team's documents. [Metadata](/essentials/v2/metadata) covers the operators. + + + + + ```python Python SDK + result = client.query( + database="acme_corp", + collections=["company_docs", "user_john_123"], + query="How do I reset my password?", + type="all", + mode="thinking", + max_results=8, + ) + ``` + + ```typescript TypeScript SDK + const result = await client.query({ + database: "acme_corp", + collections: ["company_docs", "user_john_123"], + query: "How do I reset my password?", + type: "all", + mode: "thinking", + maxResults: 8, + }); + ``` + + ```bash cURL + curl -X POST 'https://api.hydradb.com/query' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ + "database": "acme_corp", + "collections": ["company_docs", "user_john_123"], + "query": "How do I reset my password?", + "type": "all", + "mode": "thinking", + "max_results": 8 + }' + ``` + + + + Knowledge and memories come back together in `data.chunks`, ranked as one list. To let the user's memories outrank the shared documents, send weights instead of a list: + + ```json + { + "collections": { + "user_john_123": 2, + "company_docs": 1 + } + } + ``` + + +## 5. Add relationships + +Three fields bring in context beyond the chunks that matched. All three are on by default. + +- **`graph_context`:** the relationships HydraDB extracted from your context, such as "Payments team owns billing service", in `data.graph_context`. `false` drops it, but only in fast mode; thinking always includes it. The [Query API reference](/api-reference/v2/endpoint/query) describes its fields. +- **`query_forceful_relations`:** forceful relations (links you declare between sources at ingest with `relations.ids`), such as a contract and its addendum, returned in `data.additional_context`. Thinking mode only; fast mode skips it without an error. [Context](/essentials/v2/context#6-link-sources-that-belong-together) shows how to declare the links. +- **`query_apps`:** for [app sources](/essentials/v2/context#send-app-sources), an extra lane that rebuilds Slack threads, follows ticket and parent links, and matches exact ids and people. It still searches everything else, and has no effect on memories. + +## 6. Query on behalf of a user + +Which identity a query runs as depends on where the content came from: + +- **Directly ingested knowledge, and connectors without ACL enforcement:** send the caller's email in `acl`, such as `"acl": ["grace@acme.com"]`, to filter results to documents that person may retrieve, plus public and unrestricted ones. Without `acl`, this content is not filtered by caller identity. +- **Connectors with `enforce_acl` enabled:** HydraDB uses the authenticated caller and ignores a request `acl` for that connector's content. API keys use the key creator's email; MCP OAuth and dashboard requests use the signed-in user. If you send `acl` anyway, a successful response includes one `meta.warnings` entry with code `acl_ignored_by_connector_enforcement`. + +An `acl` entry on a source or a query is a **principal**: + +| Principal | Meaning | +| --- | --- | +| `grace@acme.com` | One person, by email. | +| `domain:acme.com` | Everyone whose email is under that domain. A query as `grace@acme.com` matches it automatically. | +| `group::` | A group in the source app, such as `group:slack:C0123`. Group membership is never derived from an email; send it on the query. | +| `__public__` | Every identified caller. | + +A source with no `acl` is unrestricted. On a query, omitting `acl`, sending `[]`, or sending `["*"]` all mean no caller filtering. See [ACL on synced content](/essentials/v2/connectors#enforce-acl) for connectors. + +## 7. Use the results + +HydraDB returns context, not answers: your application passes the result to a model. `build_string(result)` in Python and `buildString(result)` in TypeScript return `data.llm_prompt`, which numbers the ranked results `[1]`, `[2]`, and so on, so ask the model to cite by those numbers. Tell the model to answer only from the context, and keep the chunks in the order returned. To format the prompt yourself, read `data.chunks`; set `response_format` to `"structured"` to leave `llm_prompt` out, or to `"markdown"` to get only the prompt text as `data`. + + + +```python Python SDK +import os +from hydra_db import HydraDB +from hydra_db.helpers import build_string +from openai import OpenAI + +hydra = HydraDB(token=os.environ["HYDRADB_API_KEY"]) +openai_client = OpenAI(api_key=os.environ["OPENAI_API_KEY"]) + +question = "How does authentication work?" + +result = hydra.query( + database="your-database", + collection="your-collection", + query=question, + type="knowledge", + query_by="hybrid", + mode="fast", + graph_context=True, +) + +context = build_string(result) + +completion = openai_client.chat.completions.create( + model="gpt-4o", + messages=[ + { + "role": "system", + "content": "You are a helpful assistant. Answer the user's question using only the context provided. If the answer is not in the context, say you don't know.", + }, + { + "role": "user", + "content": f"Context:\n{context}\n\nQuestion: {question}", + }, + ], +) + +print(completion.choices[0].message.content) +``` + +```typescript TypeScript SDK +import { HydraDBClient } from "@hydradb/sdk"; +import { buildString } from "@hydradb/sdk/helpers"; +import OpenAI from "openai"; + +const hydra = new HydraDBClient({ token: process.env.HYDRADB_API_KEY }); +const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY }); + +const question = "How does authentication work?"; + +const result = await hydra.query({ + database: "your-database", + collection: "your-collection", + query: question, + type: "knowledge", + queryBy: "hybrid", + mode: "fast", + graphContext: true, +}); + +const context = buildString(result); + +const completion = await openai.chat.completions.create({ + model: "gpt-4o", + messages: [ + { + role: "system", + content: "You are a helpful assistant. Answer the user's question using only the context provided. If the answer is not in the context, say you don't know.", + }, + { + role: "user", + content: `Context:\n${context}\n\nQuestion: ${question}`, + }, + ], +}); + +console.log(completion.choices[0].message.content); +``` + + + +--- + +# Advanced query patterns (mostly for agents) + +## Common mistakes + +| Symptom | Cause | Fix | +| --- | --- | --- | +| Empty `query_paths` or `chunk_relations` | `graph_context` set to `false`, or no relationships exist for the result set | Leave `graph_context` on (the default). Empty arrays are normal when there is nothing to return. | +| Recent uploads do not appear in results | Indexing not finished | Poll [`GET /context/status`](/api-reference/v2/endpoint/source-status) with the source ids. Chunks are invisible until indexing reaches at least `graph_creation`. | +| `metadata_filters` does not narrow results | Filter key is in the wrong namespace, the value does not match exactly, or the top-level field was not declared in the metadata schema | Top-level keys match `metadata`; free-form per-source fields must be nested under `additional_metadata`. Declare hot filter keys in `database_metadata_schema` before production ingest. | +| Memories missing from a `type: "knowledge"` query | Wrong store selected | Use `type: "memory"` or `type: "all"`. | +| Knowledge missing from a `type: "all"` query | The documents live in a different collection from the one you sent | List both collections in `collections`. | +| Recency does not seem to matter | `recency_bias` was sent as `0`, or the default `0.4` tilt is too mild | Raise it toward `1.0`. | +| `operator: "phrase"` returns `400` | `query_by` not set to `"text"` | `"and"` and `"phrase"` only apply to BM25 text queries: switch `query_by` to `"text"`. | +| `query_explicit_relations` ignored | Request runs in `mode: "fast"` (or `auto` routed to fast) | Forceful relations are fetched only in thinking mode. Set `mode: "thinking"`. | +| `graph_context: false` ignored | Request runs in thinking mode (`mode: "thinking"`, or `auto` routed to thinking) | Thinking always includes the graph slice; `false` takes effect only in fast mode. Set `mode: "fast"` to drop it. | +| Expected a deterministic `fast` or `thinking` pipeline, got auto-routed instead | `mode` was omitted | Omitting `mode` means `"auto"`. Set `mode` explicitly to `"fast"` or `"thinking"`. | diff --git a/essentials/v2/query.mdx b/essentials/v2/query.mdx index 6f0f7444..b23c45b4 100644 --- a/essentials/v2/query.mdx +++ b/essentials/v2/query.mdx @@ -1,238 +1,235 @@ --- title: "Query" -description: "Search knowledge, memories, or both, tune what comes back, and pass the result to a model." +description: "Agents query differently. They ask harder, longer, and multi part questions. " --- -[`POST /query`](/api-reference/v2/endpoint/query) searches your [context](/essentials/v2/context): knowledge, memories, or both. It returns ranked passages, called **chunks**, with their source details and the context graph around them. Your application puts them in the model's prompt; the model writes the answer. +Imagine your AI at the center of a web of information and it can keep crawling the web gathers all relevant information. -The defaults work without tuning. +This is where the real magic happens. Agents perform better searches with graphs i.e. you notice agents asking less up front, while consistently delivering accurate work that is verifiable with citations across sources. -## 1. Run a query +## Running a query -This request searches the `acme_corp` database for knowledge about rotating API keys. Every query starts from this request; later sections add fields. The body is JSON; ingestion is multipart. +The following sample request searches the `acme_corp` database. - -Set up your [SDK client](/api-reference/v2/sdks#client-setup) before running the Python or TypeScript example. - - -```python Python SDK -result = client.query( - database="acme_corp", - collection="company_docs", - query="How do I rotate API keys?", - type="knowledge", - max_results=5, -) - -for chunk in result.data.chunks: - print(chunk.source_title, chunk.chunk_content) -``` -```typescript TypeScript SDK -const result = await client.query({ - database: "acme_corp", - collection: "company_docs", - query: "How do I rotate API keys?", - type: "knowledge", - maxResults: 5, -}); - -if (!result.data || typeof result.data === "string") throw new Error("Expected structured query results"); -for (const chunk of result.data.chunks ?? []) { - console.log(chunk.sourceTitle, chunk.chunkContent); -} -``` -```bash cURL -curl -X POST 'https://api.hydradb.com/query' \ - -H "Authorization: Bearer $HYDRADB_API_KEY" \ - -H "API-Version: 2" \ - -H "Content-Type: application/json" \ - -d '{ - "database": "acme_corp", - "collection": "company_docs", - "query": "How do I rotate API keys?", - "type": "knowledge", - "max_results": 5 - }' -``` - - -The response is wrapped in the standard envelope, so read the result from `data`. Trimmed to the fields you use most, it looks like this: - -```json -{ - "success": true, - "data": { - "chunks": [ - { - "chunk_uuid": "runbook_keys_chunk_2", - "id": "runbook_keys", - "chunk_content": "Rotate API keys from Settings, then Security. The old key stays valid for 24 hours.", - "source_title": "API key runbook", - "relevancy_score": 0.91, - "metadata": { "document_type": "runbook" } - } - ], - "graph_context": { - "query_paths": [], - "chunk_relations": [], - "chunk_id_to_group_ids": {} + Set up your [SDK client](/api-reference/v2/sdks#client-setup) before running the Python or TypeScript example. + + + + ```python Python SDK + result = client.query( + database="acme_corp", + collection="company_docs", + query="How do I rotate API keys?", + type="all", + mode="thinking", + max_results=10, + ) + + for chunk in result.data.chunks: + print(chunk.source_title, chunk.chunk_content) + ``` + + ```typescript TypeScript SDK + const result = await client.query({ + database: "acme_corp", + collection: "company_docs", + query: "How do I rotate API keys?", + type: "knowledge", + maxResults: 5, + }); + + if (!result.data || typeof result.data === "string") throw new Error("Expected structured query results"); + for (const chunk of result.data.chunks ?? []) { + console.log(chunk.sourceTitle, chunk.chunkContent); + } + ``` + + ```bash cURL + curl -X POST 'https://api.hydradb.com/query' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ + "database": "acme_corp", + "collection": "company_docs", + "query": "How do I rotate API keys?", + "type": "knowledge", + "max_results": 5 + }' + ``` + + + + The response is wrapped in the standard envelope, so read the result from `data`. Trimmed to the fields you use most, it looks like this: + + ```json + { + "success": true, + "data": { + "chunks": [ + { + "chunk_uuid": "runbook_keys_chunk_2", + "id": "runbook_keys", + "chunk_content": "Rotate API keys from Settings, then Security. The old key stays valid for 24 hours.", + "source_title": "API key runbook", + "relevancy_score": 0.91, + "metadata": { "document_type": "runbook" } + } + ], + "graph_context": { + "query_paths": [], + "chunk_relations": [], + "chunk_id_to_group_ids": {} + }, + "additional_context": {} }, - "additional_context": {} - }, - "error": null, - "meta": { - "request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d", - "latency_ms": 412.0 + "error": null, + "meta": { + "request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d", + "latency_ms": 412.0 + } } -} -``` - -The full response schema is on the [Query API reference](/api-reference/v2/endpoint/query). + ``` + The full response schema is on the [Query API reference](/api-reference/v2/endpoint/query). -### What each property means - -| Property | What it is | -|---|---| -| `database` | The [database](/api-reference/v2/endpoint/create-database) to search. Required on every call. A query never reads another database. | -| `collection` | The collection to search, the same one you ingested into. Leave it out to search the database's default collection. [Section 4](#4-choose-what-to-search) covers searching several at once. | -| `query` | The question or search terms, in natural language. Cannot be empty. | -| `type` | What to search: `"knowledge"` (the default) for documents and app sources, `"memory"` for saved preferences and conversations, or `"all"` for both. | -| `max_results` | How many chunks to return. Default `10`, maximum `250`. | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
OverviewDescription
`query`Incoming agent query.
`query_by``"hybrid"` (the default) matches by meaning and by keyword together, and `"text"` matches keywords only. Default is `"auto"`. HydraDB does a good job deciding on your behalf.
`mode`Decide how much compute the query requires. `"thinking"` mode takes more time and scans more nodes. `"fast"` mode uses less compute but returns results extremely fast.
`max_results`How many chunks to return. Default `10`, maximum `250`.
`type`By default everything is searched, unless you specify.

`"knowledge"` for just documents; `"memory"` for just preferences; `"trace"` for agent traces
### What comes back -- **`data.llm_prompt`:** the question, the matching chunks, and citation instructions as one Markdown string, ready for a model. -- **`data.chunks`:** the matching chunks, ranked by relevance, each with its source `id`, `chunk_content`, `source_title`, `relevancy_score`, and `metadata`. Keep the order. -- **`data.graph_context`** and **`data.additional_context`:** relationships and linked chunks, covered in [section 5](#5-add-relationships). - -[Section 7](#7-use-the-results) shows how to pass the result to a model. New context is searchable within seconds of its [indexing status](/api-reference/v2/endpoint/source-status) reaching `graph_creation`; wait for `completed` when you query straight after ingesting. - -## 2. Pick a recipe - -Start from the row that matches your goal. Leave everything else at its default. - -| I want to | `type` | `query_by` | `mode` | Notes | -| --- | --- | --- | --- | --- | -| Answer questions from documents | `"knowledge"` | `"hybrid"` | `"thinking"` | Keep `graph_context` on (the default) to include relationships between the people, topics, or services the documents mention | -| Match an exact keyword or phrase | `"knowledge"` | `"text"` | Not used | Set `operator` to `"and"` or `"phrase"` to control how the keywords must match. | -| Personalize a response | `"memory"` | `"hybrid"` | `"thinking"` | Search the collection the memories were saved in | -| Personalize and ground in documents | `"all"` | `"hybrid"` | `"thinking"` | One call reads both stores from the same scope. If the documents live in another collection, list both in `collections` | -| Search app sources from Slack, Jira, Gmail, and other apps | `"knowledge"` | `"hybrid"` | `"thinking"` | Leave `query_apps` on (the default) so threads, replies, and linked records expand along with the matching source | -| Serve mixed traffic with one setting | `"knowledge"` | `"hybrid"` | `"auto"` | HydraDB scores each query and routes it to `"fast"` or `"thinking"`. This is also what you get when `mode` is omitted | - -`query_by` picks how the text is matched: `"hybrid"` (the default) matches by meaning and by keyword together, and `"text"` matches keywords only. `mode` picks how much work the query does. [Section 3](#3-tune-the-ranking) explains `mode`. +- `data.llm_prompt`**:** the query and the entire response to the query in one markdown file, complete with citations, that your agents can easily read. +- `data.chunks`**:** the matching chunks from the graph, ranked by relevance, each with its source `id`, `chunk_content`, `source_title`, `relevancy_score`, and `metadata`. +- **`data.graph_context`** and `data.additional_context`**:** relationships and linkages, covered in [section 5](#5-add-relationships). ## 3. Tune the ranking -When the defaults are not right, start here: - -- **`mode`:** `"fast"` is one retrieval pass, for chat and autocomplete. `"thinking"` expands the query, reranks, and pulls in [forceful relations](#5-add-relationships), for answers where quality matters more than latency. `"auto"`, the default, scores each query and routes it to one of the two, choosing thinking when unsure; the response does not say which it chose. Applies to `query_by: "hybrid"` only. -- **`alpha`:** the balance between meaning (`1.0`) and keywords (`0.0`) in a hybrid query. Default `0.8`, which `"auto"` also resolves to. Lower it toward `0.3` to `0.5` for error codes, SKUs, and product names; raise it toward `0.9` for conceptual questions. -- **`recency_bias`:** how much newer context is favored, from `0.0` to `1.0`. Default `0.4`, a mild tilt that only reorders close results. Send `0` for policies and other context that rarely changes, and `0.6` to `0.8` for changelogs and status updates. +- `alpha`**:** the balance between semantic/meaning (`1.0`) and keywords (`0.0`) in a hybrid query. Default `0.8`, which `"auto"` +- **`recency_bias`:** how much newer context is favored, from `0.0` to `1.0`. Default `0.4` - **`max_results`:** drop to `5` for tight context windows; raise to `20` when you rerank downstream. -- **`additional_context`:** a short factual hint, such as `"user is on the billing page"`, that sharpens retrieval. It is not a filter. - -In production: - -- **Timeouts:** 3 to 5 s for thinking, 500 ms or less for fast. Budget `"auto"` like thinking. -- **Literal token plus intent:** run `query_by: "hybrid"` and `query_by: "text"` in parallel, dedupe by `chunk_uuid`, and keep the text hits. -- **Recall, then rerank:** ask for `max_results: 20` and apply your own rules before picking the final set. -- **Caching:** key on the database, the collections, the caller's `acl`, and every query parameter, and expire entries when context or permissions change. +- `additional_graph_context`**:** a short factual related hint, that sharpens the response for your agents. ## 4. Choose what to search -To search beyond one collection: - -- **Several collections:** send `collections` instead, as a list, or as an object of weights to rank one collection over another. Up to 100; every listed collection must exist, or the call returns `400`. `max_results` caps the merged list. -- **Knowledge and memories together:** `type: "all"` reads both from the same collections and ranks them together. When shared documents and memories live in different collections, list both. -- **A slice you already know:** `metadata_filters` narrows results before ranking, such as only runbooks or only one team's documents. [Metadata](/essentials/v2/metadata) covers the operators. - - - - -```python Python SDK -result = client.query( - database="acme_corp", - collections=["company_docs", "user_john_123"], - query="How do I reset my password?", - type="all", - mode="thinking", - max_results=8, -) -``` -```typescript TypeScript SDK -const result = await client.query({ - database: "acme_corp", - collections: ["company_docs", "user_john_123"], - query: "How do I reset my password?", - type: "all", - mode: "thinking", - maxResults: 8, -}); -``` -```bash cURL -curl -X POST 'https://api.hydradb.com/query' \ - -H "Authorization: Bearer $HYDRADB_API_KEY" \ - -H "API-Version: 2" \ - -H "Content-Type: application/json" \ - -d '{ - "database": "acme_corp", - "collections": ["company_docs", "user_john_123"], - "query": "How do I reset my password?", - "type": "all", - "mode": "thinking", - "max_results": 8 - }' -``` - - -Knowledge and memories come back together in `data.chunks`, ranked as one list. To let the user's memories outrank the shared documents, send weights instead of a list: - -```json -{ - "collections": { - "user_john_123": 2, - "company_docs": 1 +- **Several collections:** send `collections` instead, as a list, or as an object of weights to rank one collection over another. You can search up to 100 collections in one call. +- **Metadata filtering:** `metadata_filters` narrows results before ranking, such as only specific emails or only one team's documents. [Metadata](/essentials/v2/metadata) covers all operators. + + + + + ```python Python SDK + result = client.query( + database="acme_corp", + collections=["company_docs", "user_john_123"], + query="How do I reset my password?", + type="all", + mode="thinking", + max_results=8, + ) + ``` + + ```typescript TypeScript SDK + const result = await client.query({ + database: "acme_corp", + collections: ["company_docs", "user_john_123"], + query: "How do I reset my password?", + type: "all", + mode: "thinking", + maxResults: 8, + }); + ``` + + ```bash cURL + curl -X POST 'https://api.hydradb.com/query' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ + "database": "acme_corp", + "collections": ["company_docs", "user_john_123"], + "query": "How do I reset my password?", + "type": "all", + "mode": "thinking", + "max_results": 8 + }' + ``` + + + + Knowledge and memories come back together in `data.chunks`, ranked as one list. To let the user's memories outrank the shared documents, send weights instead of a list: + + ```json + { + "collections": { + "user_john_123": 2, + "company_docs": 1 + } } -} -``` - + ``` -## 5. Add relationships +## 5. Understanding relationships in your context -Three fields bring in context beyond the chunks that matched. All three are on by default. - -- **`graph_context`:** the relationships HydraDB extracted from your context, such as "Payments team owns billing service", in `data.graph_context`. `false` drops it, but only in fast mode; thinking always includes it. The [Query API reference](/api-reference/v2/endpoint/query) describes its fields. -- **`query_forceful_relations`:** forceful relations (links you declare between sources at ingest with `relations.ids`), such as a contract and its addendum, returned in `data.additional_context`. Thinking mode only; fast mode skips it without an error. [Context](/essentials/v2/context#6-link-sources-that-belong-together) shows how to declare the links. +- `graph_context`**:** the relationships HydraDB extracted from your context during ingestion, such as "Payments team owns billing service", in `data.graph_context`. +- `query_explicit_relations`**:** Links you declared explicitly during ingestion are returned in `data.additional_context`. Explicit relations are returned thinking mode only. - **`query_apps`:** for [app sources](/essentials/v2/context#send-app-sources), an extra lane that rebuilds Slack threads, follows ticket and parent links, and matches exact ids and people. It still searches everything else, and has no effect on memories. -## 6. Query on behalf of a user + -Which identity a query runs as depends on where the content came from: +## 6. As an admin you can query the app on behalf of a user -- **Directly ingested knowledge, and connectors without ACL enforcement:** send the caller's email in `acl`, such as `"acl": ["grace@acme.com"]`, to filter results to documents that person may retrieve, plus public and unrestricted ones. Without `acl`, this content is not filtered by caller identity. -- **Connectors with `enforce_acl` enabled:** HydraDB uses the authenticated caller and ignores a request `acl` for that connector's content. API keys use the key creator's email; MCP OAuth and dashboard requests use the signed-in user. If you send `acl` anyway, a successful response includes one `meta.warnings` entry with code `acl_ignored_by_connector_enforcement`. +- **From ingested context, and connectors without ACL enforcement:** send the caller's email in `acl`, such as `"acl": ["grace@acme.com"]`, to filter results to documents that person may have retrieved themselves. Without `acl`, this content is not filtered by caller identity. +- **From connectors with** `enforce_acl `**enabled:** HydraDB uses the authenticated caller and ignores a request `acl` for that connector's content. API keys use the key creator's email; MCP OAuth and dashboard requests use the signed-in user. If you send `acl` anyway, a successful response includes one `meta.warnings` entry with code `acl_ignored_by_connector_enforcement`. An `acl` entry on a source or a query is a **principal**: | Principal | Meaning | -|---|---| +| --- | --- | | `grace@acme.com` | One person, by email. | | `domain:acme.com` | Everyone whose email is under that domain. A query as `grace@acme.com` matches it automatically. | | `group::` | A group in the source app, such as `group:slack:C0123`. Group membership is never derived from an email; send it on the query. | | `__public__` | Every identified caller. | -A source with no `acl` is unrestricted. On a query, omitting `acl`, sending `[]`, or sending `["*"]` all mean no caller filtering. See [ACL on synced content](/essentials/v2/connectors#enforce-acl) for connectors. - ## 7. Use the results -HydraDB returns context, not answers: your application passes the result to a model. `build_string(result)` in Python and `buildString(result)` in TypeScript return `data.llm_prompt`, which numbers the ranked results `[1]`, `[2]`, and so on, so ask the model to cite by those numbers. Tell the model to answer only from the context, and keep the chunks in the order returned. To format the prompt yourself, read `data.chunks`; set `response_format` to `"structured"` to leave `llm_prompt` out, or to `"markdown"` to get only the prompt text as `data`. +HydraDB recreates complete context that is helpful to your agents: your application. `build_string(result)` in Python and `buildString(result)` in TypeScript return `data.llm_prompt`, which numbers the ranked results `[1]`, `[2]`, and so on, so you can ask the agent use that for citations. + ```python Python SDK import os from hydra_db import HydraDB @@ -272,6 +269,7 @@ completion = openai_client.chat.completions.create( print(completion.choices[0].message.content) ``` + ```typescript TypeScript SDK import { HydraDBClient } from "@hydradb/sdk"; import { buildString } from "@hydradb/sdk/helpers"; @@ -310,11 +308,14 @@ const completion = await openai.chat.completions.create({ console.log(completion.choices[0].message.content); ``` + -## Common mistakes +--- + +# Advanced query patterns (mostly for agents) -| Symptom | Cause | Fix | +| **Common mistakes** | **Cause** | **Fix** | | --- | --- | --- | | Empty `query_paths` or `chunk_relations` | `graph_context` set to `false`, or no relationships exist for the result set | Leave `graph_context` on (the default). Empty arrays are normal when there is nothing to return. | | Recent uploads do not appear in results | Indexing not finished | Poll [`GET /context/status`](/api-reference/v2/endpoint/source-status) with the source ids. Chunks are invisible until indexing reaches at least `graph_creation`. | @@ -323,12 +324,6 @@ console.log(completion.choices[0].message.content); | Knowledge missing from a `type: "all"` query | The documents live in a different collection from the one you sent | List both collections in `collections`. | | Recency does not seem to matter | `recency_bias` was sent as `0`, or the default `0.4` tilt is too mild | Raise it toward `1.0`. | | `operator: "phrase"` returns `400` | `query_by` not set to `"text"` | `"and"` and `"phrase"` only apply to BM25 text queries: switch `query_by` to `"text"`. | -| `query_forceful_relations` ignored | Request runs in `mode: "fast"` (or `auto` routed to fast) | Forceful relations are fetched only in thinking mode. Set `mode: "thinking"`. | +| `query_explicit_relations` ignored | Request runs in `mode: "fast"` (or `auto` routed to fast) | Forceful relations are fetched only in thinking mode. Set `mode: "thinking"`. | | `graph_context: false` ignored | Request runs in thinking mode (`mode: "thinking"`, or `auto` routed to thinking) | Thinking always includes the graph slice; `false` takes effect only in fast mode. Set `mode: "fast"` to drop it. | | Expected a deterministic `fast` or `thinking` pipeline, got auto-routed instead | `mode` was omitted | Omitting `mode` means `"auto"`. Set `mode` explicitly to `"fast"` or `"thinking"`. | - -## Related - -- [Context](/essentials/v2/context): the knowledge and memories a query searches -- [Metadata Filters](/essentials/v2/metadata): designing filterable fields -- [Query: API Reference](/api-reference/v2/endpoint/query): the full parameter and response schema diff --git a/get-started/v2/introduction.mdx b/get-started/v2/introduction.mdx index 7287dea8..2e492340 100644 --- a/get-started/v2/introduction.mdx +++ b/get-started/v2/introduction.mdx @@ -1,32 +1,37 @@ --- title: "Introduction" -description: "What HydraDB stores, how it differs from a vector database, and where to start." +description: "The only database you need to give your agents context. All the primitives to build your own context and memory graph in one place." --- -## What HydraDB is +HydraDB keeps context correct across millions or billions of documents, memories, and information nodes. It replaces vector, SQL, and FTS stores (and combinations of them) with one universal context layer: a single database that uses context graphs to materialize views over structured and unstructured data. Store emails, spreadsheets, chats, memories, and other knowledge in one place. -HydraDB is a context layer for AI applications. It stores two types of context: +## Problems and objections with agents at scale -- **Knowledge:** documents, app sources, and facts your AI reasons over. -- **Memories:** preferences, decisions, and past conversations that persist across sessions. +- **Vector databases weren't built for durable, persistent memory:** A vector database finds what is similar; an agent needs what is useful. A useful answer may depend on who made a decision, how a project changed, and who is asking. As you ingest more context, you generate more embeddings, and similarity search degrades because similarity isn't relevance. If you retrieve a single document from a trillion-document store, chances are that document is similar, but not the one your agent actually needs. +- **Why not use Postgres and Apache AGE (pgGraph)?** Most developers start (and should start) with Postgres, mapping CDPs and data dictionaries into a pseudo-context graph over their tables. But as data volume, query complexity, workloads, and users grow, Postgres with pgGraph slows down, and you eventually need a dedicated service for petabyte-scale retrieval. It's the same reason high-growth companies move off pgVector. +- **How about Markdown files?** Markdown is a useful starting point for agent memory, and the workflow is familiar: agents read, write, and search files with ordinary tools. But as memory grows, a plain folder of files isn't enough: filename search and literal grep become expensive and less effective. The problem isn't Markdown as a format; it's relying on files and basic search alone for agent memory at scale. -Everything lives in a **database** you create. You ingest context and connect the tools your team already uses; HydraDB indexes it in the background and builds a context graph from it. It is serverless: you never provision, shard, or scale anything, and the same code runs at ten documents or ten million. +## Why graphs? -The [Quickstart](/get-started/v2/quickstart) takes you from an empty database to your first query in five minutes. +Graphs express data in the most flexible, free-form way possible: an interconnected web your agent can crawl until it finds every node needed for a complete response. + +When mobile apps took off in the 2010s, developers adopted NoSQL over SQL because they couldn't predict the shape of user data two weeks out. AI has the same problem, plus interlinked memories, agent traces, and versioned context. All of it must form one web the AI can traverse until it finds every relevant node. Call it a "mind map," an "investigation board," or simply a "context graph." -## The problem we're solving +## Improving agent accuracy with context graphs -A vector database finds what is similar. An agent needs what is useful, and a useful answer may depend on who made a decision, how a project changed, and who is asking. A sales rep searching for "project Acme" needs the latest sales deck; an engineer needs the changelog and architecture decisions. Similarity alone does not account for those differences. +Graphs make room for new information effortlessly. As new information arrives, older versions are temporally versioned: each node is the latest snapshot, while the history of how a doc, memory, user preference, or decision trace evolved is preserved. -To handle this, teams often combine a vector database, a graph database, a relational store, and a cache, then build the connections between them, keep data in sync, and maintain the retrieval logic themselves. +A context (knowledge) graph organizes knowledge, chats, emails, and other data, maps how it connects, and gives that structure to agents at run time so they deliver high quality, personalized responses. You complete tasks without the back and forth of asking and searching for more information. -HydraDB keeps your knowledge, your memories, and the relationships between them in one graph, so your agent can retrieve the context that fits the person asking. +Consider a legal agent. Its work goes beyond reading the latest case or draft: it's highly relational, and the agent must navigate those relationships to be accurate. A single credit agreement arrives with drafts, amendments, and side letters, and the agent must know which version controls before answering anything about it. The same applies to most agents: knowledge, coding, sales, browser, and more. -## The principle +## So, what is HydraDB? -HydraDB gives you primitives, not a fixed product. The graph, the memory primitives, the retrieval pipeline, and the ranking controls are yours to compose into your own context stores, memory layers, and workflows. +HydraDB is a fast agent database that gives you every primitive you need to build the best context and memory layer for your agents. It should be the last database or context store your agents ever need. -## Performance +## Benchmarks + +These benchmarks show the baseline performance of a context graph compared to vanilla vector or Postgres search: - **Memory recall:** 90.79% on [LongMemEval-S](https://huggingface.co/datasets/xiaowu0162/longmemeval-cleaned). - **Company knowledge:** 88.7 overall on [EnterpriseRAG-Bench](https://github.com/onyx-dot-app/EnterpriseRAG-Bench), retrieval across more than half a million documents from nine enterprise systems. @@ -35,30 +40,30 @@ HydraDB gives you primitives, not a fixed product. The graph, the memory primiti - **Financial AI:** 91.4% recall@10 on [FinanceBench](https://github.com/patronus-ai/financebench), over dense filings and enterprise data. - **Low latency:** sub-200 ms retrieval. -The full technical breakdown of each run is in our [benchmarks](https://benchmarks.hydradb.com/). +See the full technical breakdown of each run in our [benchmarks](https://benchmarks.hydradb.com/). -## More in the box +## Primitives -- **Connectors:** 70 providers, including Slack, Gmail, Google Drive, Notion, GitHub, Jira, Confluence, Linear, HubSpot, Zendesk, and Microsoft Teams, synced on a schedule. Where the provider supports it, the source app's permissions come along as access control, so a query that sends a user's identity as `acl` returns only what that user may see. See [Connectors](/essentials/v2/connectors) and [Query](/essentials/v2/query#6-query-on-behalf-of-a-user). -- **SDKs:** [Python and TypeScript](/api-reference/v2/sdks), with a helper that turns a query result into a prompt string. -- **Tools:** an [MCP server](/plugins/mcp) for Claude, Cursor, and other MCP clients; a [CLI](/plugins/cli); and memory plugins for coding agents and agent frameworks such as [Claude Code](/plugins/claude-code), [Codex](/plugins/codex), [Hermes](/plugins/hermes), and [OpenClaw](/plugins/openclaw). +- **RBAC-aware connectors:** 70+ providers, including Slack, Gmail, Google Drive, Notion, GitHub, Jira, and Teams, synced on a schedule. Source app permissions carry over as access control, so a query that sends a user's identity as `acl` returns only what that user may see. This is the easiest way to start extracting memories or building a context graph from these apps. +- **SLMs that learn after every run:** Typhon-1 and Minion-1, our SLMs, are trained specifically to identify, build, and output relationships, and they learn from every run. +- **SDK, MCP, plugins, CLI:** Tooling for your HydraDB development lifecycle. Plugins are available for OpenClaw, Hermes, Codex, and more. -## What you can build +## Where do I apply this? -- Customer support agents grounded in real customer history and preferences -- Coding agents with persistent memory of a codebase and team conventions -- Clinical companions tracking patient context across visits -- Research copilots reasoning across papers, authors, and findings -- Internal knowledge assistants spanning Slack, Notion, Drive, and email -- Consumer AI applications that remember each user across sessions +- **Software factory**
Git for your agents’ context +- **Company brain**
Build knowledge graphs for your entire company context +- **Multi-agent communication**
No codex or agent session happens twice +- **Personal Graphs**
Personal AI without the brain rot +- **Voice agents**
Deeply answer the hard questions without a pause +- **Computer & browser agents**
Stop re-learning the same sites, apps, and actions -That is a sample, not the limit. +## Easiest way to get started -## Next steps +1. Sign up at [dashboard.hydradb.com](https://dashboard.hydradb.com) and get your API key. +2. Point your coding agents to [https://docs.hydradb.com/AGENTS.md](https://docs.hydradb.com/AGENTS.md). +3. Describe the "brain" or context graph you want your agents to build. Explore cookbooks for inspiration. -1. Sign up at [dashboard.hydradb.com](https://dashboard.hydradb.com) for your API key. -2. Follow the [Quickstart](/get-started/v2/quickstart). -3. Explore the [API Reference](/api-reference/v2). +The [Quickstart](/get-started/v2/quickstart) takes you from an empty database to your first query in five minutes. AI coding agents and IDE assistants should use the [HydraDB Agent Integration Guide](/AGENTS) and the [v2 OpenAPI spec](/api-reference/v2/openapi.json). diff --git a/get-started/v2/quickstart.mdx b/get-started/v2/quickstart.mdx index c30a84b1..dc6717a4 100644 --- a/get-started/v2/quickstart.mdx +++ b/get-started/v2/quickstart.mdx @@ -1,13 +1,9 @@ --- title: "Quickstart" -description: "Create a database, ingest a document and a memory, and query them, in five minutes." +description: "Get your API key, create a database, ingest chat or document, query and pass to agents. If you have questions email founders@hydradb.com" --- -Install the SDK, create a database, ingest a document and a memory, and query both in one call. - -Working with a coding agent such as Claude Code, Cursor, or Codex? Copy this prompt instead, and it builds the integration from the [Agent Integration Guide](/AGENTS). - - + Integrate HydraDB into this project. 1. Read https://docs.hydradb.com/AGENTS.md before writing any code. @@ -17,19 +13,16 @@ Integrate HydraDB into this project. 5. Show me your plan and the files you will change before changing anything. -## 1. Install and initialize - -Get an API key from [dashboard.hydradb.com](https://dashboard.hydradb.com), then set it in the terminal where you run the examples: +## Sample code ```bash export HYDRADB_API_KEY="your_api_key" ``` -Install the SDK and create a client: - ```python Python SDK -# Install: pip install "hydradb-sdk>=2,<3" +# Install the SDK and create a client: +# pip install "hydradb-sdk>=2,<3" import os from hydra_db import HydraDB from hydra_db.helpers import build_string @@ -54,9 +47,7 @@ curl 'https://api.hydradb.com/databases' \ ``` -## 2. Create a database, ingest context, and query it - -Create a database, ingest a refund policy and a customer memory, wait until both are indexed, then query them together. Indexing runs in the background, which is why the code waits before querying. If you already created a database, set `database` to its name and skip the create call. +**Sample customer support agent:** Create a database, ingest refund policies and customer memories, wait until everything is indexed, then query. Indexing runs in the background, which is why the code waits before querying. If you already created a database, set `database` to its name and skip the create call. ```python Python SDK @@ -249,7 +240,7 @@ EOF ``` -## 3. Check the result +## Checking the results The query returns chunks (passages of your sources), not a generated answer. The SDK examples print formatted context; cURL prints the chunk text. Both should include the policy and the memory: @@ -260,36 +251,4 @@ Customer asked for a refund on 2026-09-30 and was told to wait for the billing c Send these chunks to your model as context. `build_string` in Python and `buildString` in TypeScript format them for a prompt. See [Query](/essentials/v2/query#7-use-the-results). -## What you have built - -That is the full loop: create a database, ingest context, wait for indexing, query it, and pass the result to a model. HydraDB handles parsing, chunking, embedding, graph building, and search. - -```mermaid -flowchart LR - A([1. Create Database]) --> B([2. Ingest Context]) - B --> C([3. Wait for Indexing]) - C --> D([4. Query]) - D --> E([5. Pass to Model]) - - style A fill:#0f172a,stroke:#334155,stroke-width:2px,color:#f8fafc,stroke-linecap:round - style B fill:#0f172a,stroke:#334155,stroke-width:2px,color:#f8fafc,stroke-linecap:round - style C fill:#0f172a,stroke:#334155,stroke-width:2px,color:#f8fafc,stroke-linecap:round - style D fill:#0f172a,stroke:#334155,stroke-width:2px,color:#f8fafc,stroke-linecap:round - style E fill:#0f172a,stroke:#334155,stroke-width:2px,color:#f8fafc,stroke-linecap:round -``` - -HydraDB is serverless: there is nothing to provision, and the same code works at any scale, whether the context is a Markdown file or a Slack workspace synced by a [connector](/essentials/v2/connectors). - -## Next steps - -| If you want to | Read | -|---|---| -| Ingest files, app sources, or memories | [Context](/essentials/v2/context) | -| Sync apps such as Slack, Gmail, and Notion automatically | [Connectors](/essentials/v2/connectors) | -| Tune query behavior (`alpha`, `mode`, `recency_bias`) | [Query](/essentials/v2/query) | -| Design a filterable metadata schema | [Metadata](/essentials/v2/metadata) | -| Organize context across databases and collections | [Databases and Collections](/essentials/v2/databases-and-collections) | -| Turn query results into a model prompt | [Query](/essentials/v2/query#7-use-the-results) | -| See the full endpoint reference | [API Reference](/api-reference/v2) | - -Stuck? Email [founders@hydradb.com](mailto:founders@hydradb.com). +HydraDB is serverless: there is nothing to provision, and the same code works at any scale, whether the context is a markdown file or a slack messages synced by a [connector](/essentials/v2/connectors). diff --git a/plugins/cli.mdx b/plugins/cli.mdx index 61aaf062..110ba97c 100644 --- a/plugins/cli.mdx +++ b/plugins/cli.mdx @@ -1,26 +1,22 @@ --- title: "CLI" -description: "Query context, ingest knowledge and memories, and inspect stored sources from the terminal with the HydraDB CLI." +description: "Ingest, inpsect infrastructure, from your terminal with the CLI." --- -The HydraDB CLI lets you and your agents query context, ingest knowledge and -memories, and inspect stored sources from the terminal. - ## Quickstart +The CLI is open source. [Raise an issue](https://github.com/hydra-db/hydradb-cli/issues) or [contribute on GitHub](https://github.com/hydra-db/hydradb-cli). + - + ```bash curl -fsSL https://cli.hydradb.com/install | bash ``` - Installs the wheel from the latest [GitHub release](https://github.com/hydra-db/hydradb-cli/releases). - Uses `pipx` when available so the CLI stays isolated, and falls back to - `pip install --user`. + Installs the wheel from the latest [GitHub release](https://github.com/hydra-db/hydradb-cli/releases). Uses `pipx` when available so the CLI stays isolated, and falls back to `pip install --user`. - ```bash pip install https://github.com/hydra-db/hydradb-cli/releases/download/v0.2.0/hydradb_cli-0.2.0-py3-none-any.whl @@ -29,118 +25,51 @@ memories, and inspect stored sources from the terminal. - Requires Python 3.10 or later, and `hydradb-cli` 0.2.0 for the commands and flags on - this page. On earlier versions, see [Deprecated aliases](#deprecated-aliases). + Requires Python 3.10 or later, and `hydradb-cli` 0.2.0 for the commands and flags on this page. See [Deprecated aliases](#deprecated-aliases). - Do not run `pip install hydradb-cli`. It installs **0.1.0**, which predates every - command name on this page. PyPI publishing is paused, so releases are served from - GitHub until it resumes. + Do not run `pip install hydradb-cli`. It installs **0.1.0**, which predates every command name on this page. PyPI publishing is paused, so releases are served from GitHub until it resumes. - - Create an API key from the [HydraDB dashboard](https://dashboard.hydradb.com/keys) - Create or copy your database ID from the [HydraDB dashboard](https://dashboard.hydradb.com/databases) - ```bash hydradb login --database my-db ``` - You are prompted for your API key. Both it and the database are saved to - `~/.hydradb/config.json` (file permissions `0600`). - - For scripts and agents, pass the key explicitly instead of being prompted: + You are prompted for your API key. Both the key and database are saved to `~/.hydradb/config.json` (file permissions `0600`). You can pass the key explicitly: ```bash hydradb login --api-key "$HYDRADB_API_KEY" --database my-db ``` - - - Agents can skip `login`: every command reads `HYDRADB_API_KEY` and - `HYDRADB_DATABASE` from the environment, so no credential is written to - disk. It also keeps the key out of `ps` output, which shows any value passed as a - command-line argument to every other user on the machine. - - - + ```bash hydradb doctor ``` - Reports your resolved config and whether the API is reachable. + | Overview of variables | Description | Default | + | --- | --- | --- | + | `HYDRADB_API_KEY` | Your HydraDB API key | _Required_ | + | `HYDRADB_DATABASE` | Your HydraDB database identifier | _Required_ | + | `HYDRADB_COLLECTION` | Collection within the database | - | + | `HYDRADB_BASE_URL` | API base URL | `https://api.hydradb.com` | + | `HYDRADB_OUTPUT` | Default output format (`human` or `json`) | `human` | - - -## Configuration - -### Authentication - -The CLI resolves credentials in this order (first match wins): - -1. Environment variables (`HYDRADB_API_KEY`, `HYDRADB_DATABASE`) -2. Config file (`~/.hydradb/config.json`, written by `hydradb login`) - -To set the environment variables permanently: - - - + ```bash - echo 'export HYDRADB_API_KEY="your-api-key"' >> ~/.bashrc - echo 'export HYDRADB_DATABASE="your-database-id"' >> ~/.bashrc - source ~/.bashrc + hydradb config show + hydradb config set database my-db ``` - - - - ```bash - echo 'export HYDRADB_API_KEY="your-api-key"' >> ~/.zshrc - echo 'export HYDRADB_DATABASE="your-database-id"' >> ~/.zshrc - source ~/.zshrc - ``` - - - - ```powershell - [System.Environment]::SetEnvironmentVariable("HYDRADB_API_KEY", "your-api-key", "User") - [System.Environment]::SetEnvironmentVariable("HYDRADB_DATABASE", "your-database-id", "User") - ``` - - - -### Environment variables - -| Variable | Description | Default | -|---|---|---| -| `HYDRADB_API_KEY` | Your HydraDB API key | *Required* | -| `HYDRADB_DATABASE` | Your HydraDB database identifier | *Required* | -| `HYDRADB_COLLECTION` | Collection within the database | - | -| `HYDRADB_BASE_URL` | API base URL | `https://api.hydradb.com` | -| `HYDRADB_OUTPUT` | Default output format (`human` or `json`) | `human` | - - - The older `HYDRA_DB_API_KEY`, `HYDRA_DB_TENANT_ID`, `HYDRA_DB_SUB_TENANT_ID`, - `HYDRA_DB_BASE_URL` and `HYDRADB_API_URL` spellings are still read, but each prints a - one-line deprecation warning to stderr. The canonical name wins when both are set. - - -### Persistent configuration - -```bash -hydradb config show -hydradb config set database my-db -``` - -`hydradb config set` accepts `api_key`, `database`, `collection` and `base_url`. -Environment variables always take precedence over the config file. + + ### Output formats Every command supports `--output human` (default, Rich-formatted tables) or -`--output json` (machine-readable). Set the default with the environment -variable: +`--output json` (machine-readable). Set default: ```bash export HYDRADB_OUTPUT=json @@ -155,18 +84,17 @@ hydradb -o json list --database my-db Warnings and errors always go to stderr, so `--output json` stdout stays a clean document you can pipe straight into `jq`. +--- + ## Commands -Every command that reads or writes context takes `--database` (`-d`) to choose the -database, and `--collection` to scope to a collection within it. Both fall back to -your configured defaults, so the examples below can omit them once `hydradb login` -has run. +Every command that reads or writes context takes `--database` to choose the database, and `--collection` to scope to a collection within it. Both fall back to your configured defaults, so the examples below can omit them once `hydradb login` has run. -### Context operations +### Context | Command | Description | |---|---| -| `hydradb query QUERY` | Query knowledge or memories (the only retrieval command) | +| `hydradb query` | Query context | | `hydradb ingest` | Ingest a memory, knowledge text, or one or more knowledge files | | `hydradb list` | List ingested sources, both knowledge and memories | | `hydradb inspect SOURCE_ID` | Fetch a source's content by ID | @@ -176,7 +104,7 @@ has run. #### Ingesting -`ingest` stores a memory by default. Pass `--kind knowledge` for knowledge text, or +`ingest` auto categorizes context by default while saving it. Pass `--kind knowledge` for knowledge text, or give it file paths: files are always knowledge sources. ```bash @@ -184,7 +112,7 @@ give it file paths: files are always knowledge sources. hydradb ingest --text "The user prefers dark mode and uses VS Code" --database my-db # Store knowledge text -hydradb ingest --kind knowledge --text "Project uses PostgreSQL 15 with pgvector" --database my-db +hydradb ingest --type knowledge --text "Project uses PostgreSQL 15 with pgvector" --database my-db # Upload one or more files hydradb ingest ./docs/architecture.md ./docs/runbook.md --database my-db @@ -195,12 +123,12 @@ cat notes.txt | hydradb ingest --database my-db | Option | Description | |---|---| -| `--kind` | `memory` (default) or `knowledge` | +| `--type` | intelligent routing by default or set the type yourself | | `--text`, `-t` | Text to ingest. Use `-` to read from stdin | +| `--infer` / `--no-infer` | Extract insights and build the context graph (default on) | | `--title` | Optional title | | `--source-id` | Client-assigned source identifier | -| `--user-name` | User name (memory only) | -| `--infer` / `--no-infer` | Extract insights and build the context graph (default on) | +| `--user-name` | User name (for memory only) | | `--markdown` | Treat text as markdown (memory only) | | `--upsert` / `--no-upsert` | Update existing sources with the same `source_id` (default on) | @@ -213,32 +141,34 @@ cat notes.txt | hydradb ingest --database my-db #### Querying ```bash +# Some examples + # Search knowledge -hydradb query "How is authentication implemented?" --kind knowledge --database my-db +hydradb query "How is authentication implemented?" --type knowledge --database my-db -# Search memories -hydradb query "What IDE does the user prefer?" --kind memory --database my-db +# Search only memories +hydradb query "What IDE does the user prefer?" --type memory --database my-db # Deterministic keyword search hydradb query "PostgreSQL migration" --operator and --database my-db ``` -| Option | Description | -|---|---| -| `--kind` | Context type to query: `memory` or `knowledge`. Omit to search both | +| Command | Description | +| --- | --- | +| `--type` | Context type to query: `memory` or `knowledge`. Omit to search both | | `--operator` | Keyword operator: `or`, `and`, or `phrase`. Setting it switches the query to keyword (text) search | | `--max-results`, `-n` | Maximum results, 1 to 50 (default `10`) | | `--mode`, `-m` | Retrieval mode: `fast` or `thinking`. Omit it and the API picks one per query (`auto`) | | `--alpha` | Hybrid search weight (`0.0` keyword to `1.0` semantic). Omitted means the API default, `0.8` | | `--recency-bias` | Preference for newer content (`0.0` to `1.0`). Omitted means a mild `0.4` tilt. Pass `0` to turn it off | | `--graph-context` / `--no-graph-context` | Include context graph relations. On by default. `--no-graph-context` only takes effect in `fast` mode | -| `--context` | Additional context to guide retrieval | +| `--additional_graph_context` | Additional context to guide retrieval | -#### Inspecting and deleting +#### Inspecting ```bash # List what is stored -hydradb list --kind knowledge --database my-db +hydradb list --type knowledge --database my-db # Read one source back hydradb inspect 39e8872d-1c4a-4f0b-9c1e-7d2a5b8e4f10 --database my-db @@ -250,9 +180,7 @@ hydradb verify 39e8872d-1c4a-4f0b-9c1e-7d2a5b8e4f10 --database my-db hydradb delete 39e8872d-1c4a-4f0b-9c1e-7d2a5b8e4f10 --kind knowledge --database my-db --yes ``` -`list` accepts `--kind`, `--page` and `--page-size` (1 to 100). `inspect` accepts -`--mode content` (default), `url`, or `both`. `delete` defaults to `--kind knowledge`, -so pass `--kind memory` to remove a memory. +`list` accepts `--type`, `--page` and `--page-size` (1 to 100). `inspect` accepts `--mode content` (default), `url`, or `both`. `delete` defaults to `--kind knowledge`, so pass `--kind memory` to remove a memory. ### Database management @@ -264,19 +192,7 @@ so pass `--kind memory` to remove a memory. | `hydradb database stats [DATABASE]` | Row-count statistics | | `hydradb database readiness [DATABASE]` | Whether the database is provisioned and ready for ingestion | | `hydradb database monitor [DATABASE]` | Stats and readiness combined | -| `hydradb database delete DATABASE` | Delete a database and all its context (irreversible) | - -```bash -hydradb database create my-db -hydradb database readiness my-db -hydradb database delete my-db --yes -``` - - - `hydradb database delete` permanently removes the database and all associated memories, - knowledge, and graph data. This action cannot be undone. It prompts for confirmation - unless you pass `--yes`. - +| `hydradb database delete DATABASE` | Delete a database and all its context (irreversible)

Add flag --yes to skip confirmation | ### Authentication and configuration @@ -288,26 +204,6 @@ hydradb database delete my-db --yes | `hydradb config show` | Show current CLI configuration | | `hydradb config set KEY VALUE` | Save a setting. See [Persistent configuration](#persistent-configuration) for the keys | -### Deprecated aliases - -The command groups below still work and behave identically, but each prints a -deprecation warning to stderr naming its replacement. They will be removed in a future -major version. - -| Deprecated | Use instead | -|---|---| -| `memories add` | `ingest` | -| `memories list`, `fetch sources` | `list` | -| `memories delete`, `knowledge delete` | `delete` | -| `knowledge upload`, `knowledge upload-text` | `ingest` | -| `knowledge verify` | `verify` | -| `recall full`, `recall preferences`, `recall keyword` | `query --kind … --operator …` | -| `fetch content` | `inspect` | -| `fetch relations` | `relations` | -| `tenant …` | `database …` | -| `whoami` | `doctor` | -| `--tenant-id`, `--sub-tenant-id` | `--database`, `--collection` | - ## Scripting and automation Use `--output json` to pipe results into `jq`, Python, or other tools: @@ -330,7 +226,3 @@ find ./docs -name "*.md" -exec hydradb ingest --database my-db {} + `query` returns `chunks`, each with `chunk_content`, `source_title` and `relevancy_score`. `list` returns `sources`. Both memories and knowledge appear in the same `sources` array, distinguished by their `type`. - -## Feedback and contributions - -The CLI is open source. [Raise an issue](https://github.com/hydra-db/hydradb-cli/issues) or [contribute on GitHub](https://github.com/hydra-db/hydradb-cli). diff --git a/plugins/ecosystem.mdx b/plugins/ecosystem.mdx index 448f0236..edaae6fe 100644 --- a/plugins/ecosystem.mdx +++ b/plugins/ecosystem.mdx @@ -1,50 +1,48 @@ --- title: "Plugins" -description: "Add HydraDB memory to your coding agents, editors, and agent frameworks with a native plugin." +description: "Add HydraDB to your coding agents, editors, and agent frameworks with plugins." --- -Plugins bring HydraDB memory into the coding agents and frameworks you already -use. Pick one below for installation, configuration, and how it works. - -To connect any MCP-compatible assistant instead, use [MCP](/plugins/mcp). -For terminal workflows, use the [CLI](/plugins/cli). +Give your agents full context of your codebase and knowledge base combined with infinite memory to recall your personal preferences while retrieving relevant context. ## Coding agents and editors +Search across all your agent sessions, docs, and past conversations into every prompt. Never let your coding agent produce duplicate code, re-think decisions you've already taken, or miss out a critical piece of information across hundreds of sessions. + - Retrieves context before each prompt, syncs workspace docs, and saves conversations. + Recall earlier decisions when compaction drops important details. - Workspace sync, prompt-time retrieval, and conversation capture for Codex. + Bring past solutions into new tasks instead of solving the same problem again. - Captures turns and injects retrieved context before each prompt. + Spend less time reminding your agent what you discussed in earlier sessions. - Memory and retrieval inside the Cursor editor. + Start fresh chats with relevant project context, without repeating the background. - Long-term memory for the Muse Code agent. + Carry project knowledge between sessions without maintaining memory notes by hand. - Prompt-time retrieval and turn capture for Grok Build. + Retrieve past work so your agent spends less time rediscovering what it already did. - An agent-invoked query tool, workspace sync, and turn capture. + Recover relevant details that compacted summaries leave out. - Native dsh plugin for prompt-time retrieval and turn capture. + Bring earlier conversations into new sessions instead of rebuilding context from scratch. -## Agent memory providers +## Agent memory - Retrieves context before each turn and saves completed turns automatically. + Recall past conversations without repeatedly reminding your agent what matters. @@ -52,10 +50,10 @@ For terminal workflows, use the [CLI](/plugins/cli). - Shared memory for CrewAI agents and crews. + Share what one crew learns so other crews spend less time repeating the work. - Memory and retrieval for LangChain chains and agents. + Retrieve relevant knowledge across conversations instead of rebuilding context for each thread. diff --git a/plugins/mcp.mdx b/plugins/mcp.mdx index 686db7df..a5c30671 100644 --- a/plugins/mcp.mdx +++ b/plugins/mcp.mdx @@ -1,19 +1,14 @@ --- title: "MCP" -description: "Connect your AI assistant to HydraDB through the Model Context Protocol (MCP) server." +description: "Connect your agents to HydraDB through MCP server." --- -The HydraDB MCP server gives any MCP-compatible AI assistant tools to query and -ingest context in your databases. - -For automatic retrieval and conversation capture, use a native [plugin](/plugins/ecosystem) -instead. For terminal workflows, use the [CLI](/plugins/cli). +The MCP is open source. [Raise an issue](https://github.com/hydra-db/hydradb-mcp/issues) or [contribute on GitHub](https://github.com/hydra-db/hydradb-mcp). The MCP server for HydraDB is`https://mcp.hydradb.com` ## Quickstart Choose a sign-in method, then select your AI app. **Sign in with HydraDB** is -the fastest: add one URL to your AI app and approve it in the browser. No API -key needed. +the easiest: add one URL to your AI app and approve it in the browser. @@ -85,37 +80,15 @@ key needed. - **Not sure where to put the URL?** Paste this to your AI assistant and it - will add or update the config file for you: + **Not sure where to put the URL?** Ask your agent: - > Add the HydraDB MCP server at `https://mcp.hydradb.com` to my MCP - > config, then help me authenticate. + Help me add the HydraDB MCP server at `https://mcp.hydradb.com` to my MCP config, then help me authenticate. - - - The approval screen shows the app asking to connect, what it will be able to - do, and which **database** it will read and write. It also asks whether the - app may use your *other* databases: - - - **Allowed when asked** (default): the app starts in the database you - picked and can switch to another one of yours when you tell it to. Choose - this if you work across several databases. - - **Not allowed**: the app is confined to that database, and to the - collection shown under **Advanced**. Anything else is refused, including - a request to delete a graph in another collection. - - You can change your mind at any time by - [disconnecting the app](#sign-in-with-hydradb-oauth). - - An API key works everywhere and is the right choice for servers, CI, - scripts, and self-hosted deployments where no browser is available. - Otherwise, prefer signing in. - - Create an API key from the [HydraDB dashboard](https://dashboard.hydradb.com/keys) @@ -258,21 +231,17 @@ key needed. values from Step 1, then restart your editor or client so it picks up the new MCP server. - - - **Local MCP server only:** the canonical tool names and `HYDRADB_*` - variables need **@hydradb/mcp 1.1.0 or later**. If your config pins - `@0.0.1` or `@1.0.0`, change it to `@^1.1.0` and restart. The caret keeps - you on the 1.x line this page documents. Old `hydra_db_*` tool names are - off by default; set `HYDRADB_MCP_LEGACY_TOOLS=1` to register them again. - + + If your config points `@0.0.1` or `@1.x.x`, change it to `@^1.1.0` and restart. The caret keeps you on the 1.x line this page documents. + + ## Configuration -### Environment variables +### Some environment variables | Variable | Description | Default | | -------------------- | ------------------------------------------ | ------------------------- | @@ -284,45 +253,9 @@ key needed. | `HYDRADB_TIMEOUT_SECONDS` | Deadline for a whole tool call, retries and waits included | `45` | | `HYDRADB_MAX_RETRIES` | Retries per request inside that deadline (`0` disables) | `2` | - - The `HYDRA_DB_*` spellings still work. Each one is read as a deprecated alias - of its canonical name and prints a single warning to stderr naming the - replacement; if both are set, the canonical name wins. - - | Deprecated | Canonical | - | ---------- | --------- | - | `HYDRA_DB_API_KEY` | `HYDRADB_API_KEY` | - | `HYDRA_DB_TENANT_ID` | `HYDRADB_DATABASE` | - | `HYDRA_DB_SUB_TENANT_ID` | `HYDRADB_COLLECTION` | - | `HYDRA_DB_BASE_URL` | `HYDRADB_BASE_URL` | - | `HYDRA_DB_LOG_LEVEL` | `HYDRADB_LOG_LEVEL` | - - -### Timeouts and retries - -One deadline, `HYDRADB_TIMEOUT_SECONDS`, covers a whole tool call: every attempt -and every wait between attempts. The default of 45 seconds ends a call before -the 60 seconds most MCP clients wait for a tool. When the deadline passes, the -error names it and lists each attempt. - -- **Reads** are retried after `429`, `408`, `5xx` and dropped connections. -- **Writes that are not safe to repeat** (`hydradb_ingest`, `hydradb_graph_query`, - `hydradb_feedback`, and creating or deleting a database or collection) are - retried only when the failure shows HydraDB did not act on them: `429`, `408`, - or a refused connection. After a `5xx`, a dropped connection or the deadline, - the error says the outcome is unknown. Check whether the write took effect - before sending it again. -- **`Retry-After`** sets the wait, in seconds or as an HTTP date. If the wait - would end after the deadline, the call fails at once with HydraDB's answer. -- **Cancelling** a tool call stops the request in flight and starts no new - attempt, on the local server and on the remote server. - -On the remote server these are operator settings: set them in the server's -environment. - ### Collections -Give each project its own `HYDRADB_COLLECTION` to keep its memory isolated +Give each project its own `HYDRADB_COLLECTION` to keep its context isolated within one database, or point several projects at the same value to share context between them: @@ -342,63 +275,20 @@ context between them: } ``` -When `HYDRADB_COLLECTION` is unset, the API uses the default collection. To keep -the old shared behavior, set it to `hydra-db-mcp`. - -## Authenticating to the remote server - -`https://mcp.hydradb.com` accepts two kinds of credentials at the same URL. - -### Sign in with HydraDB (OAuth) - -Point your client at the URL with no credentials and it discovers the sign-in -flow on its own: the server answers `401` with a pointer to its metadata, your -client registers itself, and opens your browser. You sign in, choose a database, -and approve. Your client stores a token that it refreshes silently, and you never -handle a key. - -**Settings**, then **Connected apps**, lists every app you have connected. -**Disconnect** ends an app's access within 30 seconds, once the server's cached -token check expires. - ### API key headers -Every request carries its own credentials, so one server serves any number of -independent users. Send them as headers: +A request that authenticates nobody is refused with `401`, and that refusal is +what starts the sign-in flow for clients that support it. A request that carries +an API key but names no database is refused with `400`. | Header | Maps to | Required | -| ------ | ------- | -------- | +| --- | --- | --- | | `Authorization` | Your HydraDB API key as a `Bearer` token (`X-HydraDB-Api-Key` is also accepted), or an OAuth access token | Yes | | `X-HydraDB-Database` | Database. API-key requests only; not read for an OAuth token, whose scope comes from what you approved | With an API key | | `X-HydraDB-Collection` | Collection. If omitted, the API uses the default collection | No | | `X-HydraDB-Graph-Database` | Default graph database for the Cypher tools; defaults to the request's database | No | | `X-HydraDB-Graph-Collection` | Default graph collection; defaults to `default` | No | -A request that authenticates nobody is refused with `401`, and that refusal is -what starts the sign-in flow for clients that support it. A request that carries -an API key but names no database is refused with `400`. - - - The API key and database resolve together: a request that supplies its own key - must also supply its own `X-HydraDB-Database`, so your key is never paired with - someone else's database. The base URL, request timeout, and retry count are - operator settings on the server and are never read from a request header. - - - - **Per-call database switching:** Multi-tenant agents serving multiple companies - from a single session can pass `database` and `collection` directly in tool - arguments (for example, `hydradb_query` with `{"query": "...", "database": "tenant_b"}`). - When omitted, calls fall back to the connection's default scope: the - `X-HydraDB-Database` / `X-HydraDB-Collection` headers for an API key, or what - you approved for an OAuth connection. - - On an OAuth connection you approved with **other databases not allowed**, a - per-call `database` or `collection` outside that scope is refused before the - request leaves the server, and `hydradb_databases` shows what the connection - may use. - - ## Self-hosting the HTTP server To run the remote server yourself instead of using `mcp.hydradb.com`, use @@ -407,6 +297,10 @@ in the environment for a single-tenant server (clients then send no credentials) or leave them unset for a multi-tenant one where every client authenticates with its own headers. + + The defaults are loopback-only. When you expose the server publicly, bind `0.0.0.0` deliberately, set `ALLOWED_HOSTS` to your hostname, list any browser origins in `ALLOWED_ORIGINS`, and terminate TLS in front of it. For a shared, public server, leave `HYDRADB_API_KEY` unset so every caller must authenticate with their own key rather than sharing yours. + + ```bash @@ -437,15 +331,3 @@ The primary endpoint is `POST /` (with `/mcp` supported as an alias); `GET /heal | `ALLOWED_HOSTS` | Extra `Host` headers to accept (comma-separated); loopback always allowed | *(loopback only)* | | `ALLOWED_ORIGINS` | CORS origins for browser clients (comma-separated; `*` allows any) | *(none)* | | `TRUST_PROXY` | Express `trust proxy` when behind a reverse proxy: a hop count, `true`, or `loopback` | *off* | - - - The defaults are loopback-only. When you expose the server publicly, bind - `0.0.0.0` deliberately, set `ALLOWED_HOSTS` to your hostname, list any browser - origins in `ALLOWED_ORIGINS`, and terminate TLS in front of it. For a shared, - public server, leave `HYDRADB_API_KEY` unset so every caller must authenticate - with their own key rather than sharing yours. - - -## Feedback and contributions - -The MCP server is open source. [Raise an issue](https://github.com/hydra-db/hydradb-mcp/issues) or [contribute on GitHub](https://github.com/hydra-db/hydradb-mcp). From 61f398ab30e835c23a5216e741b5a22d4752cf22 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 09:23:50 +0000 Subject: [PATCH 02/33] docs: bring over cookbooks, connector-only app content, and spreadsheet tables Carries the work from #360 onto the docs rewrite. Where both changed a page, the rewrite's text is kept. - cookbooks and the shared hydra.py helper sync app content through connectors - API reference: app_knowledge removed, ingest takes two payloads, include_table_sql on /query - tests for the cookbooks, examples and shared facts - on the rewritten pages: app_knowledge and app sources removed outside connectors, the app-sources redirect points at Connectors, the spreadsheet and tabular_data sections (from #349) added to Context and Query, and acl_inherit kept on Metadata Filters Co-authored-by: prathamgarg911 Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01WY1LUg8AWZayst2djgnjNK Signed-off-by: Claude --- AGENTS.mdx | 141 +------ CONTRIBUTING.md | 4 +- .../v2/endpoint/context-overview.mdx | 15 +- api-reference/v2/endpoint/ingest-context.mdx | 102 +---- api-reference/v2/endpoint/list-context.mdx | 2 +- api-reference/v2/endpoint/query-overview.mdx | 8 +- api-reference/v2/endpoint/query.mdx | 6 +- api-reference/v2/endpoint/source-status.mdx | 4 +- .../v2/endpoint/webhooks-overview.mdx | 2 +- api-reference/v2/error-responses.mdx | 2 +- api-reference/v2/index.mdx | 2 +- api-reference/v2/sdks.mdx | 5 +- cookbooks/v2/chief-of-staff.mdx | 86 ++--- cookbooks/v2/competitive-intelligence.mdx | 26 +- cookbooks/v2/cursor.mdx | 2 +- cookbooks/v2/glean.mdx | 122 ++---- cookbooks/v2/index.mdx | 4 +- cookbooks/v2/personal-assistant.mdx | 94 ++--- cookbooks/v2/support-agent.mdx | 2 +- docs.json | 2 +- essentials/v2/bring-your-own-graph.mdx | 3 +- essentials/v2/context.mdx | 8 + essentials/v2/metadata.mdx | 1 + essentials/v2/query.mdx | 61 ++- scripts/test_cookbooks.py | 348 +++++++++++++++--- scripts/test_docs_consistency.py | 23 +- scripts/test_docs_examples.py | 29 +- snippets/cookbook-setup.mdx | 99 ++++- 28 files changed, 674 insertions(+), 529 deletions(-) diff --git a/AGENTS.mdx b/AGENTS.mdx index f3b63232..89ae956c 100644 --- a/AGENTS.mdx +++ b/AGENTS.mdx @@ -9,7 +9,7 @@ This is the complete, maintained agent guide. Continue with the sections below; 1. **`POST /databases`** (`client.databases.create()`): Create an isolated database. Creation is asynchronous. 2. **`GET /databases/status`** (`client.databases.status()`): Poll until `infra.ready_for_ingestion` is true before you ingest or query. -3. **`POST /context/ingest`** (`client.context.ingest()`): Ingest files, app sources, or memories with `type="knowledge"` or `type="memory"`. Indexing is asynchronous. +3. **`POST /context/ingest`** (`client.context.ingest()`): Ingest files or memories with `type="knowledge"` or `type="memory"`. Indexing is asynchronous. 4. **`GET /context/status`** (`client.context.status()`): Poll by `ids` until `indexing_status` is `completed` before you query. `graph_creation` means the source is becoming searchable while its graph builds, but a query sent the moment it appears can still miss the source. `errored` means indexing failed: read `error_code` and `error_message`. Details in [7. Context status and lifecycle](#7-context-status-and-lifecycle). 5. **`POST /query`** (`client.query()`): Retrieve chunks with `type: "knowledge"`, `"memory"`, or `"all"`. 6. **`POST /feedback`** (`client.feedback.submit()`): Tell us when a query did not give you what you needed, and once the task is done, how the context held up. See [Sending feedback](#sending-feedback). @@ -60,7 +60,7 @@ Raw HTTP responses are wrapped: - `metadata`: schema-aligned fields, declared at database creation; the fast filter path. Filter on them with top-level `metadata_filters` keys. - `additional_metadata`: free-form fields; anything not in the `metadata` schema. Filter on them with `metadata_filters.additional_metadata`. -- Set both per source on `/context/ingest`: on each `document_metadata[]` item (file uploads), each `app_knowledge[]` item, or each memory item. There is no top-level `metadata` or `additional_metadata` form field. +- Set both per source on `/context/ingest`: on each `document_metadata[]` item (file uploads) or each memory item. There is no top-level `metadata` or `additional_metadata` form field. Schema fields, placement, and filter operators are in [10. Metadata guide](#10-metadata-guide). @@ -199,7 +199,7 @@ Scoping rules are in [Do not mix scopes accidentally](#do-not-mix-scopes-acciden ### Knowledge -Knowledge is the documents, app sources, and facts your AI reasons over: PDFs, Markdown, CSVs, Slack threads, Notion pages, Gmail threads, tickets, webpages, and so on. Ingest and query it with `type: "knowledge"`. +Knowledge is the documents and facts your AI reasons over: PDFs, Markdown, and CSVs you upload, plus Slack threads, Notion pages, Gmail threads, tickets, and other content that [connectors](#connectors) sync from your apps. Ingest and query it with `type: "knowledge"`. - It can be private: restrict sources with `acl` (see [Access control](#access-control)). - Mutability is explicit: re-ingest with the same ID and `upsert: true`, edit metadata in place with `PATCH /context/{id}/metadata`, or delete. @@ -236,14 +236,14 @@ Explicit relations are links you declare between sources at ingest: ``` - Use `ids`. -- Declare `relations` on `document_metadata[]` and `app_knowledge[]` items. They link knowledge sources; memory items do not take `relations`. +- Declare `relations` on `document_metadata[]` items. They link knowledge sources; memory items do not take `relations`. - A query pulls the related chunks into `data.additional_context` only in `mode: "thinking"` with `query_explicit_relations: true` (the default). ### Access control A source's `acl` lists who may retrieve it; a query's `acl` says who is asking. The query-side rule is in [Send `acl` on user queries](#send-acl-on-user-queries). -- Set `acl` on `app_knowledge[]` items at ingest, or on any existing source with `PATCH /context/{id}/metadata`, where it replaces the stored list. +- Set `acl` on any existing source with `PATCH /context/{id}/metadata`, where it replaces the stored list. - Connectors copy permissions from Slack, Google Drive, GitHub, Confluence, Jira, and other providers on every sync. - Principals: an email (`grace@acme.com`), `domain:acme.com`, `group::`, or `__public__`. - On a query, the caller's email also matches its `domain:` principal and `__public__` automatically. Group membership is never derived from an email; send `group:` principals yourself. @@ -253,7 +253,7 @@ Example: a source with `"acl": ["grace@acme.com"]` comes back for a query with ` ### Connectors -Connectors sync context from 70+ apps, including Slack, Gmail, Google Drive, Notion, Jira, Confluence, GitHub, Linear, HubSpot, and Zendesk, into a database on a schedule, with no ingestion code. Indexing is permission-aware: for providers with `acl_supported: true`, each synced source carries the provider's own access rules. Prefer a connector over hand-written `app_knowledge` ingestion when the app is in the catalog; `GET /connectors/providers` lists it. +Connectors sync context from 70+ apps, including Slack, Gmail, Google Drive, Notion, Jira, Confluence, GitHub, Linear, HubSpot, and Zendesk, into a database on a schedule, with no ingestion code. Indexing is permission-aware: for providers with `acl_supported: true`, each synced source carries the provider's own access rules. App content reaches HydraDB through connectors; `GET /connectors/providers` lists the catalog. Setup is four calls, made once: @@ -374,7 +374,7 @@ SDK naming: - Python methods and fields are snake_case: `databases.get_metadata_schema()`, `page_size`, `query_by`. - TypeScript methods and fields are camelCase: `databases.getMetadataSchema()`, `pageSize`, `queryBy`. -- Values passed as JSON strings (`memories`, `app_knowledge`, `document_metadata`) keep snake_case keys inside the stringified payload in both SDKs, because that is raw wire data. +- Values passed as JSON strings (`memories`, `document_metadata`) keep snake_case keys inside the stringified payload in both SDKs, because that is raw wire data. --- @@ -576,7 +576,6 @@ The collections, stats, and delete routes also take `database` as a query parame | `upsert` | default `true`; replaces existing sources with the same ID | | `documents` | binary file uploads for knowledge | | `document_metadata` | JSON-stringified array, one item per uploaded file; see [Knowledge from files](#knowledge-from-files) | -| `app_knowledge` | JSON-stringified object/array of pre-extracted app sources | | `memories` | JSON-stringified array of memory items | ### Knowledge from files @@ -593,7 +592,7 @@ Use for files HydraDB should parse. Supported extensions: | Plain text | `.txt` `.md` `.markdown` `.json` | - Any other extension, including source code (`.py`, `.ts`, `.go`), `.html`, and `.zip`, is rejected. The request still returns `202`; the rejected file comes back in `data.results` with `status: "failed"` and `error_code: "E1002"`, and has no status record to poll. Check every result item before polling. -- To ingest source code, upload it with `.txt` added to the filename (`auth.py.txt`) and keep the real path in `additional_metadata`, or send its text as an app source. +- To ingest source code, upload it with `.txt` added to the filename (`auth.py.txt`) and keep the real path in `additional_metadata`. - The `Content-Type` of the part is used only when the filename has no extension. ```python @@ -623,62 +622,6 @@ with open("policy.pdf", "rb") as f: | `additional_metadata` | free-form fields for this file (max 1 KiB compact JSON) | | `relations` | relations you declare to other sources, e.g. `{ "ids": [...] }` | -### Knowledge from app sources - -Use `app_knowledge` when you already extracted the text from Slack, Gmail, Jira, Linear, Zendesk, Notion, Confluence, Salesforce, webpages, and so on. - -```ts -await client.context.ingest({ - type: "knowledge", - database: "acme_corp", - appKnowledge: JSON.stringify([ - { - id: "slack_C123_1715012345_000100", - title: "Pricing discussion - Slack #product", - kind: "message", - provider: "slack", - external_id: "1715012345.000100", - url: "https://slack.com/archives/C123/p1715012345000100", - timestamp: "2025-01-15T12:30:00Z", - fields: { - kind: "message", - body: "We agreed on three tiers: Starter, Pro, and Enterprise.", - author: "alice", - thread_id: "1715012345.000100", - created_at: "2025-01-15T12:30:00Z", - }, - metadata: { - channel: "product", - workspace: "acme", - }, - additional_metadata: { - slack_ts: "1715012345.000100", - }, - relations: { - ids: ["slack_thread_root_001"], - }, - } - ]), -}); -``` - -Recommended app-source fields: - -| Field | Why send it | -|---|---| -| `id` | stable HydraDB ID and upsert key | -| `title` | readable result/citation title | -| `kind` | what the record is: `email`, `message`, `ticket`, `knowledge_base`, `comment`, `meeting`, or `custom` | -| `provider`, `external_id` | the app it came from and its ID there | -| `fields` | the record's content and structure for that kind, such as `body`, `author`, and `thread_id`; `fields.kind` must equal `kind` | -| `metadata` | fast filters such as channel, project, region, workspace | -| `additional_metadata` | provider IDs, status, assignee, timestamps | -| `url` | citation / navigation link | -| `timestamp` | freshness and chronology | -| `relations.ids` | thread, parent/child, linked issue, related source expansion | - -Kinds in OpenAPI are `email`, `message`, `ticket`, `knowledge_base`, `comment`, `meeting`, and `custom`. An older shape with `type` and `content.text` in place of `kind` and `fields` is still accepted; do not use it in new code. See [Context](https://docs.hydradb.com/essentials/v2/context.md) for the keys each kind takes in `fields`. At minimum provide a stable `id`, `kind`, `fields`, and the `metadata` you filter on. - ### Memories Use `type="memory"` and a JSON-stringified `memories` array. @@ -838,7 +781,7 @@ Rules: | `query_explicit_relations` | boolean | default true; returns explicitly related chunks in `data.additional_context`; only effective in `thinking` mode | | `additional_graph_context` | string | short factual hint that sharpens retrieval; not a hard filter | | `metadata_filters` | object | deterministic filters before/around ranking | -| `query_apps` | boolean | app-aware retrieval lane for app sources; still searches the full selected knowledge scope; defaults to `true` on `/query`, send `false` to disable | +| `query_apps` | boolean | app-aware retrieval lane for content synced by connectors; still searches the full selected knowledge scope; defaults to `true` on `/query`, send `false` to disable | `type: "all"` reads both stores from the same scope. When shared knowledge lives in its own collection, send `collections: ["", ""]`. @@ -852,7 +795,7 @@ Rules: | User preferences only | `type: "memory"`, include `collection`, `query_by: "hybrid"` | | Exact keyword / phrase | `type: "knowledge"`, `query_by: "text"`, `operator: "phrase"` | | Recent operational updates | `query_by: "hybrid"`, `recency_bias: 0.6-0.8`, metadata filter to doc type/status | -| App search | `type: "knowledge"`, `query_by: "hybrid"`, `mode: "thinking"`, `query_apps: true`; still searches non-app knowledge too | +| App search | `type: "knowledge"`, `query_by: "hybrid"`, `mode: "thinking"`, `query_apps: true`; still searches uploaded files too | ### Query examples @@ -1260,7 +1203,7 @@ try { Most integrations follow the same architecture: 1. Create a database with a metadata schema for hot filters. -2. Ingest shared knowledge and app sources with stable IDs. +2. Upload shared knowledge with stable IDs, and connect apps with connectors. 3. Ingest user and session memories with `collection`. 4. Poll status or use webhooks. 5. Query with `type: "knowledge"`, `"memory"`, or `"all"`. @@ -1285,7 +1228,7 @@ Section 1, critical rules: Sections 2 to 7, ingestion and lifecycle: - [ ] Uploading a file with an unsupported extension, such as source code, and polling an ID that was rejected with `E1002`. -- [ ] Hand-writing `app_knowledge` ingestion for an app a connector already syncs. +- [ ] Writing your own ingestion for an app instead of using a connector. - [ ] Editing an existing connector resource with `POST /connectors/{id}/resources`, which returns `409` and changes nothing. - [ ] Querying right after database creation without polling readiness. - [ ] Querying right after ingestion without polling `context.status` or using webhooks. @@ -1324,7 +1267,7 @@ Every method is on the client: `client.` in both SDKs. Return shapes are | Databases | `databases.collections()` | `databases.collections()` | `GET /databases/collections` | List active collections | | Databases | `databases.delete_collection()` | `databases.deleteCollection()` | `DELETE /databases/collections` | Delete a collection | | Databases | `databases.delete()` | `databases.delete()` | `DELETE /databases` | Delete a database and all its data | -| Context | `context.ingest()` | `context.ingest()` | `POST /context/ingest` | Ingest files, app sources, or memories | +| Context | `context.ingest()` | `context.ingest()` | `POST /context/ingest` | Ingest files or memories | | Context | `context.status()` | `context.status()` | `GET /context/status` | Check indexing status | | Context | `context.list()` | `context.list()` | `POST /context/list` | Browse knowledge or memories | | Context | `context.inspect()` | `context.inspect()` | `GET /context/inspect` | Original content or a presigned URL | @@ -1409,64 +1352,6 @@ curl -s -X POST 'https://api.hydradb.com/query' \ | jq '.data.chunks' ``` -### 15.2 Raw HTTP: ingest app-source knowledge - -The raw HTTP form of [Knowledge from app sources](#knowledge-from-app-sources). `app_knowledge` must be a JSON string in multipart form data. - -```bash -curl -s -X POST 'https://api.hydradb.com/context/ingest' \ - -H "Authorization: Bearer $HYDRADB_API_KEY" \ - -H "API-Version: 2" \ - -F "type=knowledge" \ - -F "database=acme_corp" \ - -F 'app_knowledge=[ - { - "id": "slack_C123_1715012345_000100", - "title": "Pricing discussion - Slack #product", - "kind": "message", - "provider": "slack", - "external_id": "1715012345.000100", - "url": "https://slack.com/archives/C123/p1715012345000100", - "timestamp": "2025-01-15T12:30:00Z", - "fields": { - "kind": "message", - "body": "We agreed on three tiers: Starter at $29, Pro at $79, Enterprise at $199.", - "author": "alice", - "thread_id": "1715012345.000100", - "created_at": "2025-01-15T12:30:00Z" - }, - "metadata": { - "channel": "product", - "workspace": "acme" - }, - "additional_metadata": { - "slack_ts": "1715012345.000100" - }, - "relations": { - "ids": ["slack_thread_root_001"] - } - } - ]' -``` - -Query it with app-aware retrieval: - -```bash -curl -s -X POST 'https://api.hydradb.com/query' \ - -H "Authorization: Bearer $HYDRADB_API_KEY" \ - -H "API-Version: 2" \ - -H "Content-Type: application/json" \ - -d '{ - "database": "acme_corp", - "query": "What pricing tiers did product agree on?", - "type": "knowledge", - "query_by": "hybrid", - "mode": "thinking", - "query_apps": true, - "graph_context": true - }' | jq '.data.chunks' -``` - --- ## 16. Navigation and support diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2ff6b5e2..686ff957 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -175,8 +175,8 @@ Use one term per concept. Literal field names, SDK identifiers, and error codes | collection | sub-tenant, namespace | | | context | data | Everything stored: knowledge and memories. | | source | item, object, doc | One stored unit with an `id`. "Document" and "file" are for uploaded files only. | -| app source | app knowledge, app record | The request field is `app_knowledge`. | -| kind | class | The type of an app source, set in `kind`. | +| app source | app knowledge, app record | A record a connector synced from an app. Use it only on connector pages; other pages say "content synced by connectors". | +| kind | class | The type of an app source, such as `message` or `ticket`. | | chunk | passage, snippet | Gloss once per page if needed: "chunks (passages of a source)". | | query | recall, search request | The operation behind `POST /query`. "Search" is fine as a plain verb. | | ingest | add, push, load | "Upload" for files only. "Sync" for connectors only. | diff --git a/api-reference/v2/endpoint/context-overview.mdx b/api-reference/v2/endpoint/context-overview.mdx index 45a51afd..571a8658 100644 --- a/api-reference/v2/endpoint/context-overview.mdx +++ b/api-reference/v2/endpoint/context-overview.mdx @@ -3,7 +3,7 @@ title: "Context: Overview" description: "Ingest, inspect, and manage knowledge and memories." --- -Context is everything you store in HydraDB: knowledge and memories. Each stored unit is a **source** (an uploaded document, an app source, or a memory). Ingestion returns an `id` for each source, and the other endpoints in this group take that `id`. +Context is everything you store in HydraDB: knowledge and memories. Each stored unit is a **source** (an uploaded document, a record a connector synced, or a memory). Ingestion returns an `id` for each source, and the other endpoints in this group take that `id`. ## Endpoint references @@ -11,7 +11,7 @@ SDK methods are listed by their Python names. The TypeScript SDK uses the same n | Endpoint | SDK method | Purpose | | --- | --- | --- | -| [`POST /context/ingest`](/api-reference/v2/endpoint/ingest-context) | `context.ingest` | Ingest documents, app sources, or memories. Asynchronous: sources are queued for indexing. | +| [`POST /context/ingest`](/api-reference/v2/endpoint/ingest-context) | `context.ingest` | Ingest documents or memories. Asynchronous: sources are queued for indexing. | | [`GET /context/status`](/api-reference/v2/endpoint/source-status) | `context.status` | Poll indexing progress | | [`POST /context/list`](/api-reference/v2/endpoint/list-context) | `context.list` | Browse stored sources or memories | | [`GET /context/inspect`](/api-reference/v2/endpoint/fetch-content) | `context.inspect` | Inspect original source content | @@ -22,16 +22,13 @@ SDK methods are listed by their Python names. The TypeScript SDK uses the same n ## Choose an ingest payload -`POST /context/ingest` accepts three payloads. `type` picks the store, and within `type=knowledge` you pick the payload shape: +`POST /context/ingest` accepts two payloads. `type` picks the store and the payload that goes with it: | To ingest | Send | Guide | | :-- | :-- | :-- | | PDFs, DOCX, CSVs, and other documents HydraDB should parse | `type=knowledge` and `documents` | [Context](/essentials/v2/context) | -| Slack messages, Notion pages, Gmail threads, or web pages with pre-extracted text | `type=knowledge` and `app_knowledge` | [Context](/essentials/v2/context#send-app-sources) | | User preferences, conversation history, or inline notes | `type=memory` and `memories` | [Context](/essentials/v2/context#2-save-memories) | -You can send `documents` and `app_knowledge` in the same request. - ## Typical call sequence 1. Ingest context: `POST /context/ingest`. The response returns an ID for each source. @@ -48,7 +45,7 @@ flowchart LR SI([POST /context/ingest]) end - B -- Documents / app sources --> SI + B -- Documents --> SI B -- User memories --> SI SI --> Q([queued]) @@ -76,8 +73,8 @@ flowchart LR ## Key concepts -- **Knowledge and memories:** Knowledge is the documents, app sources, and facts your AI uses. Memories are preferences, decisions, and past conversations. Both live in a collection, and `type: "all"` on `POST /query` searches both from the same scope. -- **IDs:** `/context/ingest` returns an ID for each source. To assign your own, set `id` in the `document_metadata`, `app_knowledge`, or `memories` item. Use IDs to poll status, inspect content, and delete context. +- **Knowledge and memories:** Knowledge is the documents, content synced from your apps, and facts your AI uses. Memories are preferences, decisions, and past conversations. Both live in a collection, and `type: "all"` on `POST /query` searches both from the same scope. +- **IDs:** `/context/ingest` returns an ID for each source. To assign your own, set `id` in the `document_metadata` or `memories` item. Use IDs to poll status, inspect content, and delete context. - **Metadata:** [Metadata Filters](/essentials/v2/metadata) covers metadata fields, ingestion, updates, and filtering. - **Forceful relations:** Links you declare between sources with `relations.ids`. In `thinking` mode, a query returns the linked sources in `additional_context` alongside the matching chunks. Set relations on the same `document_metadata` item as the file's metadata: diff --git a/api-reference/v2/endpoint/ingest-context.mdx b/api-reference/v2/endpoint/ingest-context.mdx index 270b0a32..f2e3e53b 100644 --- a/api-reference/v2/endpoint/ingest-context.mdx +++ b/api-reference/v2/endpoint/ingest-context.mdx @@ -1,6 +1,6 @@ --- title: "Ingest Context" -description: "Store documents, app sources, and memories for your AI." +description: "Store documents and memories for your AI." openapi: "api-reference/v2/openapi.json POST /context/ingest" --- @@ -11,7 +11,6 @@ Ingest context into a database in one multipart request. Ingestion is asynchrono | Payload | Send | Use for | | --- | --- | --- | | Documents | `type: "knowledge"` and `documents` | Binary uploads that HydraDB should parse: PDFs, Office and iWork files, spreadsheets, images, and plain text. See [Supported file formats](#supported-file-formats). | -| App sources | `type: "knowledge"` and `app_knowledge` | Text and metadata your application has already extracted from an app (Slack threads, Notion pages, emails, tickets). See [Context](/essentials/v2/context#send-app-sources). | | Memories | `type: "memory"` and `memories` | Preferences, decisions, inferred behavior traits, and past conversations your agent should remember in future sessions. See [Context](/essentials/v2/context#2-save-memories). | @@ -59,14 +58,13 @@ curl -X POST 'https://api.hydradb.com/context/ingest' \ | | Use singular `"memory"` when ingesting memories. (default=`"knowledge"`) | | | Target database. | | | Collection to write to. A new name creates the collection automatically. Omit it to use the default collection. List existing collections with [List Collections](/api-reference/v2/endpoint/list-collections). | -| | Replace existing sources with the same ID. Set to `false` to error on conflict: a document or app source whose ID exists comes back `failed` with `error_code: "E9003"`. (default=`true`) | +| | Replace existing sources with the same ID. Set to `false` to error on conflict: a document whose ID exists comes back `failed` with `error_code: "E9003"`. (default=`true`) | | | Binary uploads, **knowledge only**. Required when `type=knowledge` and you want HydraDB to parse documents. Omit when ingesting memories. See [Supported file formats](#supported-file-formats). (default=`[]`) | | | One entry per file in `documents`, in the same order. The counts must match, or the request returns `400`. If omitted, documents index with inferred defaults such as filename/title. See [item fields](#examples-and-item-fields). | -| | Pre-extracted source objects (Slack, Notion, web pages, etc.), **knowledge only**. See [item fields](#examples-and-item-fields). | | | Map of source ID to your own entities and relations. Replaces LLM graph extraction for each keyed source. Works for `type=knowledge` and `type=memory`. See the "Bring your own graph" example in [item fields](#examples-and-item-fields) and the [Bring Your Own Graph](/essentials/v2/bring-your-own-graph#using-byog-without-cypher) guide. | | | Memory items, **memory only**. Required and non-empty when `type=memory`. The form field is plural `memories`, even though `type` is singular `memory`. See [item fields](#examples-and-item-fields). | -- **Multipart, not JSON:** This endpoint uses `multipart/form-data`. Stringify all JSON arrays (`document_metadata`, `app_knowledge`, `memories`) before placing them in the form field. A body that is neither a form nor JSON returns `415`. +- **Multipart, not JSON:** This endpoint uses `multipart/form-data`. Stringify all JSON arrays (`document_metadata`, `memories`) before placing them in the form field. A body that is neither a form nor JSON returns `415`. - **`202 Accepted` means queued, not indexed:** A successful response only confirms your sources were accepted, not that they are ready to query. Before querying, poll [`GET /context/status`](/api-reference/v2/endpoint/source-status) with the returned IDs until each source reaches `graph_creation` (searchable), `completed`, or `errored`. Alternatively, register a webhook for `indexing.status_changed` events (see [Webhooks](/api-reference/v2/endpoint/webhooks-overview)). - **Memory and knowledge:** Use `type: "memory"` for memory ingestion, listing, and deletion. Use `type: "all"` on `POST /query` when results should combine both. @@ -107,7 +105,7 @@ Files with no readable text fail with [`E2002`](/api-reference/v2/error-response | `.heic` `.heif` `.avif` | Export the photo as JPEG or PDF | | `.svg` `.ico` | Export as PNG or JPEG | | `.html` `.htm` `.xml` | Save the page as PDF | -| `.eml` `.msg` | Save the message as PDF, or send it as an app source | +| `.eml` `.msg` | Save the message as PDF, or sync the mailbox with a [connector](/essentials/v2/connectors) | | `.epub` `.wpd` | Convert to PDF or DOCX | | `.zip` | Upload the files individually | @@ -144,7 +142,7 @@ Files rejected with `E1002` have no ingestion status record. Handle the format e ## Shared item fields -Items in `document_metadata`, `app_knowledge`, and `memories` share three fields. The per-type tables under [Examples and item fields](#examples-and-item-fields) list only what differs. +Items in `document_metadata` and `memories` share three fields. The per-type tables under [Examples and item fields](#examples-and-item-fields) list only what differs. | Field | Description | | --- | --- | @@ -220,7 +218,7 @@ See [Metadata Filters](/essentials/v2/metadata#2-the-two-layers) for choosing me Those seven, plus the deprecated aliases `source_id` and `file_id` (for `id`) and `document_metadata` (for `additional_metadata`), are the only keys accepted. Anything else (including `title`, `type`, `url` and `timestamp`) is rejected with a `400` naming the unsupported key, rather than being silently dropped. - In particular, a document's **title is derived, not settable**. It defaults to the uploaded filename and is returned as `source_title` on query results and `title` on `/context/list`. It cannot be overridden at ingest, and [`PATCH /context/{id}/metadata`](/api-reference/v2/endpoint/update-source-metadata) only merges `additional_metadata` and `database_metadata`. Use `additional_metadata` for your own display fields, or ingest through `app_knowledge`, whose items carry an explicit `title`. + In particular, a document's **title is derived, not settable**. It defaults to the uploaded filename and is returned as `source_title` on query results and `title` on `/context/list`. It cannot be overridden at ingest, and [`PATCH /context/{id}/metadata`](/api-reference/v2/endpoint/update-source-metadata) only merges `additional_metadata` and `database_metadata`. Use `additional_metadata` for your own display fields.
@@ -292,92 +290,6 @@ curl -X POST 'https://api.hydradb.com/context/ingest' \
- - - - ```python Python SDK - import json - - client.context.ingest( - type="knowledge", - database="acme_corp", - collection="team_docs", - app_knowledge=json.dumps([ - { - "id": "slack_thread_001", - "title": "Pricing discussion", - "kind": "message", - "provider": "slack", - "external_id": "1716213600.000100", - "fields": {"kind": "message", "body": "We agreed on three tiers...", "author": "alice"}, - "metadata": {"channel": "product"}, - } - ]), - ) - ``` - - ```typescript TypeScript SDK - await client.context.ingest({ - type: "knowledge", - database: "acme_corp", - collection: "team_docs", - appKnowledge: JSON.stringify([ - { - id: "slack_thread_001", - title: "Pricing discussion", - kind: "message", - provider: "slack", - external_id: "1716213600.000100", - fields: { kind: "message", body: "We agreed on three tiers...", author: "alice" }, - metadata: { channel: "product" }, - }, - ]), - }); - ``` - - ```bash cURL - curl -X POST 'https://api.hydradb.com/context/ingest' \ - -H "Authorization: Bearer " \ - -H "API-Version: 2" \ - -F "type=knowledge" \ - -F "database=acme_corp" \ - -F "collection=team_docs" \ - -F 'app_knowledge=[ - { - "id": "slack_thread_001", - "title": "Pricing discussion", - "kind": "message", - "provider": "slack", - "external_id": "1716213600.000100", - "fields": { "kind": "message", "body": "We agreed on three tiers...", "author": "alice" }, - "metadata": { "channel": "product" } - } - ]' - ``` - - - - | Field | Description | - | --- | --- | - | | Required. Send an empty string to have one generated upstream. See [shared item fields](#shared-item-fields). | - | | Optional. If sent, must match the form-level `database`. | - | | Optional. If sent, must match the form-level `collection`. | - | | Short title or subject shown in query results. | - | | Optional long-form description. | - | | Canonical URL or reference link. | - | | ISO-8601 timestamp (creation or last-updated). | - | | App object kind: `email`, `message`, `ticket`, `knowledge_base`, `comment`, `meeting`, or `custom`. Selects the parser for `fields`. | - | | App namespace such as `slack`, `gmail`, `jira`, or `notion`. | - | | The provider's ID for this exact item. Enables exact lookup and relation resolution. | - | | App-native content and structure (`body`, `description`, `title`, or `data`, by `kind`). `fields.kind` must match `kind`. See [Context](/essentials/v2/context#send-app-sources). | - | | Older generic payload, `{ "text": "..." }`. Prefer `kind` and `fields`, which let app-aware retrieval see authors, threads, and parents. | - | | See [shared item fields](#shared-item-fields). | - | | See [shared item fields](#shared-item-fields). | - | | Optional related attachments. (default=`[]`) | - | | Relations to other sources: `{ "ids": [...] }` as on `document_metadata` items, or the typed `[{ "predicate", "target" }]` list described in [Context](/essentials/v2/context#6-link-sources-that-belong-together). | - | | Principals allowed to retrieve this source. Omit to leave it unrestricted. A malformed principal rejects the whole request with `400`. See [Query](/essentials/v2/query#6-query-on-behalf-of-a-user). | - - @@ -581,7 +493,7 @@ curl -X POST 'https://api.hydradb.com/context/ingest' \ | Field | Description | | --- | --- | - | | Top-level key: a `document_metadata` id or `app_knowledge` item id for `type=knowledge`, or a memory `id` for `type=memory`. Value is that source's graph. A key matching no source returns `400`. | + | | Top-level key: a `document_metadata` id for `type=knowledge`, or a memory `id` for `type=memory`. Value is that source's graph. A key matching no source returns `400`. | | | Map keyed by a caller-local id; each value is an entity. The key is only a handle for `relations` to reference. It is not stored. | | | Entity name. Normalized (lowercased) server-side so it matches at query time. At most 256 chars. | | | Entity type (e.g. `PERSON`, `POLICY`). Stored as supplied. | diff --git a/api-reference/v2/endpoint/list-context.mdx b/api-reference/v2/endpoint/list-context.mdx index e73bc872..16e279e7 100644 --- a/api-reference/v2/endpoint/list-context.mdx +++ b/api-reference/v2/endpoint/list-context.mdx @@ -4,7 +4,7 @@ description: "Page through knowledge sources or memories, with optional filters. openapi: "api-reference/v2/openapi.json POST /context/list" --- -Page through the sources stored in one database and collection, for example to find IDs or audit what was ingested. `type` selects what to list: `knowledge` (the default: documents and app sources), `memory`, or `all` for both. +Page through the sources stored in one database and collection, for example to find IDs or audit what was ingested. `type` selects what to list: `knowledge` (the default: documents and content synced by connectors), `memory`, or `all` for both. Narrow results with `ids` and `filters`, and return only the fields you need with `include_fields`. See [Metadata Filters](/essentials/v2/metadata#7-list-sources-with-metadata-filters) for the metadata workflow. diff --git a/api-reference/v2/endpoint/query-overview.mdx b/api-reference/v2/endpoint/query-overview.mdx index 00cb8636..bf197068 100644 --- a/api-reference/v2/endpoint/query-overview.mdx +++ b/api-reference/v2/endpoint/query-overview.mdx @@ -29,7 +29,7 @@ H([query_by: hybrid]) T([query_by: text]) Q --> S -S -- "Documents / files / app sources" --> M +S -- "Documents / files / synced content" --> M S -- "User memories" --> M S -- "Both" --> M M -- "Best overall relevance" --> H @@ -46,7 +46,7 @@ These parameters shape most queries. [Query](/api-reference/v2/endpoint/query#re | Parameter | Values | Use it for | |---|---|---| -| | `"knowledge"`, `"memory"`, `"all"` | Choose what to query. Use `"knowledge"` for shared documents and app sources, `"memory"` for memories, and `"all"` when an answer should use both. | +| | `"knowledge"`, `"memory"`, `"all"` | Choose what to query. Use `"knowledge"` for shared documents and content synced by connectors, `"memory"` for memories, and `"all"` when an answer should use both. | | | `"hybrid"`, `"text"` | Choose the matching method. Use `"hybrid"` by default and `"text"` for exact terms or phrases. | | | `"fast"`, `"thinking"`, `"auto"` | Choose a single pass with `"fast"`, broader retrieval with `"thinking"`, or automatic routing with `"auto"`. Defaults to `"auto"`. | | | integer | Limit the returned chunks. Defaults to `10` for one collection. Maximum `250`. | @@ -54,7 +54,7 @@ These parameters shape most queries. [Query](/api-reference/v2/endpoint/query#re | | object | Narrow results by metadata. Top-level keys filter schema-backed fields. Free-form fields go under `additional_metadata`. | | | `string[]` or weighted object | Search up to 100 existing collections. A list weights them equally. An object assigns relative weights, such as `{ "workspace_42": 2, "user_alex": 1 }`. | | | boolean | Include entity and relation context with the chunks. On by default; set `false` with `mode: "fast"` for chunk-only responses (`thinking` always includes it). | -| | boolean | Improves app-source matching within knowledge queries. Enabled by default. The query still searches all selected knowledge. | +| | boolean | Improves matching of content synced by connectors within knowledge queries. Enabled by default. The query still searches all selected knowledge. | ## Recommended configurations @@ -75,7 +75,7 @@ Each pattern is a complete request body. [Query](/api-reference/v2/endpoint/quer -Answer questions from files, tickets, pages, or other app sources. +Answer questions from files, or from tickets, pages, and other content synced by connectors. ```json { diff --git a/api-reference/v2/endpoint/query.mdx b/api-reference/v2/endpoint/query.mdx index ac7351fa..0934405d 100644 --- a/api-reference/v2/endpoint/query.mdx +++ b/api-reference/v2/endpoint/query.mdx @@ -227,9 +227,10 @@ By default, `data.llm_prompt` contains the question and matching context as Mark | | Omit for the result object with `llm_prompt`. `"structured"` leaves out the prompt string. `"markdown"` returns the prompt string directly as `data`. | | | What to query. `"all"` runs knowledge and memory in parallel over the same scope and merges by `relevancy_score`. (default=`"knowledge"`) | | | Retrieval method. See [Query methods](#decision-matrix). (default=`"hybrid"`) | -| | Applies to knowledge queries only. Adds app-aware retrieval for messages, threads, and linked app sources. It still searches all selected knowledge, rather than only app sources. Send `false` to disable app-aware retrieval. (default=`true`) | +| | Applies to knowledge queries only. Adds app-aware retrieval for messages, threads, and linked records synced by connectors. It still searches all selected knowledge, rather than only synced content. Send `false` to disable app-aware retrieval. (default=`true`) | | | BM25 operator for `query_by: "text"`. `"and"` or `"phrase"` with any other `query_by` returns `400`. (default=`"or"`) | | | Retrieval pipeline. Applies to `hybrid` only; ignored for `text`. `"auto"` scores the query before retrieval and resolves it to `"fast"` or `"thinking"`, defaulting to `"thinking"` when the signal is inconclusive. (default=`"auto"`) | +| | When the collection holds spreadsheets and the question is tabular, returns the SQL statement HydraDB ran in `tabular_data.sql`. It carries no row data. Applies in thinking mode only. (default=`false`) | | | Maximum chunks to return, from `1` to `250`. Defaults to `10` for a single collection. See [multi-collection defaults](#querying-multiple-collections) when searching several collections. Counts chunks, not bytes or model tokens. | | | Hybrid weight (`1.0` = pure semantic, `0.0` = pure BM25). Applies to `query_by: "hybrid"` only. `"auto"` currently resolves to `0.8`. (default=`0.8`) | | | Boost newer content. Omitted applies a mild `0.4` tilt; send `0` to turn it off. (default=`0.4`) | @@ -293,7 +294,7 @@ See [Metadata Filters](/essentials/v2/metadata#3-filter-operators) for operators | Value | Queries | Best for | |---|---|---| - | `"knowledge"` *(default)* | Knowledge documents, files, and app sources, plus app-aware retrieval unless `query_apps` is `false` | Document Q&A, RAG context. | + | `"knowledge"` *(default)* | Documents, files, and content synced by connectors, plus app-aware retrieval unless `query_apps` is `false` | Document Q&A, RAG context. | | `"memory"` | Memories | Personalization and user preferences. | | `"all"` | Both, merged in one ranked result set | Personalized answers grounded in both shared and user-specific context. | @@ -550,6 +551,7 @@ Common codes: `400 INVALID_INPUT` (empty `query`, `operator: "and"` or `"phrase" - **Relation `timestamp` is a Unix epoch float here:** In the `graph_context` slice returned by `/query` (and in the passthrough relations returned by [List Context](/api-reference/v2/endpoint/list-context) with `include_fields: ["relations"]`), each relation's `timestamp` is a Unix epoch value in seconds (a float, for example `1778573640.0`). The dedicated [Context Relations](/api-reference/v2/endpoint/source-relations) endpoint returns the same field as an ISO-8601 string instead. Normalize before comparing relation timestamps across endpoints. - **Use the right metadata namespace:** Filter schema-backed fields at the top level of `metadata_filters` and free-form fields under `additional_metadata`. See [Metadata filters](#metadata-filters). - **Check indexing first:** New sources are not searchable until [Ingestion Status](/api-reference/v2/endpoint/source-status) reports them indexed. +- **Table answers need thinking mode:** `tabular_data` is computed only when `mode` resolves to `"thinking"`. In `fast` mode a question about a spreadsheet returns the ranked chunks and no `tabular_data`. Read `tabular_data.records` (keyed, typed values) and cite `tabular_data.sources`; see [Ask questions over spreadsheets](/essentials/v2/query#ask-questions-over-spreadsheets). - **Collection scope:** If you omit `collection`, HydraDB queries the default collection, and a query that names a collection does not read the default one. Use [List Collections](/api-reference/v2/endpoint/list-collections) to discover available IDs.
diff --git a/api-reference/v2/endpoint/source-status.mdx b/api-reference/v2/endpoint/source-status.mdx index f4a2851b..d1cad625 100644 --- a/api-reference/v2/endpoint/source-status.mdx +++ b/api-reference/v2/endpoint/source-status.mdx @@ -1,10 +1,10 @@ --- title: "Ingestion Status" -description: "Check whether ingested documents, app sources, or memories are ready to query." +description: "Check whether ingested documents or memories are ready to query." openapi: "api-reference/v2/openapi.json GET /context/status" --- -Ingestion is asynchronous. Call this endpoint with the IDs returned by [Ingest Context](/api-reference/v2/endpoint/ingest-context) to learn when each document, app source, or memory is ready to query. +Ingestion is asynchronous. Call this endpoint with the IDs returned by [Ingest Context](/api-reference/v2/endpoint/ingest-context) to learn when each document or memory is ready to query. To be notified instead of polling, register a webhook for `indexing.status_changed` events. HydraDB sends a `POST` to your endpoint when a source reaches a terminal state (`completed` or `errored`). See [Webhooks](/api-reference/v2/endpoint/webhooks-overview) for setup and receiver examples. diff --git a/api-reference/v2/endpoint/webhooks-overview.mdx b/api-reference/v2/endpoint/webhooks-overview.mdx index 1643a0b7..2c806c17 100644 --- a/api-reference/v2/endpoint/webhooks-overview.mdx +++ b/api-reference/v2/endpoint/webhooks-overview.mdx @@ -113,7 +113,7 @@ A test delivery is synthetic: nothing was ingested, so there is no database name |---|---| | `event` | Event type. Currently `indexing.status_changed`. | | `delivery_id` | Stable ID for this event. Store it to deduplicate retries. | -| `id` | The document, memory, or app source ID you supplied during ingestion. | +| `id` | The document or memory ID you supplied during ingestion, or the ID of a source a connector synced. | | `database` | The name of the database you ingested into: the value you sent as `database` (or `tenant_id`) on the ingest request. Empty only for sources ingested before this field existed; read `tenant_id` if you need a scope that is always set. | | `collection` | Collection scope for the indexed source. | | `status` | Terminal indexing status. Usually `completed` or `errored`. | diff --git a/api-reference/v2/error-responses.mdx b/api-reference/v2/error-responses.mdx index 9b21840b..048db19d 100644 --- a/api-reference/v2/error-responses.mdx +++ b/api-reference/v2/error-responses.mdx @@ -217,7 +217,7 @@ Database creation is asynchronous, and a query sent before provisioning finishes Common causes: - `document_metadata` length does not match the `documents` array length. -- `app_knowledge`, `memories`, or `document_metadata` was sent as an object instead of a JSON-stringified multipart field. +- `memories` or `document_metadata` was sent as an object instead of a JSON-stringified multipart field. - A memory item has neither `text` nor `user_assistant_pairs`. - A typed metadata value does not match the database metadata schema. diff --git a/api-reference/v2/index.mdx b/api-reference/v2/index.mdx index 226aa258..f22fec63 100644 --- a/api-reference/v2/index.mdx +++ b/api-reference/v2/index.mdx @@ -10,7 +10,7 @@ Use this reference to look up request fields and response formats. If you are ne Create a database, ingest context, wait for indexing, then query it. 1. [Create Database](/api-reference/v2/endpoint/create-database): `POST /databases`. Isolates context for a customer, environment, or product. Creation runs in the background, so poll [Database Status](/api-reference/v2/endpoint/database-status) until `ready_for_ingestion` is `true`. -2. [Ingest Context](/api-reference/v2/endpoint/ingest-context): `POST /context/ingest`. Files, app sources, or memories, in one multipart request. +2. [Ingest Context](/api-reference/v2/endpoint/ingest-context): `POST /context/ingest`. Files or memories, in one multipart request. 3. [Ingestion Status](/api-reference/v2/endpoint/source-status): `GET /context/status`. Poll the returned IDs until `indexing_status` is `completed`, or [register a webhook](/api-reference/v2/endpoint/webhooks-overview) instead. 4. [Query](/api-reference/v2/endpoint/query): `POST /query`. Retrieve the context your model needs, from knowledge, memories, or both. diff --git a/api-reference/v2/sdks.mdx b/api-reference/v2/sdks.mdx index 9949b865..90c58ea3 100644 --- a/api-reference/v2/sdks.mdx +++ b/api-reference/v2/sdks.mdx @@ -57,7 +57,7 @@ The REST API and the Python SDK use snake_case. The TypeScript SDK uses camelCas In TypeScript: - **Typed fields are camelCase only.** Use `client.context.list({ database: "...", pageSize: 50 })`. The SDK sends `page_size` to the API and drops unrecognized typed fields, including a caller-supplied `page_size`. -- **JSON strings and free-form maps are sent as written.** Inside JSON strings (`documentMetadata`, `memories`, `appKnowledge`) and free-form maps (`metadataFilters`, and in Python a connector resource update's `request`), use REST field names such as `additional_metadata` or `custom_instructions`, and preserve your own metadata keys. +- **JSON strings and free-form maps are sent as written.** Inside JSON strings (`documentMetadata`, `memories`) and free-form maps (`metadataFilters`, and in Python a connector resource update's `request`), use REST field names such as `additional_metadata` or `custom_instructions`, and preserve your own metadata keys. - **Response fields are camelCase and optional in the types.** Read them as `status.data?.infra?.readyForIngestion`. `database` and `collection` are the current field names. The former names, `tenant_id` and `sub_tenant_id`, are still accepted as deprecated aliases. See [Databases and Collections](/essentials/v2/databases-and-collections#7-migrating-from-the-legacy-tenant-and-sub-tenant-fields). @@ -208,7 +208,7 @@ while (true) { ### Ingest knowledge -Upload files, ingest app sources, or do both in one call. `document_metadata` is a JSON string with one entry per file: +Upload files. `document_metadata` is a JSON string with one entry per file: ```python Python SDK @@ -262,7 +262,6 @@ const result = await client.context.ingest({ ``` -For app sources (Slack, Notion, Gmail, webpages), pass `app_knowledge` instead of `documents`, or pass both in one request. See [Ingest Context](/api-reference/v2/endpoint/ingest-context). ### Ingest memories diff --git a/cookbooks/v2/chief-of-staff.mdx b/cookbooks/v2/chief-of-staff.mdx index b91aafac..aa7a5fd9 100644 --- a/cookbooks/v2/chief-of-staff.mdx +++ b/cookbooks/v2/chief-of-staff.mdx @@ -6,7 +6,7 @@ description: "An assistant that tracks decisions and commitments across meetings import Setup from "/snippets/cookbook-setup.mdx"; -A chief of staff remembers what was decided, who committed to what, and what has changed since. This cookbook builds one from two types of context: meetings and email as knowledge, and the decisions drawn from them as memories that HydraDB keeps current. +A chief of staff remembers what was decided, who committed to what, and what has changed since. This cookbook builds one from two types of context: email and chat as knowledge, and the decisions drawn from them as memories that HydraDB keeps current. | Benchmark | Result | What it shows here | | --- | --- | --- | @@ -22,8 +22,9 @@ Work records go in one collection. The executive's own decisions and commitments ```python chief_of_staff.py import json +import os -from hydra import answer, client, create_database, source_ids, wait_indexed +from hydra import answer, client, connect, create_database, source_ids, wait_indexed DATABASE = "acme_corp" RECORDS, EXECUTIVE = "work_records", "exec_dana" @@ -31,55 +32,35 @@ RECORDS, EXECUTIVE = "work_records", "exec_dana" create_database(DATABASE) ``` -## 2. Ingest meetings and email as knowledge +## 2. Connect email and chat as knowledge -Meetings and email are [app sources](/essentials/v2/context#send-app-sources). The `meeting` and `email` kinds keep participants, senders, and dates, which is what lets a query answer "what did Priya agree to on the September call". +Where the work happened is already written down in email and chat. A [connector](/essentials/v2/connectors) syncs each app into the records collection and keeps senders, participants, threads, and dates, which is what lets a query answer "what did Priya agree to in September". + +Slack carries its own permissions over. Gmail does not, so the mailbox gets an `acl` naming the executive: without it, anyone who queries the records collection could read their mail. `lookback_days` sets how much history the first sync fetches; the default is 30. Above 30, some providers fetch the older history in the background, so it can keep arriving after `connect` returns. ```python chief_of_staff.py -records = [ - { - "id": "gong_call_0912", - "title": "Q4 planning call", - "kind": "meeting", - "provider": "gong", - "external_id": "call_0912", - "timestamp": "2026-09-12T16:00:00Z", - "fields": { - "kind": "meeting", - "title": "Q4 planning call", - "body": "Dana: we launch the EU region on November 3. Priya: I will " - "have the data residency review done by October 15.", - "host": "Dana Okafor", - "participants": [{"name": "Priya Shah", "email": "priya@acme.com"}], - "started_at": "2026-09-12T16:00:00Z", - }, - }, - { - "id": "gmail_msg_1002", - "title": "EU launch date", - "kind": "email", - "provider": "gmail", - "external_id": "msg_1002", - "timestamp": "2026-10-02T09:30:00Z", - "fields": { - "kind": "email", - "subject": "EU launch date", - "body": "Legal needs two more weeks. Moving the EU launch to November 17.", - "from": "dana@acme.com", - "to": ["leadership@acme.com"], - "thread_id": "thread_eu_launch", - "created_at": "2026-10-02T09:30:00Z", - }, - }, -] - -result = client.context.ingest( - type="knowledge", - database=DATABASE, - collection=RECORDS, - app_knowledge=json.dumps(records), +EXECUTIVE_EMAIL = os.environ["EXECUTIVE_EMAIL"] + +# Each provider has its own credentials: client.list_providers(id="gmail") +# returns the shape. The second argument names the account, so a second +# mailbox or workspace gets its own connector. +connect( + "gmail", + EXECUTIVE_EMAIL, + DATABASE, + RECORDS, + credentials=json.loads(os.environ["GMAIL_CREDENTIALS"]), + acl=[EXECUTIVE_EMAIL], + lookback_days=365, +) +connect( + "slack", + os.environ["SLACK_WORKSPACE_ID"], + DATABASE, + RECORDS, + credentials={"access_token": os.environ["SLACK_TOKEN"]}, + lookback_days=365, ) -wait_indexed(DATABASE, RECORDS, source_ids(result)) ``` ## 3. Save decisions as memories @@ -104,7 +85,7 @@ remember("2026-10-02: Moved the EU launch to November 17 because legal needs two ## 4. Ask what is current -Query both collections at once with `type: "all"`. `recency_bias` favors newer context, and `thinking` mode reranks, so the current launch date ranks above the one it replaced. +Query both collections at once with `type: "all"`, as the executive. `acl` keeps the brief to what this person may see: their own mail, and the Slack channels they belong to. `recency_bias` favors newer context, and `thinking` mode reranks, so the current launch date ranks above the one it replaced. ```python chief_of_staff.py def brief(question): @@ -115,6 +96,7 @@ def brief(question): type="all", mode="thinking", recency_bias=0.6, + acl=[EXECUTIVE_EMAIL], ) return answer(question, result, "When facts conflict, the most recent one is current. " "Name the owner and due date of each commitment.") @@ -125,15 +107,15 @@ print(brief("When is the EU launch, and what is still open before it?")) ## Run it +Set `GMAIL_CREDENTIALS`, `SLACK_TOKEN`, `SLACK_WORKSPACE_ID`, and `EXECUTIVE_EMAIL`, replace the two sample decisions and the question with your own, and run: + ```bash python chief_of_staff.py ``` -The answer should give November 17, note that the date moved from November 3, and list Priya's data residency review as the open commitment. - -## Use real data +With the sample decisions, the answer gives November 17, notes that the date moved from November 3, and lists Priya's data residency review as the open commitment. It adds whatever your email and chat say on the subject. -Connect the calendar, meeting, and email apps with [connectors](/essentials/v2/connectors) in place of step 2. Keep step 3 in your application: decide what counts as a decision, and save it when the meeting ends. +Keep step 3 in your application: decide what counts as a decision, and save it when the meeting or thread ends. ## Common mistakes diff --git a/cookbooks/v2/competitive-intelligence.mdx b/cookbooks/v2/competitive-intelligence.mdx index 2a32406d..1e740532 100644 --- a/cookbooks/v2/competitive-intelligence.mdx +++ b/cookbooks/v2/competitive-intelligence.mdx @@ -20,6 +20,7 @@ Competitor signals go stale fast: a pricing page changes, and last quarter's ver Declare the fields you will filter on when you create the database. [Metadata filters](/essentials/v2/metadata) work only on declared fields. ```python intel.py +import io import json from hydra import answer, client, create_database, source_ids, wait_indexed @@ -42,20 +43,19 @@ create_database(DATABASE, schema=[text_field("competitor"), text_field("signal") ## 2. Ingest signals with stable IDs -Send each page as an [app source](/essentials/v2/context#send-app-sources) with the competitor and signal type in `metadata`. Build the `id` from the page, not from the day you fetched it: ingesting the same `id` again replaces the stored version, because `upsert` defaults to `true`. +Upload each page as a small Markdown file, with the competitor and signal type in `metadata`. Build the `id` from the page, not from the day you fetched it: ingesting the same `id` again replaces the stored version, because `upsert` defaults to `true`. ```python intel.py def signal(source_id, competitor, kind_of_signal, title, body, fetched_at, url): + text = f"# {title}\n\nFetched {fetched_at} from {url}\n\n{body}\n" return { - "id": source_id, - "title": title, - "kind": "knowledge_base", - "provider": "web", - "external_id": source_id, - "url": url, - "timestamp": fetched_at, - "fields": {"kind": "knowledge_base", "title": title, "body": body, "updated_at": fetched_at}, - "metadata": {"competitor": competitor, "signal": kind_of_signal}, + # The stored title comes from the filename, so name the file by its id. + "file": (f"{source_id}.md", io.BytesIO(text.encode()), "text/markdown"), + "metadata": { + "id": source_id, + "metadata": {"competitor": competitor, "signal": kind_of_signal}, + "additional_metadata": {"url": url, "fetched_at": fetched_at}, + }, } @@ -64,12 +64,12 @@ def ingest(signals): type="knowledge", database=DATABASE, collection=COLLECTION, - app_knowledge=json.dumps(signals), + documents=[s["file"] for s in signals], + document_metadata=json.dumps([s["metadata"] for s in signals]), ) # A source must finish indexing before the same id is ingested again. wait_indexed(DATABASE, COLLECTION, source_ids(result)) - ingest([ signal("northwind_pricing", "northwind", "pricing", "Northwind pricing", "Team plan: $20 per seat per month. Annual billing only.", @@ -107,7 +107,7 @@ def ask(competitor, question): max_results=8, metadata_filters={"competitor": {"equals": competitor}}, ) - return answer(question, result, "Cite the source title and its date for every claim.") + return answer(question, result, "Cite the page title and the date it was fetched for every claim.") print(ask("northwind", "What does the Team plan cost?")) diff --git a/cookbooks/v2/cursor.mdx b/cookbooks/v2/cursor.mdx index 89c46ce5..bd8bfa0a 100644 --- a/cookbooks/v2/cursor.mdx +++ b/cookbooks/v2/cursor.mdx @@ -164,5 +164,5 @@ Indexing a few hundred files takes a few minutes. The answer should name specifi ## Next steps - [Query: API Reference](/api-reference/v2/endpoint/query): the fields of `graph_context`. -- [Context](/essentials/v2/context#send-app-sources): add pull requests and Slack threads, so the assistant can answer why code was written the way it was. +- [Connectors](/essentials/v2/connectors): sync pull requests from GitHub and threads from Slack, so the assistant can answer why code was written the way it was. - [Claude Code](/plugins/claude-code) and [Cursor](/plugins/cursor) plugins: give an existing coding agent HydraDB memory without building your own. diff --git a/cookbooks/v2/glean.mdx b/cookbooks/v2/glean.mdx index d3cd1713..b5d1ea07 100644 --- a/cookbooks/v2/glean.mdx +++ b/cookbooks/v2/glean.mdx @@ -1,12 +1,12 @@ --- title: "Build your own Glean" sidebarTitle: "Company Brain" -description: "Company search across Slack, Jira, and Notion that respects each person's permissions and cites its sources." +description: "Company search across Slack, Jira, and Confluence that respects each person's permissions and cites its sources." --- import Setup from "/snippets/cookbook-setup.mdx"; -Company search answers a question from everything the company has written, and shows each person only what they are allowed to see. This cookbook builds it with three ideas: one collection for all company knowledge, an ACL on each source, and the asker's identity on every query. +Company search answers a question from everything the company has written, and shows each person only what they are allowed to see. This cookbook builds it with three ideas: one collection for all company knowledge, connectors that sync each app along with its permissions, and the asker's identity on every query. | Benchmark | Result | What it shows here | | --- | --- | --- | @@ -21,79 +21,43 @@ Put everything in one collection so a single query searches all of it. Separate ```python glean.py import json +import os -from hydra import answer, client, create_database, source_ids, wait_indexed +from hydra import answer, client, connect, create_database DATABASE, COLLECTION = "acme_corp", "company" create_database(DATABASE) ``` -## 2. Ingest sources from each app +## 2. Connect each app -Send records your code already holds as [app sources](/essentials/v2/context#send-app-sources). `kind` tells HydraDB what the record is, `fields` carries its content, and `acl` lists who may see it. The samples include an outdated wiki page and the Slack message that replaced it, and a ticket only the finance lead can see. +A [connector](/essentials/v2/connectors) syncs one app account into the collection and keeps it in sync on a schedule. For Slack, Jira, Confluence, and the other providers [that capture permissions](/essentials/v2/connectors#what-each-provider-captures), it also copies the app's permissions into each source's ACL, so a private Slack channel stays private in search. `connect` from `hydra.py` makes the connector calls: create, discover, configure, and status. ```python glean.py -sources = [ - { - "id": "notion_pricing_2025", - "title": "Pricing (2025)", - "kind": "knowledge_base", - "provider": "notion", - "external_id": "page_pricing_2025", - "url": "https://notion.so/acme/pricing-2025", - "timestamp": "2025-03-01T09:00:00Z", - "fields": { - "kind": "knowledge_base", - "title": "Pricing (2025)", - "body": "Pro is $79 per seat per month. Enterprise is $199.", - "updated_at": "2025-03-01T09:00:00Z", - }, - "acl": ["domain:acme.com"], - }, - { - "id": "slack_C01_1788000000_000100", - "title": "Pricing change - Slack #product", - "kind": "message", - "provider": "slack", - "external_id": "1788000000.000100", - "timestamp": "2026-09-01T10:00:00Z", - "fields": { - "kind": "message", - "body": "Decision: from October 1, 2026, Pro moves from $79 to $89 per seat.", - "author": "alice@acme.com", - "thread_id": "1788000000.000100", - "created_at": "2026-09-01T10:00:00Z", - }, - "acl": ["domain:acme.com"], - }, - { - "id": "jira_FIN_42", - "title": "FIN-42: Enterprise discount floor", - "kind": "ticket", - "provider": "jira", - "external_id": "FIN-42", - "timestamp": "2026-09-03T15:00:00Z", - "fields": { - "kind": "ticket", - "title": "Enterprise discount floor", - "description": "Do not discount Enterprise below $150 per seat without CFO approval.", - "status": "open", - "assignee": "grace@acme.com", - }, - "acl": ["grace@acme.com"], - }, -] - -result = client.context.ingest( - type="knowledge", - database=DATABASE, - collection=COLLECTION, - app_knowledge=json.dumps(sources), +connect( + "slack", + os.environ["SLACK_WORKSPACE_ID"], + DATABASE, + COLLECTION, + credentials={"access_token": os.environ["SLACK_TOKEN"]}, ) -wait_indexed(DATABASE, COLLECTION, source_ids(result)) + +# Add one call per app, all pointing at the same collection. Each provider has +# its own credentials: client.list_providers(id="jira") returns the shape. +for provider in ("jira", "confluence"): + variable = f"{provider.upper()}_CREDENTIALS" + if variable in os.environ: + site = os.environ[f"{provider.upper()}_SITE"] # For example acme.atlassian.net. + connect(provider, site, DATABASE, COLLECTION, credentials=json.loads(os.environ[variable])) ``` +The first time it runs for an account, `connect` syncs every channel, page, or project the credentials can reach, and the last 30 days of each. To sync only some, pass a shorter `resources` list to [`configure`](/api-reference/v2/endpoint/configure-connector). To fetch more history, pass `lookback_days`. + + +A provider that does not capture permissions, such as Notion or Gmail, syncs its content with no ACL, so every asker could retrieve it. `connect` refuses such a provider unless you pass `acl` to set who may read what it syncs. It also stops if a provider's permissions could not be read, because that content would be readable by everyone until the next successful sync. + + ## 3. Query as the person asking Send the signed-in user's identity as `acl`. Take it from your session on the server, never from the client: a query without `acl` returns everything in scope. The other settings are the ones the EnterpriseRAG-Bench run used: hybrid matching, `thinking` mode, and 12 results. @@ -125,48 +89,26 @@ def ask(question, user_email): print(f" - {title} ({source_id})") -ask("What does Pro cost per seat?", "bob@acme.com") -ask("How far can we discount Enterprise?", "bob@acme.com") -ask("How far can we discount Enterprise?", "grace@acme.com") +ask("What did we decide about pricing?", "bob@acme.com") +ask("What did we decide about pricing?", "grace@acme.com") ``` ## Run it +Set `SLACK_TOKEN` and `SLACK_WORKSPACE_ID`, and optionally `JIRA_CREDENTIALS` with `JIRA_SITE`, and `CONFLUENCE_CREDENTIALS` with `CONFLUENCE_SITE`. Replace the two emails with people in your workspace, and run: + ```bash python glean.py ``` -The first answer should give $89 and cite the Slack decision alongside the older page. The second should say it does not know, because the ticket is restricted to Grace. The third should give the $150 floor and cite FIN-42. - -## Use real data - -Replace step 2 with [connectors](/essentials/v2/connectors): HydraDB then syncs each app on a schedule and copies its permissions into each source's ACL. Create one connector per app, all pointing at the same collection. - -```python connect.py -from hydra import client - -connector = client.connectors.create( - provider="slack", - database="acme_corp", - collection="company", - provider_account_scope="T12345ACME", - credentials={"access_token": "xoxp-..."}, -) -found = client.connectors.discover(connector.connector_id) -client.connectors.configure( - connector.connector_id, - resources=[ - {"resource_id": r.id, "resource_type": r.resource_type, "name": r.name} - for r in found.resources - ], -) -``` +The first run waits for the first sync, which takes a few minutes. Each answer cites the Slack messages and pages it came from. If the decision was made in a private channel, only the person who is a member of that channel gets it; the other is told the context does not say. Keep sending `acl` on every query, and leave [`enforce_acl`](/essentials/v2/connectors#enforce-acl) off for this application. With `enforce_acl` on, HydraDB ignores the request's `acl` and uses the identity of whoever created the API key, so every user of your application would see what the key's creator can see. Enforcement fits a caller who authenticates as themselves, such as a user signed in through MCP OAuth. ## Common mistakes - **Turning on `enforce_acl` behind one API key:** every query then runs with the key creator's permissions, not the asker's. +- **Connecting a provider that captures no permissions:** its content is synced unrestricted and reaches every asker. Pass `acl` to `connect` for it. - **Querying without `acl`:** the query returns restricted sources to everyone. Send the user's identity on every query. - **One collection per app or team:** a query that names one collection does not read the others. Keep one collection and narrow with [metadata filters](/essentials/v2/metadata). - **Group permissions:** an email matches its `domain:` principal automatically, but not groups. Send `group:` principals yourself. See [Query](/essentials/v2/query#6-query-on-behalf-of-a-user). diff --git a/cookbooks/v2/index.mdx b/cookbooks/v2/index.mdx index 7782a051..2e4a9e2a 100644 --- a/cookbooks/v2/index.mdx +++ b/cookbooks/v2/index.mdx @@ -59,9 +59,9 @@ The mapping is ours. These reports measure retrieval, answer accuracy, or genera Every cookbook follows the same five steps, which are the whole HydraDB loop: 1. Create a database. -2. Ingest context with [`POST /context/ingest`](/api-reference/v2/endpoint/ingest-context). +2. Bring in context: connect an app with a [connector](/essentials/v2/connectors), or upload files and save memories with [`POST /context/ingest`](/api-reference/v2/endpoint/ingest-context). 3. Wait for indexing. 4. Query with [`POST /query`](/api-reference/v2/endpoint/query). 5. Pass the result to a model. -Each cookbook ingests a few sample sources, so it runs with a HydraDB API key and an OpenAI API key. The exception is Cursor, which indexes a repository you point it at. To use your own data, replace the samples or connect the app with a [connector](/essentials/v2/connectors). New to HydraDB? Start with the [Quickstart](/get-started/v2/quickstart). +Competitive intelligence and customer support run on sample data, with a HydraDB API key and an OpenAI API key. Glean, AI Chief of Staff, and the personal assistant connect your own Slack or Gmail account, so they also need that app's credentials. Cursor indexes a repository you point it at. New to HydraDB? Start with the [Quickstart](/get-started/v2/quickstart). diff --git a/cookbooks/v2/personal-assistant.mdx b/cookbooks/v2/personal-assistant.mdx index af0f3a80..3d2cb181 100644 --- a/cookbooks/v2/personal-assistant.mdx +++ b/cookbooks/v2/personal-assistant.mdx @@ -21,9 +21,11 @@ A personal assistant has two jobs: remember what a person tells it, across sessi Each user's context lives in their own collection, named by their user ID. Nothing one user saves can appear in another user's query. ```python assistant.py +import io import json +import os -from hydra import answer, client, create_database, source_ids, wait_indexed +from hydra import answer, client, connect, create_database, source_ids, wait_indexed DATABASE = "assistant" USER = "user_maya" @@ -62,52 +64,51 @@ remember_session([ ## 3. Add the person's email and photos -Email and media are knowledge, saved in the same collection. Send an email as an `email` app source. Send a photo or video as a `custom` app source: put the caption and any text read from the image in `fields.body`, and the date and place in `fields.data`. This mirrors the ATM-Bench setup, where every item is text plus its timestamp, location, and tags. +Email and media are knowledge, saved in the same collection. A [connector](/essentials/v2/connectors) syncs the person's mailbox; `lookback_days` sets how far back the first sync reaches. Above 30, the older mail may be fetched in the background and keep arriving after `connect` returns. Photos and videos have no text to search, so caption each one with a vision model in your application, then upload the caption, any text read from the image, and the date and place as a small file. This mirrors the ATM-Bench setup, where every item is text plus its timestamp, location, and tags. ```python assistant.py -items = [ - { - "id": "gmail_msg_771", - "title": "Your booking at The Lighthouse, Whitstable", - "kind": "email", - "provider": "gmail", - "external_id": "msg_771", - "timestamp": "2026-06-14T08:12:00Z", - "fields": { - "kind": "email", - "subject": "Your booking at The Lighthouse, Whitstable", - "body": "Two nights, June 20 to 22. Total paid: 312 GBP.", - "from": "bookings@thelighthouse.example", - "created_at": "2026-06-14T08:12:00Z", - }, - }, - { - "id": "photo_2026_06_21_0934", - "title": "Photo: oyster stall, Whitstable harbour", - "kind": "custom", - "provider": "photos", - "external_id": "IMG_0934", - "timestamp": "2026-06-21T12:40:00Z", - "fields": { - "kind": "custom", - "body": "A blue oyster stall on the harbour wall. Sign reads 'Wheelers'.", - "data": {"taken_at": "2026-06-21", "place": "Whitstable", "tags": "harbour, food, sea"}, - }, - }, -] - -result = client.context.ingest( - type="knowledge", - database=DATABASE, - collection=USER, - app_knowledge=json.dumps(items), +USER_EMAIL = os.environ["USER_EMAIL"] + +# Each provider has its own credentials: client.list_providers(id="gmail") +# returns the shape. Use this user's own credentials and collection. Gmail +# carries no permissions over, so acl restricts the mailbox to its owner. +connect( + "gmail", + USER_EMAIL, + DATABASE, + USER, + credentials=json.loads(os.environ["GMAIL_CREDENTIALS"]), + acl=[USER_EMAIL], + lookback_days=365, +) + + +def add_photo(photo_id, caption, taken_at, place): + text = f"# Photo taken {taken_at} in {place}\n\n{caption}\n" + result = client.context.ingest( + type="knowledge", + database=DATABASE, + collection=USER, + documents=[(f"{photo_id}.md", io.BytesIO(text.encode()), "text/markdown")], + document_metadata=json.dumps([{ + "id": photo_id, + "additional_metadata": {"taken_at": taken_at, "place": place}, + }]), + ) + wait_indexed(DATABASE, USER, source_ids(result)) + + +add_photo( + "photo_2026_06_21_0934", + "A blue oyster stall on the harbour wall. Sign reads 'Wheelers'.", + "2026-06-21", + "Whitstable", ) -wait_indexed(DATABASE, USER, source_ids(result)) ``` ## 4. Answer from memories and items together -`type: "all"` searches the user's memories and knowledge in one call. +`type: "all"` searches the user's memories and knowledge in one call. `acl` is the user's own email, so the query returns only what this person may see. ```python assistant.py def ask(question): @@ -117,32 +118,31 @@ def ask(question): query=question, type="all", mode="thinking", + acl=[USER_EMAIL], ) return answer(question, result, "When facts conflict, the most recent one is current.") print(ask("Suggest somewhere for a team dinner near my office.")) -print(ask("How much did I pay for the place in Whitstable?")) +print(ask("What bookings or trips do I have coming up?")) print(ask("What was the name on that oyster stall?")) ``` ## Run it +Set `GMAIL_CREDENTIALS` and `USER_EMAIL`, and run: + ```bash python assistant.py ``` -The first answer should suggest vegetarian options near King's Cross, not Shoreditch. The second should give 312 GBP from the booking email. The third should give "Wheelers" from the photo. - -## Use real data - -Connect Gmail and Google Drive with [connectors](/essentials/v2/connectors) to keep email and files in sync, with each user's connector pointing at that user's collection. For photos and video, caption them with a vision model in your application, then ingest them as in step 3. +The first answer suggests vegetarian options near King's Cross, not Shoreditch. The second comes from the person's own email. The third gives "Wheelers" from the photo caption. ## Common mistakes - **Saving a transcript with `infer: false`:** that stores the dialogue word for word, and the preference inside it is harder to find. Use `infer: true` for raw conversation. - **Forgetting `collection` on the query:** a query without it reads the default collection, which holds nothing for this user. -- **Ingesting images without text:** queries match text. Put a caption, any text in the image, and the date and place into the app source. +- **Ingesting images without text:** queries match text. Put a caption, any text in the image, and the date and place into the file you upload. ## Next steps diff --git a/cookbooks/v2/support-agent.mdx b/cookbooks/v2/support-agent.mdx index d2feb26a..32047375 100644 --- a/cookbooks/v2/support-agent.mdx +++ b/cookbooks/v2/support-agent.mdx @@ -125,7 +125,7 @@ The billing answer should combine both sources: the refund was requested on Sept ## Use real data -Sync the public help center into the shared collection with a [connector](/essentials/v2/connectors). Put only public content there: every customer's query reads that collection, and it is not filtered by `acl`. A customer's past tickets are private, so ingest each one into that customer's collection as a `ticket` [app source](/essentials/v2/context#send-app-sources). Keep step 3 in your application, called when a conversation closes. If each of your customers is a company with its own private knowledge, give each company its own database. See [Databases and Collections](/essentials/v2/databases-and-collections). +Sync the public help center into the shared collection with a [connector](/essentials/v2/connectors). Put only public content there: every customer's query reads that collection, and it is not filtered by `acl`. A customer's past tickets are private, so save each one as a memory in that customer's collection, as step 3 does for conversations. Keep step 3 in your application, called when a conversation closes. If each of your customers is a company with its own private knowledge, give each company its own database. See [Databases and Collections](/essentials/v2/databases-and-collections). ## Common mistakes diff --git a/docs.json b/docs.json index 3de6405c..d866462e 100644 --- a/docs.json +++ b/docs.json @@ -613,7 +613,7 @@ }, { "source": "/essentials/v2/app-sources", - "destination": "/essentials/v2/context#send-app-sources", + "destination": "/essentials/v2/connectors", "permanent": true }, { diff --git a/essentials/v2/bring-your-own-graph.mdx b/essentials/v2/bring-your-own-graph.mdx index 19e095b6..bcb322b9 100644 --- a/essentials/v2/bring-your-own-graph.mdx +++ b/essentials/v2/bring-your-own-graph.mdx @@ -752,8 +752,7 @@ print(g.query("MATCH (p:Person) RETURN count(p) AS people")) To use your own entities and relations for a source instead of the ones HydraDB extracts, pass a `graph_payload` on [`POST /context/ingest`](/api-reference/v2/endpoint/ingest-context). It is a -JSON map keyed by source ID (a `document_metadata` `id`, an `app_knowledge` -`id`, or a memory `id`): +JSON map keyed by source ID (a `document_metadata` `id` or a memory `id`): ```bash curl -X POST 'https://api.hydradb.com/context/ingest' \ diff --git a/essentials/v2/context.mdx b/essentials/v2/context.mdx index cf150f3d..c4f55775 100644 --- a/essentials/v2/context.mdx +++ b/essentials/v2/context.mdx @@ -79,6 +79,14 @@ There are two ways to ingest knowledge/context | `additional_metadata` | Free-form values for display and bookkeeping. Filterable only when nested under `additional_metadata` in `metadata_filters`. Up to 1 KiB as compact JSON. | | `relations` | Other sources this file belongs with, as `{ "ids": [...] }`. See [Link documents that belong together](#6-link-sources-that-belong-together). | +### Spreadsheets become queryable tables + +A CSV, TSV or Excel workbook (`.xlsx`, `.xlsm`, `.xlsb`, `.xls`, `.ods`) uploaded here, or delivered by a file connector such as Google Drive, Dropbox, Box, SharePoint or Nextcloud, is ingested two ways at once. Its cells are rendered as text and indexed like any other document, and its rows are kept as a typed table: HydraDB infers a column type for every column and records the row ranges each chunk came from. A workbook yields one table per sheet. + +Nothing changes in how you upload. The difference shows at query time: a question that needs filtering, grouping or arithmetic over the rows is answered by SQL that HydraDB writes and runs over the complete table, with the result returned under `tabular_data`. See [Ask questions over spreadsheets](/essentials/v2/query#ask-questions-over-spreadsheets). + +Replacing the file with the same `id` replaces the table too; the previous version is no longer queried once the new one is indexed. A table is bounded at 4,096 columns; a file with more columns is ingested as text only. + ## Ingesting memory HydraDB does not capture memories on its own: your application saves one when a user states a preference, makes a decision in a specific way, finishes a task, or corrects the agent. diff --git a/essentials/v2/metadata.mdx b/essentials/v2/metadata.mdx index 3b260fc0..c41e8677 100644 --- a/essentials/v2/metadata.mdx +++ b/essentials/v2/metadata.mdx @@ -80,6 +80,7 @@ Caps are measured in bytes of compact JSON, and keys count toward the total. - Send `database_metadata` and/or `additional_metadata`. `collection` is required. - Sent keys are merged into existing metadata, while `acl` replaces the stored list. Searchable fields sync immediately and can't be set to null. +- To remove a connector source's own ACL and use its connector resource permissions again, send `acl_inherit: true` without `acl`. This can widen access. See [Restore resource permissions](/essentials/v2/connectors#restore-resource-permissions). - To replace the content as well, re-ingest with `upsert: true`. ## List (`/context/list`) diff --git a/essentials/v2/query.mdx b/essentials/v2/query.mdx index b23c45b4..3651db60 100644 --- a/essentials/v2/query.mdx +++ b/essentials/v2/query.mdx @@ -135,6 +135,63 @@ The following sample request searches the `acme_corp` database. - `data.llm_prompt`**:** the query and the entire response to the query in one markdown file, complete with citations, that your agents can easily read. - `data.chunks`**:** the matching chunks from the graph, ranked by relevance, each with its source `id`, `chunk_content`, `source_title`, `relevancy_score`, and `metadata`. - **`data.graph_context`** and `data.additional_context`**:** relationships and linkages, covered in [section 5](#5-add-relationships). +- `data.tabular_data`**:** `null` for a document question. Present in thinking mode when the collection holds spreadsheets and the question is about them: a computed answer (`status: "ok"`) with `columns`, `records`, `sources` and `citations`, or a decline (`status: "not_applicable"`) when the question is not about the tables. See [Ask questions over spreadsheets](#ask-questions-over-spreadsheets). + +### Ask questions over spreadsheets + +When a collection holds CSV, TSV or Excel files (see [Spreadsheets become queryable tables](/essentials/v2/context#spreadsheets-become-queryable-tables)), a question in `"mode": "thinking"` that needs filtering, grouping or arithmetic over the rows is answered by SQL that HydraDB writes and runs over the complete table. Ask in plain language: "total revenue per region, highest first", "how many units of Gizmo were sold in Mumbai and Pune", "which regions beat their target". Set `include_table_sql: true` to get the statement back. + +```bash cURL +curl -X POST 'https://api.hydradb.com/query' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ + "database": "your-database", + "collection": "sales", + "query": "What is the total revenue per region, highest first?", + "mode": "thinking", + "include_table_sql": true, + "response_format": "structured" + }' +``` + +What comes back in `data.tabular_data`: + +```json +{ + "status": "ok", + "answer_type": "computed", + "sql": "SELECT \"region\", SUM(\"revenue\") AS \"total_revenue\" FROM \"table_1fda2c6d06a92aa70abaf1df\" GROUP BY \"region\" ORDER BY \"total_revenue\" DESC", + "columns": [ + { "name": "region", "type": "VARCHAR", "kind": "string" }, + { "name": "total_revenue", "type": "HUGEINT", "kind": "integer" } + ], + "records": [ + { "region": "East", "total_revenue": 97500 }, + { "region": "West", "total_revenue": 85860 }, + { "region": "North", "total_revenue": 56470 }, + { "region": "South", "total_revenue": 37815 } + ], + "truncated": false, + "sources": [ + { "id": "sales_2026", "title": "sales_2026.csv", "collection": "sales", "version": "9181604be39c" } + ], + "citations": { + "rows": [{ "chunk_id": "sales_2026_chunk_0001", "collection": "sales", "source_id": "sales_2026" }], + "constants": [] + } +} +``` + +- **`status`:** `"ok"` is an answer. `"not_applicable"` with `reason` (`not_tabular`: the question is not about the tables; `needs_context`: it needs a value or definition the context does not state; `listing_pending`: tables are still being catalogued, ask again; `scope_too_large`: the request covers more sources than one table query reads, name source IDs or fewer collections) means no SQL ran and the text chunks stand on their own. `"error"` carries a `code` and `message`; the rest of the response is unaffected. +- **`answer_type`:** `"exact"` when every record is a stored row of a table (the rows are named in `citations.rows`); `"computed"` when the records are aggregated or derived. +- **`records`** are the result rows keyed by column name, up to 100 per answer (`truncated` says whether more existed). Values follow each column's `kind`: integers and doubles are JSON numbers, booleans are booleans, decimals are strings (to keep precision), dates and timestamps are strings, a SQL NULL is `null`. `columns` lists each column's name, SQL `type` and `kind`. +- **`sources`** lists every table the SQL read, as you know it: the document `id` and `title`, its `collection`, the `sheet` for a workbook, and the `version` it was ingested as. A re-upload gets a new version. +- **`citations`** is what to cite. `rows` are the stored rows behind the answer, each as `{chunk_id, collection, source_id, row}`: for an `exact` answer one per record, with its one-based stored `row` and the chunk in `data.chunks` that holds it when one does; for a `computed` answer one per chunk that holds rows the SQL read. `constants` are literals the SQL took from the question or from a chunk, such as a target or a threshold stated in a document, each with the chunk it came from. +- The text chunks in `data.chunks` are returned as usual, so the answer and its evidence travel together; in this response, `data.chunks` carries the chunk `sales_2026_chunk_0001` that the citation names. `llm_prompt` and the Markdown rendering include the table under a "Table query" heading. + +Table answers run in thinking mode only; `"fast"` returns the ranked chunks without `tabular_data`. Questions that are better answered from text keep working as before: the table path engages only when the question calls for it. ## 3. Tune the ranking @@ -206,7 +263,7 @@ The following sample request searches the `acme_corp` database. - `graph_context`**:** the relationships HydraDB extracted from your context during ingestion, such as "Payments team owns billing service", in `data.graph_context`. - `query_explicit_relations`**:** Links you declared explicitly during ingestion are returned in `data.additional_context`. Explicit relations are returned thinking mode only. -- **`query_apps`:** for [app sources](/essentials/v2/context#send-app-sources), an extra lane that rebuilds Slack threads, follows ticket and parent links, and matches exact ids and people. It still searches everything else, and has no effect on memories. +- **`query_apps`:** for content synced by [connectors](/essentials/v2/connectors), an extra lane that rebuilds Slack threads, follows ticket and parent links, and matches exact ids and people. It still searches everything else, and has no effect on memories. @@ -327,3 +384,5 @@ console.log(completion.choices[0].message.content); | `query_explicit_relations` ignored | Request runs in `mode: "fast"` (or `auto` routed to fast) | Forceful relations are fetched only in thinking mode. Set `mode: "thinking"`. | | `graph_context: false` ignored | Request runs in thinking mode (`mode: "thinking"`, or `auto` routed to thinking) | Thinking always includes the graph slice; `false` takes effect only in fast mode. Set `mode: "fast"` to drop it. | | Expected a deterministic `fast` or `thinking` pipeline, got auto-routed instead | `mode` was omitted | Omitting `mode` means `"auto"`. Set `mode` explicitly to `"fast"` or `"thinking"`. | +| No `tabular_data` for a question about a spreadsheet | Request ran in `mode: "fast"` (or `auto` routed to fast) | Table answers run in thinking mode only. Set `mode: "thinking"`. | +| `tabular_data.status` is `not_applicable` with reason `needs_context` | The question relies on a value or definition the context does not state (a target, a threshold, a category) | Add the document that defines it, or state the value in the question. | diff --git a/scripts/test_cookbooks.py b/scripts/test_cookbooks.py index d1091dac..26109276 100644 --- a/scripts/test_cookbooks.py +++ b/scripts/test_cookbooks.py @@ -26,39 +26,35 @@ COOKBOOKS = sorted(p for p in (ROOT / "cookbooks/v2").glob("*.mdx") if p.name != "index.mdx") SETUP = ROOT / "snippets/cookbook-setup.mdx" -APP_SOURCE_KEYS = { - "id", "database", "collection", "title", "kind", "provider", "external_id", "url", - "timestamp", "fields", "metadata", "additional_metadata", "relations", - "app_relations", "acl", "attachments", "comments", -} -KINDS = {"email", "message", "ticket", "knowledge_base", "comment", "meeting", "custom"} DOCUMENT_METADATA_KEYS = {"id", "metadata", "additional_metadata", "relations"} MEMORY_KEYS = { "id", "title", "text", "user_assistant_pairs", "is_markdown", "infer", "custom_instructions", "user_name", "metadata", "additional_metadata", } OPERATORS = {"equals", "contains", "contains_any"} -# fields.* per kind, from the field reference in essentials/v2/context.mdx. -KIND_FIELDS = { - "email": {"subject", "body", "from", "to", "cc", "bcc", "thread_id", "reply_to_id", - "forwarded_from_id", "created_at", "url"}, - "message": {"body", "author", "thread_id", "parent_id", "mentions", "created_at", - "edited_at", "url"}, - "ticket": {"title", "description", "status", "priority", "assignee", "reporter", - "parent_id", "linked_issue_ids", "created_at", "updated_at", "url"}, - "knowledge_base": {"title", "body", "parent_id", "created_by", "updated_by", - "created_at", "updated_at", "url"}, - "comment": {"body", "author", "parent_id", "thread_id", "created_at", "updated_at", - "url", "properties"}, - "meeting": {"title", "body", "host", "host_email", "participants", "started_at", - "updated_at", "labels", "url"}, - "custom": {"body", "parent_id", "thread_id", "data"}, +# Cookbooks that bring app content in through connectors, and the variables they read. +CONNECTOR_COOKBOOKS = {"glean", "chief-of-staff", "personal-assistant"} +APP_CREDENTIALS = { + "SLACK_TOKEN": "xoxp-test", "SLACK_WORKSPACE_ID": "T12345ACME", + "GMAIL_CREDENTIALS": '{"refresh_token": "test"}', + "EXECUTIVE_EMAIL": "dana@acme.com", "USER_EMAIL": "maya@example.com", } # Plain-text and document extensions POST /context/ingest accepts # (api-reference/v2/endpoint/ingest-context.mdx#supported-file-formats). UPLOAD_EXTENSIONS = {".txt", ".md", ".markdown", ".json", ".pdf", ".docx", ".csv"} +def bounded_sleep(limit=200): + """Patch time.sleep so a polling loop that never ends fails instead of hanging the suite.""" + calls = iter(range(limit)) + + def sleep(seconds): + if next(calls, None) is None: + raise AssertionError("a polling loop did not finish") + + return mock.patch("time.sleep", side_effect=sleep) + + def python_blocks(path): """Return {filename: source} for the labelled Python blocks on a page, in order.""" files = {} @@ -93,7 +89,16 @@ def __init__(self, test, client): self.test = test self.declared = set() self.collections = set() - self.restricted = set() # Collections holding a source that carries an acl. + self.restricted = set() # Collections a connector syncs into: their sources carry ACLs. + self.connectors = [] + self.configured = {} # connector_id -> resources, or None before configure. + self.discovered = [["C1", "C2"], ["C3"]] # Two pages, so pagination is exercised. + self.connector_status = ("active", "healthy") + self.failing = set() # Resource IDs whose last sync failed. + self.retryable = True # Whether waiting can fix those failures. + self.quiet = "ok" # Status of the resources that did not fail. + self.acl_warnings = {} # resource_id -> why its permissions could not be read. + self.page_acl_warnings = {} self.status = "completed" self.calls = [] for owner, name, handler in [ @@ -105,6 +110,11 @@ def __init__(self, test, client): (client.connectors, "create", self.connector_create), (client.connectors, "discover", self.connector_discover), (client.connectors, "configure", self.connector_configure), + (client.connectors, "status", self.connector_status_call), + (client.connectors, "list", self.connector_list), + (client, "list_providers", self.provider_catalog), + (client.connectors, "list_resources", self.connector_resources), + (client.connectors, "update_resource_acl", self.connector_update_resource), ]: label = name if owner is client else f"{type(owner).__name__}.{name}" setattr(owner, name, self.checked(label, getattr(owner, name), handler)) @@ -135,28 +145,115 @@ def database_status(self, database): ) ) - def connector_create(self, **kwargs): - self.test.assertNotIn("enforce_acl", kwargs) # Needs a dashboard session. - return sdk.HandlerConnectorCreateResponse(connector_id="conn_1") + # Providers that copy the app's permissions onto each source, per + # "What each provider captures" in essentials/v2/connectors.mdx. + CAPTURES_ACL = {"slack", "google_drive", "github", "confluence", "jira"} - def connector_discover(self, id): - return sdk.HandlerDiscoverResponseBody(resources=[ - sdk.HandlerDiscoveredResourceDto(id="C1", resource_type="channel", name="general") + def connector_create(self, provider, name, database, collection, credentials, + provider_account_scope=None): + self.test.assertTrue(credentials and all(credentials.values()), "credentials must not be empty") + if provider in {"slack", "github", "linear", "notion"}: + self.test.assertTrue(provider_account_scope, f"{provider} needs provider_account_scope") + else: + self.test.assertIsNone(provider_account_scope, f"{provider} has no account scope") + self.test.assertNotIn(name, [c.name for c in self.connectors if c.database == database], + "one connector per account") + connector_id = f"conn_{len(self.connectors) + 1}" + self.connectors.append(sdk.HandlerConnectorApiView( + connector_id=connector_id, provider=provider, name=name, database=database, + collection=collection, provider_account_scope=provider_account_scope, + lifecycle="pending_setup", + )) + self.configured[connector_id] = None + self.collections.add(collection) + self.restricted.add(collection) + return sdk.HandlerConnectorCreateResponse(connector_id=connector_id) + + def provider_catalog(self, id=None): + self.test.assertIsNone(id, "the catalog, not one provider, reports acl_supported") + return sdk.HandlerProviderListResponse(providers=[ + sdk.HandlerCatalogConnector.model_validate( + {"provider": p, "acl_supported": p in self.CAPTURES_ACL}) + for p in sorted(self.CAPTURES_ACL | {"gmail", "notion"}) ]) - def connector_configure(self, id, resources): + def connector_list(self, provider=None): + return sdk.HandlerConnectorListResponse( + connectors=[c for c in self.connectors if provider in (None, c.provider)] + ) + + def connector(self, connector_id): + found = [c for c in self.connectors if c.connector_id == connector_id] + self.test.assertTrue(found, f"unknown connector {connector_id}") + return found[0] + + def connector_status_call(self, id): + self.connector(id) + if self.configured[id] is None: + return sdk.HandlerConnectorStatusResponse( + connector_id=id, lifecycle="pending_setup", status="degraded") + lifecycle, status = self.connector_status + return sdk.HandlerConnectorStatusResponse( + connector_id=id, lifecycle=lifecycle, status=status, + resources=[ + sdk.HandlerConnectorResourceStatus( + resource_id=r["resource_id"], display_name=r["name"], + status="failed" if r["resource_id"] in self.failing else self.quiet, + message="permission denied" if r["resource_id"] in self.failing else None, + retryable=self.retryable if r["resource_id"] in self.failing else None, + acl_warning=self.acl_warnings.get(r["resource_id"]), + page_acl_warning=self.page_acl_warnings.get(r["resource_id"])) + for r in self.configured[id] + ]) + + def connector_resources(self, id): + self.connector(id) + return sdk.HandlerConnectorResourcesResponse(resources=[ + sdk.ConnectorsResource(connector_id=id, resource_id=r["resource_id"], acl=r.get("acl")) + for r in self.configured[id] or [] + ]) + + def connector_update_resource(self, id, resource_id, request): + self.test.assertLessEqual(set(request), {"acl", "custom_instructions"}) + found = [r for r in self.configured[id] if r["resource_id"] == resource_id] + self.test.assertTrue(found, f"unknown resource {resource_id}") + self.test.assertIsInstance(request.get("acl", []), list) + found[0].update(request) + return {"connector_id": id, "resource_id": resource_id, **request} + + def connector_discover(self, id, cursor=None, limit=None): + self.connector(id) + self.test.assertLessEqual(limit or 100, 100) + pages = self.discovered + index = 0 if cursor is None else int(cursor) + return sdk.HandlerDiscoverResponseBody( + resources=[sdk.HandlerDiscoveredResourceDto(id=r, resource_type="channel", name=r.lower()) + for r in pages[index]], + has_more=index + 1 < len(pages), + next_cursor=str(index + 1) if index + 1 < len(pages) else None, + ) + + def connector_configure(self, id, resources, lookback_days=None): + test = self.test + connector = self.connector(id) + test.assertTrue(resources, "configure rejects an empty resources list") + wanted = {r for page in self.discovered for r in page} + test.assertEqual(wanted, {r["resource_id"] for r in resources}, "configure every discovered resource") for resource in resources: sdk.HandlerResourceMapping(**resource) - self.test.assertLessEqual(set(resource), {"resource_id", "resource_type", "name"}) + test.assertLessEqual(set(resource), {"resource_id", "resource_type", "name", "acl"}) + if connector.provider not in self.CAPTURES_ACL: + test.assertIsNotNone(resource.get("acl"), + f"{connector.provider} captures no permissions: set acl on its resources") + self.configured[id] = resources return sdk.HandlerConfigureResponse() def ingest(self, type, database, collection, documents=None, document_metadata=None, - app_knowledge=None, memories=None): + memories=None): # No app_knowledge: app content comes through connectors. test = self.test self.collections.add(collection) ids = [] if type == "memory": - test.assertIsNone(app_knowledge) for item in json.loads(memories): test.assertLessEqual(set(item), MEMORY_KEYS) test.assertEqual(1, ("text" in item) + ("user_assistant_pairs" in item)) @@ -171,20 +268,10 @@ def ingest(self, type, database, collection, documents=None, document_metadata=N test.assertEqual(len(documents), len(items)) for (filename, handle, content_type), item in zip(documents, items): test.assertLessEqual(set(item), DOCUMENT_METADATA_KEYS) + test.assertLessEqual(set(item.get("metadata", {})), self.declared) test.assertIn(Path(filename).suffix, UPLOAD_EXTENSIONS, filename) test.assertTrue(handle.read(), f"{filename} is empty") ids.append(item["id"]) - for item in json.loads(app_knowledge or "[]"): - test.assertLessEqual(set(item), APP_SOURCE_KEYS) - test.assertIn(item["kind"], KINDS) - test.assertEqual(item["kind"], item["fields"]["kind"]) - test.assertLessEqual( - set(item["fields"]) - {"kind"}, KIND_FIELDS[item["kind"]], item["id"] - ) - test.assertLessEqual(set(item.get("metadata", {})), self.declared) - if item.get("acl"): - self.restricted.add(collection) - ids.append(item["id"]) test.assertTrue(ids) test.assertTrue(all(re.fullmatch(r"[^,\s]+", i) for i in ids), ids) return sdk.HandlerEnvelopeIngestionV2IngestResponse( @@ -220,9 +307,11 @@ def query(self, **kwargs): test.assertEqual(1, len(value)) test.assertLessEqual(set(value), OPERATORS) if self.restricted & set(scopes): - test.assertIn("acl", kwargs, "a query over restricted sources must send the caller's acl") + test.assertIn("acl", kwargs, "a query over connector-synced sources must send the caller's acl") if "acl" in kwargs: - test.assertTrue(kwargs["acl"] and all(isinstance(p, str) for p in kwargs["acl"])) + test.assertTrue(kwargs["acl"]) + for principal in kwargs["acl"]: + test.assertRegex(principal, r"^(?:[^@\s]+@[^@\s]+\.\w+|domain:\S+|group:\S+:\S+)$") # Public fields only: `sources` and other internal fields stay unset, # as .github/verify_v2_public_contract.py requires of the public result. chunk = sdk.SearchV2Chunk( @@ -272,13 +361,25 @@ def test_cursor_search_preserves_graph_linked_context_and_file_paths(self): }}, }, context) + @staticmethod + def optional_credentials(source): + """Environment variables for providers a cookbook connects only when they are set.""" + names = re.findall(r'for provider in \(([^)]*)\)', source) + providers = re.findall(r'"(\w+)"', " ".join(names)) + variables = {} + for p in providers: + variables[f"{p.upper()}_CREDENTIALS"] = '{"api_token": "test"}' + variables[f"{p.upper()}_SITE"] = f"acme-{p}.example.com" + return variables + def run_cookbook(self, path): setup = python_blocks(SETUP)["hydra.py"] files = python_blocks(path) self.assertTrue(files, f"{path.name} has no labelled Python blocks") with tempfile.TemporaryDirectory() as directory, mock.patch.dict( - os.environ, {"HYDRADB_API_KEY": "test", "OPENAI_API_KEY": "test"} - ), mock.patch.dict(sys.modules, {"openai": fake_openai()}), mock.patch("time.sleep"), \ + os.environ, {"HYDRADB_API_KEY": "test", "OPENAI_API_KEY": "test", **APP_CREDENTIALS, + **self.optional_credentials(path.read_text())} + ), mock.patch.dict(sys.modules, {"openai": fake_openai()}), bounded_sleep(), \ mock.patch("builtins.print"): previous = os.getcwd() os.chdir(directory) @@ -301,10 +402,159 @@ def test_every_cookbook_runs_against_the_sdk_signatures(self): for path in COOKBOOKS: with self.subTest(cookbook=path.name): stubs = self.run_cookbook(path) - for step in ("DatabasesClient.create", "DatabasesClient.status", - "ContextClient.ingest", "ContextClient.status", "query"): + steps = ["DatabasesClient.create", "DatabasesClient.status", "query"] + if path.stem in CONNECTOR_COOKBOOKS: + steps += ["ConnectorsClient.list", "ConnectorsClient.create", "ConnectorsClient.discover", + "ConnectorsClient.configure", "ConnectorsClient.status"] + else: + steps += ["ContextClient.ingest", "ContextClient.status"] + self.assertNotIn("ConnectorsClient.create", stubs.calls) + for step in steps: self.assertIn(step, stubs.calls) + def test_connect_reuses_only_the_same_account(self): + hydra, stubs = self.load_setup() + token = {"access_token": "x"} + with bounded_sleep(): + first = hydra.connect("slack", "T1", "db", "docs", token) + again = hydra.connect("slack", "T1", "db", "docs", token) + workspace = hydra.connect("slack", "T2", "db", "docs", token) + collection = hydra.connect("slack", "T1", "db", "other", token) + self.assertEqual(first, again) + self.assertEqual(3, len({first, workspace, collection})) + self.assertEqual(3, stubs.calls.count("ConnectorsClient.create")) + self.assertEqual(3, stubs.calls.count("ConnectorsClient.configure")) + self.assertEqual({"T1", "T2"}, {c.provider_account_scope for c in stubs.connectors}) + + def test_connect_gives_each_mailbox_its_own_connector(self): + hydra, stubs = self.load_setup() + with bounded_sleep(): + work = hydra.connect("gmail", "maya@acme.com", "db", "docs", {"refresh_token": "a"}, + acl=["maya@acme.com"]) + home = hydra.connect("gmail", "maya@home.org", "db", "docs", {"refresh_token": "b"}, + acl=["maya@acme.com"]) + self.assertNotEqual(work, home) + self.assertEqual(2, stubs.calls.count("ConnectorsClient.create")) + self.assertEqual(2, stubs.calls.count("ConnectorsClient.configure")) + + def test_connect_configures_every_page_of_resources(self): + hydra, stubs = self.load_setup() + with bounded_sleep(): + connector_id = hydra.connect("slack", "T1", "db", "docs", {"access_token": "x"}, lookback_days=90) + self.assertEqual(["C1", "C2", "C3"], [r["resource_id"] for r in stubs.configured[connector_id]]) + self.assertEqual(2, stubs.calls.count("ConnectorsClient.discover")) + + def test_connect_finishes_a_connector_left_unconfigured(self): + hydra, stubs = self.load_setup() + stubs.discovered = [[]] # The first run finds nothing and stops before configure. + with bounded_sleep(), self.assertRaisesRegex(RuntimeError, "can reach nothing to sync"): + hydra.connect("slack", "T1", "db", "docs", {"access_token": "x"}) + stubs.discovered = [["C1"]] + with bounded_sleep(): + connector_id = hydra.connect("slack", "T1", "db", "docs", {"access_token": "x"}) + self.assertEqual(1, stubs.calls.count("ConnectorsClient.create")) + self.assertEqual(["C1"], [r["resource_id"] for r in stubs.configured[connector_id]]) + + def test_connect_sets_acl_for_a_provider_that_captures_none(self): + hydra, stubs = self.load_setup() + with bounded_sleep(): + connector_id = hydra.connect("gmail", "a@acme.com", "db", "docs", {"refresh_token": "x"}, + acl=["a@acme.com"]) + self.assertTrue(all(r["acl"] == ["a@acme.com"] for r in stubs.configured[connector_id])) + with bounded_sleep(), self.assertRaisesRegex(ValueError, "notion captures no permissions"): + hydra.connect("notion", "ws1", "db", "docs", {"token": "x"}) + self.assertNotIn("ConnectorsClient.create", stubs.calls[stubs.calls.index("list_providers"):]) + + def test_connect_stops_when_permissions_could_not_be_read(self): + for field in ("acl_warnings", "page_acl_warnings"): + with self.subTest(field=field): + hydra, stubs = self.load_setup() + setattr(stubs, field, {"C2": "provider returned 403"}) + gave_up = mock.patch("time.sleep", side_effect=AssertionError("connect kept polling")) + with gave_up, self.assertRaisesRegex(RuntimeError, "could not read the permissions of c2. Pass"): + hydra.connect("slack", "T1", "db", "docs", {"access_token": "x"}) + + def test_connect_accepts_unread_permissions_when_an_acl_is_set(self): + hydra, stubs = self.load_setup() + stubs.acl_warnings = {"C2": "provider returned 403"} + with bounded_sleep(): + connector_id = hydra.connect("slack", "T1", "db", "docs", {"access_token": "x"}, + acl=["domain:acme.com"]) + self.assertTrue(all(r["acl"] == ["domain:acme.com"] for r in stubs.configured[connector_id])) + + def test_connect_replaces_the_acl_of_a_connector_it_reuses(self): + hydra, stubs = self.load_setup() + args = ("gmail", "a@acme.com", "db", "docs", {"refresh_token": "x"}) + with bounded_sleep(): + connector_id = hydra.connect(*args, acl=["domain:acme.com"]) + self.assertEqual(connector_id, hydra.connect(*args, acl=["a@acme.com"])) + self.assertTrue(all(r["acl"] == ["a@acme.com"] for r in stubs.configured[connector_id])) + self.assertEqual(3, stubs.calls.count("ConnectorsClient.update_resource_acl")) + self.assertEqual(1, stubs.calls.count("ConnectorsClient.configure")) + + def test_connect_leaves_a_stored_acl_alone_when_none_is_passed(self): + hydra, stubs = self.load_setup() + args = ("slack", "T1", "db", "docs", {"access_token": "x"}) + with bounded_sleep(): + connector_id = hydra.connect(*args, acl=["domain:acme.com"]) + hydra.connect(*args) + self.assertTrue(all(r["acl"] == ["domain:acme.com"] for r in stubs.configured[connector_id])) + self.assertNotIn("ConnectorsClient.update_resource_acl", stubs.calls) + + def test_connect_treats_an_empty_acl_as_nobody_not_as_unset(self): + hydra, stubs = self.load_setup() + args = ("gmail", "a@acme.com", "db", "docs", {"refresh_token": "x"}) + with bounded_sleep(): + connector_id = hydra.connect(*args, acl=[]) + self.assertTrue(all(r["acl"] == [] for r in stubs.configured[connector_id])) + with bounded_sleep(): + hydra.connect(*args, acl=["a@acme.com"]) + hydra.connect(*args, acl=[]) + self.assertTrue(all(r["acl"] == [] for r in stubs.configured[connector_id])) + + def test_connect_reports_a_connector_that_synced_only_part(self): + hydra, stubs = self.load_setup() + stubs.connector_status = ("active", "degraded") + stubs.failing = {"C2"} + stubs.quiet = "empty" # A resource with nothing new is not a failure. + gave_up = mock.patch("time.sleep", side_effect=AssertionError("connect kept polling")) + with gave_up, self.assertRaisesRegex(RuntimeError, "incomplete: c2: permission denied$"): + hydra.connect("slack", "T1", "db", "docs", {"access_token": "x"}) + + def test_connect_stops_when_a_first_sync_fails_for_good(self): + hydra, stubs = self.load_setup() + stubs.connector_status = ("ingesting", "degraded") + stubs.failing = {"C1"} + stubs.retryable = False + gave_up = mock.patch("time.sleep", side_effect=AssertionError("connect kept polling")) + with gave_up, self.assertRaisesRegex(RuntimeError, "cannot sync c1: permission denied$"): + hydra.connect("slack", "T1", "db", "docs", {"access_token": "x"}) + + def test_connect_names_the_failing_resources_when_it_times_out(self): + hydra, stubs = self.load_setup() + stubs.connector_status = ("ingesting", "degraded") + stubs.failing = {"C1"} # Retryable, so connect keeps waiting. + with bounded_sleep(), mock.patch("time.time", side_effect=[0, 0, 10, 10_000, 10_000]), \ + self.assertRaisesRegex(TimeoutError, "c1: permission denied"): + hydra.connect("slack", "T1", "db", "docs", {"access_token": "x"}, timeout=60) + + def test_connect_stops_on_every_state_that_cannot_recover(self): + for lifecycle, status in (("ingesting", "failed"), ("paused", "paused"), ("active", "failed"), + ("ingesting", "capped"), ("reconnect", "degraded")): + with self.subTest(lifecycle=lifecycle, status=status): + hydra, stubs = self.load_setup() + stubs.connector_status = (lifecycle, status) + gave_up = mock.patch("time.sleep", side_effect=AssertionError("connect kept polling")) + with gave_up, self.assertRaisesRegex(RuntimeError, "connector is"): + hydra.connect("slack", "T1", "db", "docs", {"access_token": "x"}) + + def test_connect_gives_up_after_its_timeout(self): + hydra, stubs = self.load_setup() + stubs.connector_status = ("ingesting", "checking") # An account with nothing to sync never goes active. + with bounded_sleep(), mock.patch("time.time", side_effect=[0, 0, 10, 10_000, 10_000]), \ + self.assertRaisesRegex(TimeoutError, "synced nothing"): + hydra.connect("slack", "T1", "db", "docs", {"access_token": "x"}, timeout=60) + def load_setup(self): """Import hydra.py with stubbed SDK methods, outside any cookbook.""" hydra = types.ModuleType("hydra") diff --git a/scripts/test_docs_consistency.py b/scripts/test_docs_consistency.py index 566eb837..aad1d50a 100644 --- a/scripts/test_docs_consistency.py +++ b/scripts/test_docs_consistency.py @@ -96,7 +96,6 @@ def test_recall_pages_use_correct_spelling(self): }, } INDEXING_STATUSES = ["queued", "processing", "graph_creation", "completed", "errored"] -APP_SOURCE_KINDS = ["email", "message", "ticket", "knowledge_base", "comment", "meeting", "custom"] class SharedFactsTest(unittest.TestCase): @@ -126,14 +125,20 @@ def test_indexing_statuses_are_the_same_everywhere(self): self.assertTrue(used) self.assertLessEqual(used, set(INDEXING_STATUSES)) - def test_app_source_kinds_are_the_same_everywhere(self): - listed = ", ".join(f"`{kind}`" for kind in APP_SOURCE_KINDS[:-1]) + f", or `{APP_SOURCE_KINDS[-1]}`" - for relative in ("essentials/v2/context.mdx", "api-reference/v2/endpoint/ingest-context.mdx"): - self.assertIn(listed, self.read(relative), relative) - table = re.findall(r"^\| `(\w+)` \| [^|]+ \| `", self.read("essentials/v2/context.mdx"), re.M) - self.assertEqual(APP_SOURCE_KINDS, table) - guide = re.search(r"Kinds in OpenAPI[^.]*\.", self.read("AGENTS.mdx")).group(0) - self.assertEqual(set(APP_SOURCE_KINDS), set(re.findall(r"`(\w+)`", guide))) + def test_app_sources_are_documented_only_under_connectors(self): + """App content reaches HydraDB through connectors, so no other page teaches app_knowledge.""" + pattern = re.compile(r"app[_ ]knowledge|appKnowledge|app_relations|app[ -]sources?", re.I) + offenders = [] + pages = [p for p in live_files("*.mdx") if "/v2/" in str(p) or p.name == "AGENTS.mdx"] + pages += sorted((ROOT / "snippets").glob("*.mdx")) + for path in pages: + relative = str(path.relative_to(ROOT)) + if relative == "essentials/v2/connectors.mdx" or "connector" in path.name: + continue + for number, line in enumerate(path.read_text(encoding="utf-8").split("\n"), 1): + if pattern.search(line): + offenders.append(f"{relative}:{number}") + self.assertEqual([], offenders) def test_supported_file_formats_match_the_api_reference(self): def extensions(relative, start, end): diff --git a/scripts/test_docs_examples.py b/scripts/test_docs_examples.py index 9133c7c6..e4a4cf3c 100644 --- a/scripts/test_docs_examples.py +++ b/scripts/test_docs_examples.py @@ -34,7 +34,7 @@ sys.path.insert(0, str(Path(__file__).resolve().parent)) from test_cookbooks import ( # noqa: E402 - APP_SOURCE_KEYS, DOCUMENT_METADATA_KEYS, KIND_FIELDS, KINDS, MEMORY_KEYS, + DOCUMENT_METADATA_KEYS, MEMORY_KEYS, ) ROOT = Path(__file__).resolve().parents[1] @@ -80,6 +80,12 @@ def resolve(schema): return schema +# Documented fields the generated spec does not declare yet. The spec is synced +# from the application and is never edited by hand, so a field whose release is +# pending is listed here until the sync brings it in. Remove the entry then. +PENDING_SPEC_FIELDS = {".acl_inherit"} # PATCH /context/{id}/metadata + + def unknown_keys(value, schema, path=""): """List keys in value that the schema does not declare, recursively.""" schema = resolve(schema) @@ -94,7 +100,8 @@ def unknown_keys(value, schema, path=""): unknown = [] for key, child in value.items(): if key not in properties: - unknown.append(f"{path}.{key}") + if f"{path}.{key}" not in PENDING_SPEC_FIELDS: + unknown.append(f"{path}.{key}") else: unknown += unknown_keys(child, properties[key], f"{path}.{key}") return unknown @@ -173,7 +180,7 @@ def respond(self, template, method, query, body): return 200, envelope({"database": query["database"][0], "infra": {"ready_for_ingestion": True}}) if key == ("POST", "/context/ingest"): - items = json.loads(body.get("memories") or body.get("app_knowledge") + items = json.loads(body.get("memories") or body.get("document_metadata") or "[{}]") return 202, envelope({"success": True, "results": [ {"id": item.get("id", f"source_{n}"), "status": "queued"} @@ -222,13 +229,8 @@ def check_ingest_items(self, body, where): test.assertEqual(1, ("text" in item) + ("user_assistant_pairs" in item), where) for item in json.loads(body.get("document_metadata") or "[]"): test.assertLessEqual(set(item), DOCUMENT_METADATA_KEYS, where) - for item in json.loads(body.get("app_knowledge") or "[]"): - test.assertEqual("knowledge", body["type"], where) - test.assertLessEqual(set(item), APP_SOURCE_KEYS, where) - test.assertIn(item.get("kind"), KINDS, where) - fields = item.get("fields", {}) - test.assertEqual(item["kind"], fields.get("kind"), where) - test.assertLessEqual(set(fields) - {"kind"}, KIND_FIELDS[item["kind"]], f"{where}: {item.get('id')}") + # App content comes through connectors; examples must not hand-write it. + test.assertNotIn("app_knowledge", body, where) def handle(self, request): try: @@ -517,12 +519,17 @@ def test_documented_fields_exist_in_the_spec(self): # for this operation's request body. leaf = name.split(".")[-1].split("[")[0] self.assertIn(f'"{leaf}"', FULL_TEXT.get(template, SPEC_TEXT), f"{page.name}: {name}") - self.assertGreaterEqual(checked, 60) + self.assertGreaterEqual(checked, 55) class JsonAndCurlExamples(unittest.TestCase): REFERENCE = [page for page in V2_PAGES if "plugins" not in page.parts] + def test_pending_fields_are_still_missing_from_the_spec(self): + """An entry must leave PENDING_SPEC_FIELDS as soon as the spec declares it.""" + declared = {f".{name}" for schema in SCHEMAS.values() for name in schema.get("properties", {})} + self.assertEqual(set(), PENDING_SPEC_FIELDS & declared) + def test_json_blocks_parse_and_use_public_fields(self): count = 0 for page in self.REFERENCE: diff --git a/snippets/cookbook-setup.mdx b/snippets/cookbook-setup.mdx index 554e719a..f7df55cf 100644 --- a/snippets/cookbook-setup.mdx +++ b/snippets/cookbook-setup.mdx @@ -4,7 +4,7 @@ - An OpenAI API key, set as `OPENAI_API_KEY`. HydraDB returns context, not answers, so any model works; swap the `answer` function below for your own. - Python 3.10 or later, with the SDKs: `pip install "hydradb-sdk>=2.1.7,<3" openai`. -Save this as `hydra.py`. Every cookbook imports it. It holds what every HydraDB application does around its own logic: wait for the database, check what an ingest accepted, wait for indexing, and pass query results to a model. +Save this as `hydra.py`. Every cookbook imports it. It holds what every HydraDB application does around its own logic: wait for the database, connect an app, check what an ingest accepted, wait for indexing, and pass query results to a model. ```python hydra.py import os @@ -32,6 +32,103 @@ def create_database(database, schema=None): time.sleep(5) +# Providers that take an account scope. Without one, two accounts whose +# sources share an ID overwrite each other. +SCOPED = {"slack", "github", "linear", "notion"} + + +def connect(provider, account, database, collection, credentials, + acl=None, lookback_days=30, timeout=1800): + """Connect one app account, sync what its credentials can reach, and wait for the first sync. + + account names the account the credentials belong to: a Slack workspace ID, + a mailbox address, a Jira site. Each account gets its own connector. + Pass acl for a provider that does not capture permissions, such as Gmail or + Notion. Without it, everything that provider syncs is readable by every caller. + connect refuses such a provider when acl is left out, and stops if a provider's + permissions could not be read. An empty list lets nobody read the content. + The credentials are used when the connector + is created; to rotate them later, call client.connectors.update. + """ + if acl is None: # Then only the provider's own permissions restrict this content. + catalog = client.list_providers().providers or [] + if not any(p.provider == provider and getattr(p, "acl_supported", False) for p in catalog): + raise ValueError(f"{provider} captures no permissions: pass acl to say who may read it") + name = f"cookbook-{provider}-{collection}-{account}" + connectors = client.connectors.list(provider=provider).connectors or [] + existing = [c for c in connectors if c.name == name and c.database == database] + if existing: # This account was connected on an earlier run. + connector_id = existing[0].connector_id + else: + scope = {"provider_account_scope": account} if provider in SCOPED else {} + connector_id = client.connectors.create( + provider=provider, + name=name, + database=database, + collection=collection, + credentials=credentials, + **scope, + ).connector_id + + if client.connectors.status(connector_id).lifecycle == "pending_setup": + resources, cursor = [], None + while True: # Discover returns up to 100 resources per page. + page = client.connectors.discover(connector_id, cursor=cursor, limit=100) + resources += page.resources or [] + if not page.has_more: + break + cursor = page.next_cursor + if not resources: + raise RuntimeError(f"The {provider} credentials can reach nothing to sync") + rule = {} if acl is None else {"acl": acl} + client.connectors.configure( + connector_id, + lookback_days=lookback_days, + resources=[ + {"resource_id": r.id, "resource_type": r.resource_type, "name": r.name, **rule} + for r in resources + ], + ) + elif acl is not None: # Already configured: set the rule asked for now on every resource. + for resource in client.connectors.list_resources(connector_id).resources or []: + client.connectors.update_resource_acl( + connector_id, resource.resource_id, request={"acl": acl} + ) + + deadline = time.time() + timeout + while time.time() < deadline: + status = client.connectors.status(connector_id) + if status.status in ("failed", "paused", "capped") or status.lifecycle == "reconnect": + raise RuntimeError(f"The {provider} connector is {status.status}: {status.error}") + failed = [r for r in status.resources or [] if r.status == "failed"] + detail = "; ".join(f"{r.display_name or r.resource_id}: {r.message}" for r in failed) + if any(r.retryable is False for r in failed): # Waiting will not fix these. + raise RuntimeError(f"The {provider} connector cannot sync {detail}") + if status.lifecycle == "active": + unread = [ + r.display_name or r.resource_id + for r in status.resources or [] + if r.acl_warning or r.page_acl_warning + ] + if acl is None and unread: # Synced without permissions: readable by everyone. + raise RuntimeError( + f"The {provider} connector could not read the permissions of " + + ", ".join(unread) + + ". Pass acl to restrict them." + ) + if status.status == "healthy": + return connector_id + raise RuntimeError( + f"The {provider} connector is {status.status}, so its content is incomplete: " + + (detail or str(status.error)) + ) + time.sleep(10) + raise TimeoutError( + f"The {provider} connector synced nothing within {timeout} seconds" + + (f" ({detail})" if detail else "") + ) + + def source_ids(result): """Return the IDs an ingest accepted. Raise if it rejected any item.""" for item in result.data.results: From 33674400713161232abe0163d6beb2490a5418ec Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 09:33:01 +0000 Subject: [PATCH 03/33] docs: clean up links after the rewrite, mirror the agent guide in llms.txt - repoint links to the renamed headings in Query, Context, Metadata Filters and Connectors; drop the empty anchor in Query; fix the AGENTS.md link text - llms.txt is now generated from the Agent Integration Guide - pages in a hidden navigation group are kept for reference and left out of the example and consistency checks - remove the last app-source sentence from Context - checks follow the rewritten wording for max_results, size caps, collections per query and indexing statuses Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01WY1LUg8AWZayst2djgnjNK Signed-off-by: Claude --- .../v2/endpoint/context-overview.mdx | 4 +- api-reference/v2/endpoint/create-database.mdx | 2 +- .../v2/endpoint/get-connector-status.mdx | 2 +- api-reference/v2/endpoint/ingest-context.mdx | 4 +- api-reference/v2/endpoint/list-context.mdx | 2 +- api-reference/v2/endpoint/query-overview.mdx | 2 +- api-reference/v2/endpoint/query.mdx | 4 +- .../v2/endpoint/update-connector-resource.mdx | 2 +- .../v2/endpoint/update-connector.mdx | 2 +- .../v2/endpoint/update-source-metadata.mdx | 6 +- cookbooks/v2/chief-of-staff.mdx | 4 +- cookbooks/v2/glean.mdx | 4 +- cookbooks/v2/personal-assistant.mdx | 4 +- cookbooks/v2/support-agent.mdx | 4 +- docs.json | 2 +- essentials/v2/connectors.mdx | 8 +- essentials/v2/context.mdx | 6 +- essentials/v2/databases-and-collections.mdx | 2 +- essentials/v2/query.mdx | 3 +- get-started/v2/introduction.mdx | 2 +- llms.txt | 1501 +++++++++++++++-- plugins/claude-code.mdx | 2 +- .../generate_llms_index.cpython-313.pyc | Bin 0 -> 3200 bytes .../__pycache__/sync_datalake.cpython-313.pyc | Bin 0 -> 30994 bytes scripts/__pycache__/sync_faq.cpython-313.pyc | Bin 0 -> 42444 bytes .../test_agents_guide.cpython-313.pyc | Bin 0 -> 31640 bytes .../test_cookbook_workflows.cpython-313.pyc | Bin 0 -> 50019 bytes .../test_cookbooks.cpython-313.pyc | Bin 0 -> 51122 bytes .../test_docs_consistency.cpython-313.pyc | Bin 0 -> 17876 bytes .../test_docs_discovery.cpython-313.pyc | Bin 0 -> 4550 bytes .../test_docs_examples.cpython-313.pyc | Bin 0 -> 49667 bytes .../test_sync_datalake.cpython-313.pyc | Bin 0 -> 6172 bytes .../__pycache__/test_sync_faq.cpython-313.pyc | Bin 0 -> 7226 bytes scripts/generate_llms_index.py | 37 +- scripts/test_docs_consistency.py | 32 +- scripts/test_docs_discovery.py | 19 +- scripts/test_docs_examples.py | 10 +- 37 files changed, 1446 insertions(+), 224 deletions(-) create mode 100644 scripts/__pycache__/generate_llms_index.cpython-313.pyc create mode 100644 scripts/__pycache__/sync_datalake.cpython-313.pyc create mode 100644 scripts/__pycache__/sync_faq.cpython-313.pyc create mode 100644 scripts/__pycache__/test_agents_guide.cpython-313.pyc create mode 100644 scripts/__pycache__/test_cookbook_workflows.cpython-313.pyc create mode 100644 scripts/__pycache__/test_cookbooks.cpython-313.pyc create mode 100644 scripts/__pycache__/test_docs_consistency.cpython-313.pyc create mode 100644 scripts/__pycache__/test_docs_discovery.cpython-313.pyc create mode 100644 scripts/__pycache__/test_docs_examples.cpython-313.pyc create mode 100644 scripts/__pycache__/test_sync_datalake.cpython-313.pyc create mode 100644 scripts/__pycache__/test_sync_faq.cpython-313.pyc diff --git a/api-reference/v2/endpoint/context-overview.mdx b/api-reference/v2/endpoint/context-overview.mdx index 571a8658..29110c11 100644 --- a/api-reference/v2/endpoint/context-overview.mdx +++ b/api-reference/v2/endpoint/context-overview.mdx @@ -27,7 +27,7 @@ SDK methods are listed by their Python names. The TypeScript SDK uses the same n | To ingest | Send | Guide | | :-- | :-- | :-- | | PDFs, DOCX, CSVs, and other documents HydraDB should parse | `type=knowledge` and `documents` | [Context](/essentials/v2/context) | -| User preferences, conversation history, or inline notes | `type=memory` and `memories` | [Context](/essentials/v2/context#2-save-memories) | +| User preferences, conversation history, or inline notes | `type=memory` and `memories` | [Context](/essentials/v2/context#ingesting-memory) | ## Typical call sequence @@ -98,6 +98,6 @@ with open("runbook.pdf", "rb") as f: ## Related - [Knowledge: forceful relations](/essentials/v2/context#6-link-sources-that-belong-together): linking sources at ingestion -- [Context](/essentials/v2/context#2-save-memories): memories and knowledge, and when to use which +- [Context](/essentials/v2/context#ingesting-memory): memories and knowledge, and when to use which - [Metadata Filters](/essentials/v2/metadata): schema-backed and free-form metadata - [Query: Overview](/api-reference/v2/endpoint/query-overview): retrieve ingested context diff --git a/api-reference/v2/endpoint/create-database.mdx b/api-reference/v2/endpoint/create-database.mdx index 816ef93d..acbe559a 100644 --- a/api-reference/v2/endpoint/create-database.mdx +++ b/api-reference/v2/endpoint/create-database.mdx @@ -116,7 +116,7 @@ curl -X POST 'https://api.hydradb.com/databases' \ | Name | Description | | --- | --- | | | Account-scoped database identifier. Use a stable ID up to 255 characters of lowercase letters, digits, `-`, and `_`; anything else, including uppercase or spaces, returns `400`. | -| | Database-level metadata fields. See the [schema field reference](/essentials/v2/metadata#schema-field-reference) for field options. | +| | Database-level metadata fields. See the [schema field reference](/essentials/v2/metadata#schema-fields) for field options. | ## Metadata schema rules diff --git a/api-reference/v2/endpoint/get-connector-status.mdx b/api-reference/v2/endpoint/get-connector-status.mdx index 4b01f282..7eba2356 100644 --- a/api-reference/v2/endpoint/get-connector-status.mdx +++ b/api-reference/v2/endpoint/get-connector-status.mdx @@ -82,7 +82,7 @@ For each resource, `status` is the result of its last sync. When a resource fail `acl_warning` on a resource means HydraDB could not read that resource's ACL from the provider. If you set an ACL on the resource, yours still applies. If you did not, its sources are readable by everyone until the next successful read. Set one with [Update Connector Resource](/api-reference/v2/endpoint/update-connector-resource) to restrict it in the meantime. - `page_acl_warning` means restrictions on some individual pages, for example in Confluence, could not be read, so those pages are readable by everyone until a later sync reads them. See [Query](/essentials/v2/query#6-query-on-behalf-of-a-user). + `page_acl_warning` means restrictions on some individual pages, for example in Confluence, could not be read, so those pages are readable by everyone until a later sync reads them. See [Query](/essentials/v2/query#6-as-an-admin-you-can-query-the-app-on-behalf-of-a-user).
diff --git a/api-reference/v2/endpoint/ingest-context.mdx b/api-reference/v2/endpoint/ingest-context.mdx index f2e3e53b..8643fed6 100644 --- a/api-reference/v2/endpoint/ingest-context.mdx +++ b/api-reference/v2/endpoint/ingest-context.mdx @@ -11,7 +11,7 @@ Ingest context into a database in one multipart request. Ingestion is asynchrono | Payload | Send | Use for | | --- | --- | --- | | Documents | `type: "knowledge"` and `documents` | Binary uploads that HydraDB should parse: PDFs, Office and iWork files, spreadsheets, images, and plain text. See [Supported file formats](#supported-file-formats). | -| Memories | `type: "memory"` and `memories` | Preferences, decisions, inferred behavior traits, and past conversations your agent should remember in future sessions. See [Context](/essentials/v2/context#2-save-memories). | +| Memories | `type: "memory"` and `memories` | Preferences, decisions, inferred behavior traits, and past conversations your agent should remember in future sessions. See [Context](/essentials/v2/context#ingesting-memory). | @@ -150,7 +150,7 @@ Items in `document_metadata` and `memories` share three fields. The per-type tab | | Database-schema fields for filtering and search. Keys must be declared in `database_metadata_schema`. Send an object, for example `{ "department": "legal" }`. At most 16 KiB. (default=`{}`) | | | Free-form per-source fields for display or bookkeeping, sent as an object. To filter on these at query time, nest them under `metadata_filters.additional_metadata`. At most 1 KiB. (default=`{}`) | -See [Metadata Filters](/essentials/v2/metadata#2-the-two-layers) for choosing metadata fields and filtering on them, and [metadata size limits](/essentials/v2/metadata#stored-metadata) for how HydraDB measures the caps. +See [Metadata Filters](/essentials/v2/metadata#overview---two-layers) for choosing metadata fields and filtering on them, and [metadata size limits](/essentials/v2/metadata#size-caps) for how HydraDB measures the caps. ## Examples and item fields diff --git a/api-reference/v2/endpoint/list-context.mdx b/api-reference/v2/endpoint/list-context.mdx index 16e279e7..3a089916 100644 --- a/api-reference/v2/endpoint/list-context.mdx +++ b/api-reference/v2/endpoint/list-context.mdx @@ -6,7 +6,7 @@ openapi: "api-reference/v2/openapi.json POST /context/list" Page through the sources stored in one database and collection, for example to find IDs or audit what was ingested. `type` selects what to list: `knowledge` (the default: documents and content synced by connectors), `memory`, or `all` for both. -Narrow results with `ids` and `filters`, and return only the fields you need with `include_fields`. See [Metadata Filters](/essentials/v2/metadata#7-list-sources-with-metadata-filters) for the metadata workflow. +Narrow results with `ids` and `filters`, and return only the fields you need with `include_fields`. See [Metadata Filters](/essentials/v2/metadata#list-contextlist) for the metadata workflow. diff --git a/api-reference/v2/endpoint/query-overview.mdx b/api-reference/v2/endpoint/query-overview.mdx index bf197068..ddc79adb 100644 --- a/api-reference/v2/endpoint/query-overview.mdx +++ b/api-reference/v2/endpoint/query-overview.mdx @@ -177,4 +177,4 @@ The response also includes ranked `data.chunks[]` with source IDs and titles, pl - [Query](/api-reference/v2/endpoint/query): every request and response field - [Query guide](/essentials/v2/query): retrieval modes, ranking, and tuning - [Metadata Filters](/essentials/v2/metadata): filter with schema-backed and free-form metadata -- [Query](/essentials/v2/query#5-add-relationships): graph context and forceful relations +- [Query](/essentials/v2/query#5-understanding-relationships-in-your-context): graph context and forceful relations diff --git a/api-reference/v2/endpoint/query.mdx b/api-reference/v2/endpoint/query.mdx index 0934405d..75f87c65 100644 --- a/api-reference/v2/endpoint/query.mdx +++ b/api-reference/v2/endpoint/query.mdx @@ -286,7 +286,7 @@ Top-level `metadata_filters` keys filter schema-backed `metadata`. Keys under `a } ``` -See [Metadata Filters](/essentials/v2/metadata#3-filter-operators) for operators and examples. Filters narrow results. They do not replace the caller's `acl` or connector ACL enforcement. Declare frequently filtered fields in `database_metadata_schema`. +See [Metadata Filters](/essentials/v2/metadata#operators) for operators and examples. Filters narrow results. They do not replace the caller's `acl` or connector ACL enforcement. Declare frequently filtered fields in `database_metadata_schema`. ### Decision matrix @@ -541,7 +541,7 @@ result = client.query( Common codes: `400 INVALID_INPUT` (empty `query`, `operator: "and"` or `"phrase"` without `query_by: "text"`, a malformed filter operator, or a listed collection that does not exist), `400 VALIDATION_ERROR` (a metadata filter that does not fit the declared field type), `404 DATABASE_NOT_FOUND`, `422 TENANT_INFRA_NOT_READY` (the database is still provisioning; poll [Database Status](/api-reference/v2/endpoint/database-status) until `ready_for_ingestion` is `true`), `500 INTERNAL_ERROR`. See [Error Responses](/api-reference/v2/error-responses) for the full list. -`400` also covers oversized filters: a `metadata_filters` list above 500 values, or a `metadata_filters` object above 64 KiB of compact JSON. The message names the offending key or reports the actual byte count. See [Filter size limits](/essentials/v2/metadata#filter-size-limits). +`400` also covers oversized filters: a `metadata_filters` list above 500 values, or a `metadata_filters` object above 64 KiB of compact JSON. The message names the offending key or reports the actual byte count. See [Filter size limits](/essentials/v2/metadata#size-caps). diff --git a/api-reference/v2/endpoint/update-connector-resource.mdx b/api-reference/v2/endpoint/update-connector-resource.mdx index cc602478..c00fa961 100644 --- a/api-reference/v2/endpoint/update-connector-resource.mdx +++ b/api-reference/v2/endpoint/update-connector-resource.mdx @@ -56,7 +56,7 @@ The response includes `custom_instructions` and `acl` only when the request set `resource_id` in the path is the id from [List Connector Resources](/api-reference/v2/endpoint/connector-resources), for example a Slack channel id or a Supabase `schema.table` name. URL-encode it if it contains spaces or other reserved characters. - `custom_instructions` replaces connector-level instructions for this resource. Send `""` to inherit the connector's instructions again. Changes affect future syncs. See [Custom ingestion instructions](/essentials/v2/connectors#custom-ingestion-instructions). -- `acl` changes access immediately, including for already-synced sources. Use `["__public__"]` for public access or `[]` to deny everyone. An ACL captured from the provider may replace it on the next sync. See [Query](/essentials/v2/query#6-query-on-behalf-of-a-user). +- `acl` changes access immediately, including for already-synced sources. Use `["__public__"]` for public access or `[]` to deny everyone. An ACL captured from the provider may replace it on the next sync. See [Query](/essentials/v2/query#6-as-an-admin-you-can-query-the-app-on-behalf-of-a-user). ## Errors diff --git a/api-reference/v2/endpoint/update-connector.mdx b/api-reference/v2/endpoint/update-connector.mdx index 9b04b95f..e4a912bf 100644 --- a/api-reference/v2/endpoint/update-connector.mdx +++ b/api-reference/v2/endpoint/update-connector.mdx @@ -65,7 +65,7 @@ HydraDB validates every field before saving, so invalid input changes nothing. C - `custom_instructions` applies to resources without their own instructions. Send `""` to clear it. Changes affect future syncs. See [Custom ingestion instructions](/essentials/v2/connectors#custom-ingestion-instructions). - `sync_interval_seconds` reschedules the next sync. Stay within the returned `min_sync_interval_seconds` and `max_sync_interval_seconds`, or send `0` for the provider default. - `credentials` reconnects the existing connector. Send the provider's complete credential set. Resources and saved sync positions are preserved. -- `enforce_acl` enables or disables ACL enforcement for this connector. Send `true` to enforce the captured ACL for the authenticated caller on every content read, or `false` to return to opt-in request `acl` filtering. Existing connectors remain `false` until an owner or writer enables it. The change takes effect on the next content request for already-synced sources and does not require re-ingestion. Only workspace owners and writers in a signed-in dashboard session can set it, and `true` requires the provider to report `acl_supported: true`. API-key-authenticated requests cannot set it. See [ACL on synced content](/essentials/v2/connectors#enforce-acl) and [Query](/essentials/v2/query#6-query-on-behalf-of-a-user). +- `enforce_acl` enables or disables ACL enforcement for this connector. Send `true` to enforce the captured ACL for the authenticated caller on every content read, or `false` to return to opt-in request `acl` filtering. Existing connectors remain `false` until an owner or writer enables it. The change takes effect on the next content request for already-synced sources and does not require re-ingestion. Only workspace owners and writers in a signed-in dashboard session can set it, and `true` requires the provider to report `acl_supported: true`. API-key-authenticated requests cannot set it. See [ACL on synced content](/essentials/v2/connectors#enforce-acl) and [Query](/essentials/v2/query#6-as-an-admin-you-can-query-the-app-on-behalf-of-a-user). To enable enforcement later, send this field in a `PATCH` request, or use **Enforce ACL** in the dashboard's connector settings: diff --git a/api-reference/v2/endpoint/update-source-metadata.mdx b/api-reference/v2/endpoint/update-source-metadata.mdx index 99edf7ca..39819dd4 100644 --- a/api-reference/v2/endpoint/update-source-metadata.mdx +++ b/api-reference/v2/endpoint/update-source-metadata.mdx @@ -4,7 +4,7 @@ description: "Merge database metadata and additional metadata into one existing openapi: "api-reference/v2/openapi.json PATCH /context/{id}/metadata" --- -Update one existing source's metadata or ACL without re-ingesting its content. Changes also apply to the indexed chunks used by Query and List Context. See [Metadata Filters](/essentials/v2/metadata#6-update-metadata-without-re-ingesting) for the metadata workflow. +Update one existing source's metadata or ACL without re-ingesting its content. Changes also apply to the indexed chunks used by Query and List Context. See [Metadata Filters](/essentials/v2/metadata#edit-in-place-patch-contextidmetadata) for the metadata workflow. ```http PATCH /context/{id}/metadata @@ -133,7 +133,7 @@ curl -X PATCH 'https://api.hydradb.com/context/policy_main/metadata' \ ## How updates apply - Metadata keys included in the request are added or overwritten. Omitted keys keep their existing values. -- Sending `acl` replaces the entire stored ACL, so send the complete new list. `[]` or `null` revokes access for everyone. Omit `acl` to keep the stored list. See [Query](/essentials/v2/query#6-query-on-behalf-of-a-user). +- Sending `acl` replaces the entire stored ACL, so send the complete new list. `[]` or `null` revokes access for everyone. Omit `acl` to keep the stored list. See [Query](/essentials/v2/query#6-as-an-admin-you-can-query-the-app-on-behalf-of-a-user). - Sending `acl_inherit: true` removes the source's own ACL and immediately uses its connector resource permissions. This can widen access. Later connector syncs can replace the ACL because ACL writes use last-writer-wins behavior. See [Restore resource permissions](/essentials/v2/connectors#restore-resource-permissions). - The source must already exist. This endpoint does not create sources. - The endpoint edits one source at a time. Bulk metadata edits are not supported. @@ -158,7 +158,7 @@ A `200` response can still report an incomplete edit: ### Size limits -`database_metadata` is capped at **16 KiB**. `additional_metadata` is capped at **1 KiB**. See [metadata size limits](/essentials/v2/metadata#stored-metadata) for how HydraDB measures these caps. +`database_metadata` is capped at **16 KiB**. `additional_metadata` is capped at **1 KiB**. See [metadata size limits](/essentials/v2/metadata#size-caps) for how HydraDB measures these caps. Limits apply to the request payload, before merging with stored metadata. An oversized request returns `400` with the actual and maximum sizes: diff --git a/cookbooks/v2/chief-of-staff.mdx b/cookbooks/v2/chief-of-staff.mdx index aa7a5fd9..59639263 100644 --- a/cookbooks/v2/chief-of-staff.mdx +++ b/cookbooks/v2/chief-of-staff.mdx @@ -65,7 +65,7 @@ connect( ## 3. Save decisions as memories -After each meeting or thread, save what was decided as a [memory](/essentials/v2/context#2-save-memories). With `infer: true`, HydraDB extracts the facts and checks them against what the collection already holds, so the October change to the launch date is reconciled with the September decision instead of sitting beside it. +After each meeting or thread, save what was decided as a [memory](/essentials/v2/context#ingesting-memory). With `infer: true`, HydraDB extracts the facts and checks them against what the collection already holds, so the October change to the launch date is reconciled with the September decision instead of sitting beside it. ```python chief_of_staff.py def remember(text): @@ -125,6 +125,6 @@ Keep step 3 in your application: decide what counts as a decision, and save it w ## Next steps -- [Context](/essentials/v2/context#2-save-memories): when to use `infer`, and how to update or delete a memory. +- [Context](/essentials/v2/context#ingesting-memory): when to use `infer`, and how to update or delete a memory. - [Query](/essentials/v2/query): `recency_bias` and `mode`. - [Build your own personal assistant](/cookbooks/v2/personal-assistant): the same memory, for one person's life outside work. diff --git a/cookbooks/v2/glean.mdx b/cookbooks/v2/glean.mdx index b5d1ea07..2f4c81a3 100644 --- a/cookbooks/v2/glean.mdx +++ b/cookbooks/v2/glean.mdx @@ -32,7 +32,7 @@ create_database(DATABASE) ## 2. Connect each app -A [connector](/essentials/v2/connectors) syncs one app account into the collection and keeps it in sync on a schedule. For Slack, Jira, Confluence, and the other providers [that capture permissions](/essentials/v2/connectors#what-each-provider-captures), it also copies the app's permissions into each source's ACL, so a private Slack channel stays private in search. `connect` from `hydra.py` makes the connector calls: create, discover, configure, and status. +A [connector](/essentials/v2/connectors) syncs one app account into the collection and keeps it in sync on a schedule. For Slack, Jira, Confluence, and the other providers [that capture permissions](/essentials/v2/connectors#examples-of-what-each-provider-captures), it also copies the app's permissions into each source's ACL, so a private Slack channel stays private in search. `connect` from `hydra.py` makes the connector calls: create, discover, configure, and status. ```python glean.py connect( @@ -111,7 +111,7 @@ Keep sending `acl` on every query, and leave [`enforce_acl`](/essentials/v2/conn - **Connecting a provider that captures no permissions:** its content is synced unrestricted and reaches every asker. Pass `acl` to `connect` for it. - **Querying without `acl`:** the query returns restricted sources to everyone. Send the user's identity on every query. - **One collection per app or team:** a query that names one collection does not read the others. Keep one collection and narrow with [metadata filters](/essentials/v2/metadata). -- **Group permissions:** an email matches its `domain:` principal automatically, but not groups. Send `group:` principals yourself. See [Query](/essentials/v2/query#6-query-on-behalf-of-a-user). +- **Group permissions:** an email matches its `domain:` principal automatically, but not groups. Send `group:` principals yourself. See [Query](/essentials/v2/query#6-as-an-admin-you-can-query-the-app-on-behalf-of-a-user). ## Next steps diff --git a/cookbooks/v2/personal-assistant.mdx b/cookbooks/v2/personal-assistant.mdx index 3d2cb181..dee6fc98 100644 --- a/cookbooks/v2/personal-assistant.mdx +++ b/cookbooks/v2/personal-assistant.mdx @@ -35,7 +35,7 @@ create_database(DATABASE) ## 2. Remember each session -When a session ends, save its turns as a [memory](/essentials/v2/context#2-save-memories). Send the dialogue as `user_assistant_pairs` with `infer: true`: HydraDB extracts the preferences and facts, including ones that are implied, and reconciles them with what it already holds. Saving session by session is how the LongMemEval run ingested its conversations. +When a session ends, save its turns as a [memory](/essentials/v2/context#ingesting-memory). Send the dialogue as `user_assistant_pairs` with `infer: true`: HydraDB extracts the preferences and facts, including ones that are implied, and reconciles them with what it already holds. Saving session by session is how the LongMemEval run ingested its conversations. ```python assistant.py def remember_session(turns): @@ -146,5 +146,5 @@ The first answer suggests vegetarian options near King's Cross, not Shoreditch. ## Next steps -- [Context](/essentials/v2/context#2-save-memories): `infer`, `custom_instructions`, and deleting a memory. +- [Context](/essentials/v2/context#ingesting-memory): `infer`, `custom_instructions`, and deleting a memory. - [Build your own AI Chief of Staff](/cookbooks/v2/chief-of-staff): the same memory, applied to meetings and commitments. diff --git a/cookbooks/v2/support-agent.mdx b/cookbooks/v2/support-agent.mdx index 32047375..ebb53314 100644 --- a/cookbooks/v2/support-agent.mdx +++ b/cookbooks/v2/support-agent.mdx @@ -63,7 +63,7 @@ wait_indexed(DATABASE, HELP_CENTER, source_ids(result)) ## 3. Remember each conversation -When a conversation ends, save it as a [memory](/essentials/v2/context#2-save-memories) in that customer's collection. With `infer: true`, HydraDB extracts what matters: the customer's plan, what they asked for, what they were told. +When a conversation ends, save it as a [memory](/essentials/v2/context#ingesting-memory) in that customer's collection. With `infer: true`, HydraDB extracts what matters: the customer's plan, what they asked for, what they were told. ```python support.py def remember(customer_id, turns): @@ -136,6 +136,6 @@ Sync the public help center into the shared collection with a [connector](/essen ## Next steps -- [Context](/essentials/v2/context#2-save-memories): `infer` and conversation input. +- [Context](/essentials/v2/context#ingesting-memory): `infer` and conversation input. - [Databases and Collections](/essentials/v2/databases-and-collections): scoping patterns for B2C and B2B. - [Query](/essentials/v2/query#7-use-the-results): combining knowledge and memories in a prompt. diff --git a/docs.json b/docs.json index d866462e..b329bf8c 100644 --- a/docs.json +++ b/docs.json @@ -22,7 +22,7 @@ }, "favicon": "/favicon.png", "markdown": { - "instructions": "AGENTS.md is HydraDB's maintained agent guide. Read https://docs.hydradb.com/AGENTS.md once, then use its content. /llms.txt and /llms-full.txt redirect to the same guide; they are not separate documentation indexes. If the guide is already loaded, continue with it instead of fetching either alias or reloading the guide." + "instructions": "AGENTS.md is HydraDB's maintained agent guide. Read https://docs.hydradb.com/AGENTS.md once, then use its content. /llms.txt carries the same guide; it is not a separate documentation index. If the guide is already loaded, continue with it instead of fetching /llms.txt or reloading the guide." }, "contextual": { "options": [ diff --git a/essentials/v2/connectors.mdx b/essentials/v2/connectors.mdx index ebf4331b..8ffce2a1 100644 --- a/essentials/v2/connectors.mdx +++ b/essentials/v2/connectors.mdx @@ -299,11 +299,11 @@ curl -X POST 'https://api.hydradb.com/connectors/{id}/configure' \ | Property | Set in | Meaning | | --- | --- | --- | | `provider` | create | Which app, such as `slack`. | -| `provider_account_scope` | create | Which account this is, such as a Slack workspace id. It keeps sources from two accounts from overwriting each other. [Set it per provider](#set-the-account-scope-per-provider). | +| `provider_account_scope` | create | Which account this is, such as a Slack workspace id. It keeps sources from two accounts from overwriting each other. [Set it per provider](#6-connecting-several-accountsworkspaces-with-each-connector). | | `credentials` | create | The app's credentials, in the shape of its `credential_schema`. | | `custom_instructions` | create, configure | How to interpret synced documents. See [section 4](#4-custom-ingestion-instructions). | | `sync_interval_seconds` | create | How often it syncs. The default is 1 hour for most providers. | -| `enforce_acl` | create, update | Filter reads by the caller's identity. The default is `false`, and it requires a provider with `acl_supported: true`. See [Enforce ACL](#enforce-acl). | +| `enforce_acl` | create, update | Filter reads by the caller's identity. The default is `false`, and it requires a provider with `acl_supported: true`. See [Enforce ACL](#5-acl-native-rbac-awareness). | | `lookback_days` | configure | How much history the first sync fetches. The default is 30 days. | | `resource_id`, `resource_type`, `name` | configure | Copied from discover. Send all three every time you list a resource. | | `acl` | configure | Who can read the ingested resource. By default ACLs are mirrored from the apps. If you omit it, anyone can read. | @@ -381,6 +381,8 @@ Custom instructions tell HydraDB how to read your synced documents and what to l This is the best part about using managed connectors. You don't have to worry about the infrastructure and all permissions automatically come with the data. + + `enforce_acl: true` filters reads by the authenticated caller's identity and ignores any request `acl` for this connector's content. ### Examples of what each provider captures @@ -392,7 +394,7 @@ This is the best part about using managed connectors. You don't have to worry ab and so forth. For other providers, check `acl_supported` in the [provider catalog](/api-reference/v2/endpoint/list-connector-providers). For other providers that don't you can [set your own rule on the resource](#set-your-own-rule-on-a-resource). - While `enforce_acl` is `false` (the default), a request without `acl` is **not** filtered by caller identity. Either send identity in `acl`, or turn on [enforcement](#enforce-acl) if you want to set this manually. + While `enforce_acl` is `false` (the default), a request without `acl` is **not** filtered by caller identity. Either send identity in `acl`, or turn on [enforcement](#5-acl-native-rbac-awareness) if you want to set this manually. ### Set your own rule on a resource diff --git a/essentials/v2/context.mdx b/essentials/v2/context.mdx index c4f55775..e7de0d17 100644 --- a/essentials/v2/context.mdx +++ b/essentials/v2/context.mdx @@ -77,7 +77,7 @@ There are two ways to ingest knowledge/context | `id` | Your stable ID for the file, and the upsert key. Send the same `id` later to replace the file, or use it to check status and delete. Leave it out to have one generated; the response returns it either way. | | `metadata` | Values you filter on at query time, such as `document_type`. Declare the keys in the database's [metadata schema](/essentials/v2/metadata). Up to 16 KiB as compact JSON. | | `additional_metadata` | Free-form values for display and bookkeeping. Filterable only when nested under `additional_metadata` in `metadata_filters`. Up to 1 KiB as compact JSON. | -| `relations` | Other sources this file belongs with, as `{ "ids": [...] }`. See [Link documents that belong together](#6-link-sources-that-belong-together). | +| `relations` | Other sources this file belongs with, as `{ "ids": [...] }`. See [Link documents that belong together](#link-sources-explicitlypragmaticallydeterministically). | ### Spreadsheets become queryable tables @@ -213,12 +213,14 @@ To change a source, send it again with the same `id`. `upsert` defaults to `true To remove one, call [`DELETE /context`](/api-reference/v2/endpoint/delete-source) with its `id` and the same `collection`. + + ## Link sources explicitly/pragmatically/deterministically You can declare links and relations between sources using `explicit_relations` that you want to explicitly link together. HydraDB returns these explicitly linked sources in the `additional_context` field of the response, alongside the primary response. This is separate from the relations in the context graph HydraDB builds on its own. -On a file, set `relations.ids` on its `document_metadata` item. On an app source, set `relations.ids` the same way, and name the relationship in `app_relations` so the link also carries a predicate. `relations.ids` is what makes the linked text come back with query results; a named relationship alone connects the sources without requesting their text. +On a file, set `relations.ids` on its `document_metadata` item. `relations.ids` is what makes the linked text come back with query results. `query_explicit_relations` defaults to `true`; set it to `false` to skip the linked sources. diff --git a/essentials/v2/databases-and-collections.mdx b/essentials/v2/databases-and-collections.mdx index cab276ac..85b5f869 100644 --- a/essentials/v2/databases-and-collections.mdx +++ b/essentials/v2/databases-and-collections.mdx @@ -54,6 +54,6 @@ Knowledge written with one user's `collection` is invisible to every other user. ## Related -- [Context](/essentials/v2/context#2-save-memories): preferences, decisions, and past conversations +- [Context](/essentials/v2/context#ingesting-memory): preferences, decisions, and past conversations - [Query](/essentials/v2/query): how scoping is applied at query time - [Databases API](/api-reference/v2/endpoint/databases-overview): creating databases and their metadata schema diff --git a/essentials/v2/query.mdx b/essentials/v2/query.mdx index 3651db60..1594cbc9 100644 --- a/essentials/v2/query.mdx +++ b/essentials/v2/query.mdx @@ -134,7 +134,7 @@ The following sample request searches the `acme_corp` database. - `data.llm_prompt`**:** the query and the entire response to the query in one markdown file, complete with citations, that your agents can easily read. - `data.chunks`**:** the matching chunks from the graph, ranked by relevance, each with its source `id`, `chunk_content`, `source_title`, `relevancy_score`, and `metadata`. -- **`data.graph_context`** and `data.additional_context`**:** relationships and linkages, covered in [section 5](#5-add-relationships). +- **`data.graph_context`** and `data.additional_context`**:** relationships and linkages, covered in [section 5](#5-understanding-relationships-in-your-context). - `data.tabular_data`**:** `null` for a document question. Present in thinking mode when the collection holds spreadsheets and the question is about them: a computed answer (`status: "ok"`) with `columns`, `records`, `sources` and `citations`, or a decline (`status: "not_applicable"`) when the question is not about the tables. See [Ask questions over spreadsheets](#ask-questions-over-spreadsheets). ### Ask questions over spreadsheets @@ -265,7 +265,6 @@ Table answers run in thinking mode only; `"fast"` returns the ranked chunks with - `query_explicit_relations`**:** Links you declared explicitly during ingestion are returned in `data.additional_context`. Explicit relations are returned thinking mode only. - **`query_apps`:** for content synced by [connectors](/essentials/v2/connectors), an extra lane that rebuilds Slack threads, follows ticket and parent links, and matches exact ids and people. It still searches everything else, and has no effect on memories. - ## 6. As an admin you can query the app on behalf of a user diff --git a/get-started/v2/introduction.mdx b/get-started/v2/introduction.mdx index 2e492340..ef05810b 100644 --- a/get-started/v2/introduction.mdx +++ b/get-started/v2/introduction.mdx @@ -60,7 +60,7 @@ See the full technical breakdown of each run in our [benchmarks](https://benchma ## Easiest way to get started 1. Sign up at [dashboard.hydradb.com](https://dashboard.hydradb.com) and get your API key. -2. Point your coding agents to [https://docs.hydradb.com/AGENTS.md](https://docs.hydradb.com/AGENTS.md). +2. Point your coding agents to [docs.hydradb.com/AGENTS.md](https://docs.hydradb.com/AGENTS.md). 3. Describe the "brain" or context graph you want your agents to build. Explore cookbooks for inspiration. The [Quickstart](/get-started/v2/quickstart) takes you from an empty database to your first query in five minutes. diff --git a/llms.txt b/llms.txt index 297d8157..2b287858 100644 --- a/llms.txt +++ b/llms.txt @@ -1,139 +1,1362 @@ -# HydraDB Documentation - -> Documentation for HydraDB's supported v2 API, SDKs, integrations, and cookbooks. Legacy v1 pages are listed separately and aren't compatible with current SDK installs. - -Start with the v2 quickstart. The Agent Integration Guide explains the API contract; this index lists every non-archive documentation page, including linked detail pages outside the navigation. - -## Current v2 documentation - -- [HydraDB Agent Integration Guide](https://docs.hydradb.com/AGENTS.md) -- [Add Connector Resource](https://docs.hydradb.com/api-reference/v2/endpoint/add-connector-resource.md) -- [Configure Connector](https://docs.hydradb.com/api-reference/v2/endpoint/configure-connector.md) -- [List Connector Resources](https://docs.hydradb.com/api-reference/v2/endpoint/connector-resources.md) -- [Connectors: Overview](https://docs.hydradb.com/api-reference/v2/endpoint/connectors-overview.md) -- [Context: Overview](https://docs.hydradb.com/api-reference/v2/endpoint/context-overview.md) -- [Create Connector](https://docs.hydradb.com/api-reference/v2/endpoint/create-connector.md) -- [Create Database](https://docs.hydradb.com/api-reference/v2/endpoint/create-database.md) -- [Database Stats](https://docs.hydradb.com/api-reference/v2/endpoint/database-stats.md) -- [Database Status](https://docs.hydradb.com/api-reference/v2/endpoint/database-status.md) -- [Databases: Overview](https://docs.hydradb.com/api-reference/v2/endpoint/databases-overview.md) -- [Delete Collection](https://docs.hydradb.com/api-reference/v2/endpoint/delete-collection.md) -- [Delete Connector](https://docs.hydradb.com/api-reference/v2/endpoint/delete-connector.md) -- [Delete Connector Resource](https://docs.hydradb.com/api-reference/v2/endpoint/delete-connector-resource.md) -- [Delete Database](https://docs.hydradb.com/api-reference/v2/endpoint/delete-database.md) -- [Delete Context](https://docs.hydradb.com/api-reference/v2/endpoint/delete-source.md) -- [Delete Webhook](https://docs.hydradb.com/api-reference/v2/endpoint/delete-webhook.md) -- [Disable Signing](https://docs.hydradb.com/api-reference/v2/endpoint/disable-webhook-signing.md) -- [Discover Resources](https://docs.hydradb.com/api-reference/v2/endpoint/discover-connector-resources.md) -- [Inspect Context](https://docs.hydradb.com/api-reference/v2/endpoint/fetch-content.md) -- [Get Connector](https://docs.hydradb.com/api-reference/v2/endpoint/get-connector.md) -- [Get Connector Status](https://docs.hydradb.com/api-reference/v2/endpoint/get-connector-status.md) -- [Get Metadata Schema](https://docs.hydradb.com/api-reference/v2/endpoint/get-metadata-schema.md) -- [Get Webhook](https://docs.hydradb.com/api-reference/v2/endpoint/get-webhook.md) -- [Get Delivery](https://docs.hydradb.com/api-reference/v2/endpoint/get-webhook-delivery.md) -- [Ingest Context](https://docs.hydradb.com/api-reference/v2/endpoint/ingest-context.md) -- [List Collections](https://docs.hydradb.com/api-reference/v2/endpoint/list-collections.md) -- [List Connector Providers](https://docs.hydradb.com/api-reference/v2/endpoint/list-connector-providers.md) -- [List Connectors](https://docs.hydradb.com/api-reference/v2/endpoint/list-connectors.md) -- [List Context](https://docs.hydradb.com/api-reference/v2/endpoint/list-context.md) -- [List Databases](https://docs.hydradb.com/api-reference/v2/endpoint/list-databases.md) -- [List Deliveries](https://docs.hydradb.com/api-reference/v2/endpoint/list-webhook-deliveries.md) -- [Pause Connector](https://docs.hydradb.com/api-reference/v2/endpoint/pause-connector.md) -- [Query](https://docs.hydradb.com/api-reference/v2/endpoint/query.md) -- [Query: Overview](https://docs.hydradb.com/api-reference/v2/endpoint/query-overview.md) -- [Register Webhook](https://docs.hydradb.com/api-reference/v2/endpoint/register-webhook.md) -- [Resume Connector](https://docs.hydradb.com/api-reference/v2/endpoint/resume-connector.md) -- [Retry Delivery](https://docs.hydradb.com/api-reference/v2/endpoint/retry-webhook-delivery.md) -- [Set Signing Secret](https://docs.hydradb.com/api-reference/v2/endpoint/set-webhook-signing-secret.md) -- [Inspecting Context Relations](https://docs.hydradb.com/api-reference/v2/endpoint/source-relations.md) -- [Ingestion Status](https://docs.hydradb.com/api-reference/v2/endpoint/source-status.md) -- [Connected Subgraph](https://docs.hydradb.com/api-reference/v2/endpoint/subgraph.md) -- [Submit Feedback](https://docs.hydradb.com/api-reference/v2/endpoint/submit-feedback.md) -- [Sync Connector](https://docs.hydradb.com/api-reference/v2/endpoint/sync-connector.md) -- [Send Test Delivery](https://docs.hydradb.com/api-reference/v2/endpoint/test-webhook.md) -- [Update Connector](https://docs.hydradb.com/api-reference/v2/endpoint/update-connector.md) -- [Update Connector Resource](https://docs.hydradb.com/api-reference/v2/endpoint/update-connector-resource.md) -- [Update Metadata Schema](https://docs.hydradb.com/api-reference/v2/endpoint/update-metadata-schema.md) -- [Update Source Metadata](https://docs.hydradb.com/api-reference/v2/endpoint/update-source-metadata.md) -- [Webhooks: Overview](https://docs.hydradb.com/api-reference/v2/endpoint/webhooks-overview.md) -- [Error Responses](https://docs.hydradb.com/api-reference/v2/error-responses.md) -- [API Reference](https://docs.hydradb.com/api-reference/v2/index.md) -- [SDKs: Python and TypeScript](https://docs.hydradb.com/api-reference/v2/sdks.md) -- [Build your own AI Chief of Staff](https://docs.hydradb.com/cookbooks/v2/chief-of-staff.md) -- [Build your own competitive intelligence agent](https://docs.hydradb.com/cookbooks/v2/competitive-intelligence.md) -- [Build your own Cursor](https://docs.hydradb.com/cookbooks/v2/cursor.md) -- [Build your own Glean](https://docs.hydradb.com/cookbooks/v2/glean.md) -- [Cookbooks](https://docs.hydradb.com/cookbooks/v2/index.md) -- [Build your own personal assistant](https://docs.hydradb.com/cookbooks/v2/personal-assistant.md) -- [Build your own customer support agent](https://docs.hydradb.com/cookbooks/v2/support-agent.md) -- [Bring Your Own Graph (BYOG)](https://docs.hydradb.com/essentials/v2/bring-your-own-graph.md) -- [Connectors](https://docs.hydradb.com/essentials/v2/connectors.md) -- [Context](https://docs.hydradb.com/essentials/v2/context.md) -- [Databases and Collections](https://docs.hydradb.com/essentials/v2/databases-and-collections.md) -- [Metadata Filters](https://docs.hydradb.com/essentials/v2/metadata.md) -- [Query](https://docs.hydradb.com/essentials/v2/query.md) -- [Introduction](https://docs.hydradb.com/get-started/v2/introduction.md) -- [Quickstart](https://docs.hydradb.com/get-started/v2/quickstart.md) -- [CLI](https://docs.hydradb.com/plugins/cli.md) -- [Plugins](https://docs.hydradb.com/plugins/ecosystem.md) -- [MCP](https://docs.hydradb.com/plugins/mcp.md) - -## Integration and connector details - -- [Claude Code](https://docs.hydradb.com/plugins/claude-code.md) -- [Codex](https://docs.hydradb.com/plugins/codex.md) -- [CrewAI](https://docs.hydradb.com/plugins/crewai.md) -- [Cursor](https://docs.hydradb.com/plugins/cursor.md) -- [DeepSeek Harness](https://docs.hydradb.com/plugins/deepseek.md) -- [Grok Build](https://docs.hydradb.com/plugins/grok-build.md) -- [Hermes](https://docs.hydradb.com/plugins/hermes.md) -- [LangChain](https://docs.hydradb.com/plugins/langchain.md) -- [Muse Code](https://docs.hydradb.com/plugins/muse-code.md) -- [OpenClaw](https://docs.hydradb.com/plugins/openclaw.md) -- [OpenCode](https://docs.hydradb.com/plugins/opencode.md) - -## Site information - -- [Continuity Assurance](https://docs.hydradb.com/continuity-assurance.md) - -## Legacy v1 reference (not maintained) - -- [Add Memory](https://docs.hydradb.com/api-reference/endpoint/add-memory.md) -- [Boolean Recall](https://docs.hydradb.com/api-reference/endpoint/boolean-recall.md) -- [Create Tenant](https://docs.hydradb.com/api-reference/endpoint/create-tenant.md) -- [Delete Knowledge](https://docs.hydradb.com/api-reference/endpoint/delete-knowledge.md) -- [Delete Memory](https://docs.hydradb.com/api-reference/endpoint/delete-memory.md) -- [Delete Tenant](https://docs.hydradb.com/api-reference/endpoint/delete-tenant.md) -- [Fetch Content](https://docs.hydradb.com/api-reference/endpoint/fetch-content.md) -- [Full Recall](https://docs.hydradb.com/api-reference/endpoint/full-recall.md) -- [Graph Relations By Source ID](https://docs.hydradb.com/api-reference/endpoint/graph-relations.md) -- [Check Infra Status](https://docs.hydradb.com/api-reference/endpoint/infra-status.md) -- [Ingestion - Overview](https://docs.hydradb.com/api-reference/endpoint/ingestion-overview.md) -- [List Data](https://docs.hydradb.com/api-reference/endpoint/list-data.md) -- [List – Overview](https://docs.hydradb.com/api-reference/endpoint/list-overview.md) -- [List Sub-Tenant IDs](https://docs.hydradb.com/api-reference/endpoint/list-sub-tenant-ids.md) -- [List Tenant IDs](https://docs.hydradb.com/api-reference/endpoint/list-tenant-ids.md) -- [Memories – Overview](https://docs.hydradb.com/api-reference/endpoint/memories-overview.md) -- [Monitor Tenant](https://docs.hydradb.com/api-reference/endpoint/monitor-tenant.md) -- [Recall – Overview](https://docs.hydradb.com/api-reference/endpoint/recall-overview.md) -- [Recall Preferences](https://docs.hydradb.com/api-reference/endpoint/recall-preferences.md) -- [Tenants – Overview](https://docs.hydradb.com/api-reference/endpoint/tenants-overview.md) -- [Upload Knowledge](https://docs.hydradb.com/api-reference/endpoint/upload-knowledge.md) -- [Verify Processing](https://docs.hydradb.com/api-reference/endpoint/verify-processing.md) -- [Error Responses](https://docs.hydradb.com/api-reference/error-responses.md) -- [API Reference](https://docs.hydradb.com/api-reference/index.md) -- [SDKs – Node and Python](https://docs.hydradb.com/api-reference/sdks.md) -- [How to Use API Results](https://docs.hydradb.com/essentials/api-results.md) -- [App Sources](https://docs.hydradb.com/essentials/app-sources.md) -- [Architecture](https://docs.hydradb.com/essentials/architecture.md) -- [Context Graphs](https://docs.hydradb.com/essentials/context-graphs.md) -- [Knowledge](https://docs.hydradb.com/essentials/knowledge.md) -- [Memories](https://docs.hydradb.com/essentials/memories.md) -- [Metadata](https://docs.hydradb.com/essentials/metadata.md) -- [Multi-Tenant Support](https://docs.hydradb.com/essentials/multi-tenant.md) -- [Recall](https://docs.hydradb.com/essentials/recall.md) -- [Semantic Search & Retrieval](https://docs.hydradb.com/essentials/semantic-search.md) -- [Webhooks](https://docs.hydradb.com/essentials/webhooks.md) -- [Core Concepts](https://docs.hydradb.com/get-started/core-concepts.md) -- [Introduction](https://docs.hydradb.com/get-started/introduction.md) -- [Quickstart](https://docs.hydradb.com/get-started/quickstart.md) +# Complete Agent Integration Guide + +> The one page an AI coding agent reads before writing a HydraDB v2 integration: rules, API contracts, and runnable examples. + +This is the complete, maintained agent guide. Continue with the sections below; no separate documentation-index fetch is needed. + +### TL;DR: Critical endpoints + +1. **`POST /databases`** (`client.databases.create()`): Create an isolated database. Creation is asynchronous. +2. **`GET /databases/status`** (`client.databases.status()`): Poll until `infra.ready_for_ingestion` is true before you ingest or query. +3. **`POST /context/ingest`** (`client.context.ingest()`): Ingest files or memories with `type="knowledge"` or `type="memory"`. Indexing is asynchronous. +4. **`GET /context/status`** (`client.context.status()`): Poll by `ids` until `indexing_status` is `completed` before you query. `graph_creation` means the source is becoming searchable while its graph builds, but a query sent the moment it appears can still miss the source. `errored` means indexing failed: read `error_code` and `error_message`. Details in [7. Context status and lifecycle](#7-context-status-and-lifecycle). +5. **`POST /query`** (`client.query()`): Retrieve chunks with `type: "knowledge"`, `"memory"`, or `"all"`. +6. **`POST /feedback`** (`client.feedback.submit()`): Tell us when a query did not give you what you needed, and once the task is done, how the context held up. See [Sending feedback](#sending-feedback). + +Every other endpoint and SDK method is in [15. SDK method reference](#15-sdk-method-reference). + +--- + +## 1. Critical rules for LLMs + +### API versioning and auth + +- Base URL: `https://api.hydradb.com` +- Raw HTTP calls must include: + - `Authorization: Bearer ` + - `API-Version: 2` +- Official SDKs set `API-Version: 2` automatically. +- Use `HYDRADB_API_KEY` as the environment variable in examples. + +### Response envelope + +Raw HTTP responses are wrapped: + +```json +{ + "success": true, + "data": {}, + "error": null, + "meta": { + "request_id": "...", + "latency_ms": 12.3 + } +} +``` + +- Read the payload from `data`, never from the top level. This applies to `/databases`, `/context/*`, `/query`, `/feedback`, and the webhook management endpoints (`/webhooks/indexing*`). +- The SDKs do not unwrap it: they return the full envelope object, so read `response.data` (for example `response.data.infra`, `response.data.statuses`, `response.data.results`). On failure they raise a typed exception instead of returning an envelope with `error` set. +- Exceptions: connector endpoints (`/connectors*`) and `PATCH /databases/{database}/metadata-schema` return their success body directly, without the envelope. In the SDKs that is every `connectors.*` method, `list_providers()`, and `update_metadata_schema()`. Their errors still use the envelope. +- Log `meta.request_id` for failed requests. +- Treat `meta` as an open object: ignore keys you do not recognize. +- `meta` carries an optional `deprecation` list (with a `Deprecation: true` response header) when a request uses a legacy tenants route (any path under /tenants) or a deprecated field (`tenant_id`/`sub_tenant_id`, or `sub_tenant_ids` on `/query`). It is a non-breaking nudge: the status code is unchanged. Every entry has `deprecated`, `message`, and `deprecated_since`. `deprecated_field` and `preferred_field` are **optional**: the `sub_tenant_ids` notice on `/query` carries them, the `tenant_id`/`sub_tenant_id` notice does not. Read `message` for the migration, and do not key logic off the two optional fields. To avoid the notice, use the `/databases` routes and the `database`/`collection`/`collections` fields. + +### Query parameter naming + +`type` selects the store on `POST /query` and on the context lifecycle APIs: `"knowledge"`, `"memory"`, or `"all"` for both. `POST /context/ingest` takes `"knowledge"` or `"memory"` only. + +### Metadata naming + +- `metadata`: schema-aligned fields, declared at database creation; the fast filter path. Filter on them with top-level `metadata_filters` keys. +- `additional_metadata`: free-form fields; anything not in the `metadata` schema. Filter on them with `metadata_filters.additional_metadata`. +- Set both per source on `/context/ingest`: on each `document_metadata[]` item (file uploads) or each memory item. There is no top-level `metadata` or `additional_metadata` form field. + +Schema fields, placement, and filter operators are in [10. Metadata guide](#10-metadata-guide). + +### Do not mix scopes accidentally + +- `database` (formerly `tenant_id`) is the hard isolation boundary. +- `collection` (formerly `sub_tenant_id`) is an optional group inside a database. Use separate collections only for context that must never meet in one query, such as each user's memories. Otherwise (for example, a company brain) keep all knowledge and connectors in one collection and isolate results with `metadata_filters` and `acl`. Patterns are in [Databases and collections](#databases-and-collections). +- Use the same `collection` on writes, status checks, and reads. Context written under one collection does not appear in a query that names another. + +### Send `acl` on user queries + +- If your application answers on behalf of signed-in users, send the caller's identity as `acl` on every `POST /query`, for example `"acl": ["grace@acme.com"]`. +- A query with no `acl`, `[]`, or `["*"]` is not filtered: it returns everything in scope, including sources restricted to other people. +- Derive `acl` from your authenticated session, never from client input. See [Access control](#access-control). +- Do not turn on a connector's `enforce_acl` for an application that serves many users through one API key. With `enforce_acl` on, HydraDB ignores the request's `acl` for that connector's content and uses the email of whoever created the API key, so every user sees what the key's creator may see. Leave it off and send `acl` yourself. +- Under `enforce_acl`, the identity comes from authentication: an API key or pasted-key MCP uses the key creator's email, and MCP OAuth and the dashboard use the signed-in user. A request `acl` still scopes content from non-enforced connectors. +- If you send `acl` and an enforced connector ignores it, a successful response includes one `meta.warnings` entry with code `acl_ignored_by_connector_enforcement`. Treat it as a signal that your `acl` did not apply to that content. + +### Sending feedback + +`POST /feedback` (`client.feedback.submit()`) records how a query performed. It is optional, and there is no penalty for skipping it. You are the only party that knows whether the retrieved context answered the question, and that judgement is what tunes retrieval. + +Send it when you have something specific to report: + +- **A query did not give you what you needed:** nothing relevant came back, the top result was wrong, or you had to fall back to another source. One report on a query that disappointed you is worth far more than a stream of routine ones. +- **A query worked well:** `rating: "positive"` tells us what to preserve. +- **The task is finished (recommended):** send one short report on how the context performed. See [End-of-task report](#end-of-task-report). + +Rules: + +- **Take `request_id` from the query's own response. Never invent one.** It is in `meta.request_id` and in the `X-Request-ID` response header. Send it back **verbatim**: an ID you made up, or one from another query, correlates to nothing. +- Set `source: "agent"`. It separates your reports from human ones, which fail in different ways. +- Say **what** was wrong, not that something was wrong. "Returned the 2023 policy, current one is in the Q3 handbook" is actionable; "bad results" is not. +- Do not block the user on it. Feedback is fire-and-forget: if the **feedback call itself** fails, drop it and carry on. Never retry in a loop, and never surface that error to the user. +- Catch broadly, so that **nothing** escapes. Narrowing to the SDK error type would still let a timeout or a DNS failure surface an error the user cannot act on, from a call they did not ask for. +- Feedback never changes the query's result. It is a signal, not a correction, and you cannot read it back. +- Each submission is its own record. A second report about the same query adds to the first instead of replacing it, so refine as you learn more. + +```python +result = client.query(database="acme_corp", query="What is our refund policy?") + +# ... use result.data.chunks to answer the user ... + +try: + client.feedback.submit( + request_id=result.meta.request_id, + feedback="Top chunk was the 2023 policy; the current one is in the Q3 handbook.", + rating="negative", + source="agent", + database="acme_corp", + ) +except Exception: + pass # fire-and-forget: a failed report must never reach the user +``` + +#### End-of-task report + +At the end of the task you know what you could not know at query time: whether a chunk that looked plausible turned out to be stale, contradicted by another source, or never used at all. A single report then is worth more than one per query, and `rating: "positive"` is as valuable as a negative one, because you know which part of the context did the work. + +Make the report stand on its own. We see only a `request_id` and the prose you send, nothing about what you were doing. Worth a sentence each: + +- What the user was trying to do. +- Which chunks carried the answer, and which you discarded and why. +- Whether you had to go outside HydraDB to finish, and what was missing when you did. + +```python +try: + client.feedback.submit( + request_id=result.meta.request_id, # from the query you are reporting on + source="agent", + rating="positive", + feedback=( + "Task: user asked which refund window applies to EU orders. " + "Chunks 1 and 3 (Q3 handbook) carried the answer. Chunk 2 was the " + "2023 policy and was discarded as superseded. No outside sources needed." + ), + database="acme_corp", + ) +except Exception: + pass # fire-and-forget, exactly as above +``` + +#### Ground truth + +**If you know the right answer, send it as `ground_truth`.** When you run against a labelled set, or you know which source should have been returned, that is a far stronger signal than a comment, because it can be scored without a human reading it. With `ground_truth` present, `feedback` prose is optional: + +```python +try: + client.feedback.submit( + request_id=result.meta.request_id, + source="agent", + ground_truth={ + "answer": expected_answer, # what a correct response looks like + "source_ids": ["policy_2024"], # sources that actually contain it + }, + ) +except Exception: + pass +``` + +Send `answer`, `source_ids`, or both. Do **not** guess: only send ground truth you have. A fabricated answer key is worse than none, because it is scored as if it were true. + +#### Failed requests are not feedback + +**"Did not give me what I needed" is not the same as "errored".** A query that returned `200` with unhelpful results is what this endpoint is for. A query that never returned (`4xx`/`5xx`, or the SDK raised) is not: a failed request has no retrieval result to judge. Fix the request instead: a `404` means the database name is wrong, a `429` means back off, a `400` means the body was malformed. + +#### Request fields and limits + +| Field | Required | Notes | +|---|---|---| +| `request_id` | yes | The UUID from that query's `meta.request_id`, verbatim | +| `feedback` | yes* | What was right or wrong, up to 8000 chars. *Optional if `ground_truth` is sent | +| `rating` | no | `positive`, `negative`, `neutral`. Omitting it is not the same as `neutral` | +| `source` | no | `user` (default) or `agent`. Agents set `"agent"` | +| `database` / `collection` | no | Optional scoping; `collection` requires `database` | +| `ground_truth` | no | `{ answer, source_ids }`: what the right answer was, when you know it. Makes `feedback` optional | +| `metadata` | no | Up to 20 string pairs of your own context (agent name, conversation id) | + +Limit: 100 submissions per minute per organization, far above what reporting only the queries that fell short reaches. If you do hit `429`, honour `Retry-After` or skip that report. Never spin. + +--- + +## 2. Core primitives + +### Databases and collections + +Scoping rules are in [Do not mix scopes accidentally](#do-not-mix-scopes-accidentally). Recommended patterns: + +| Use case | Pattern | +|---|---| +| Company brain | one `database`, one collection for all documents and connectors; isolate with `metadata_filters` and `acl` | +| B2B SaaS | one `database` per customer; one collection for that customer's knowledge; isolate teams with `metadata_filters` and `acl` | +| B2C app | one `database`; shared knowledge in one collection; `collection = user_id` for each user's memories | +| Environment isolation | separate `database`s for prod/staging | +| User memories | `collection = user_id`, and the same collection on every read | + +### Knowledge + +Knowledge is the documents and facts your AI reasons over: PDFs, Markdown, and CSVs you upload, plus Slack threads, Notion pages, Gmail threads, tickets, and other content that [connectors](#connectors) sync from your apps. Ingest and query it with `type: "knowledge"`. + +- It can be private: restrict sources with `acl` (see [Access control](#access-control)). +- Mutability is explicit: re-ingest with the same ID and `upsert: true`, edit metadata in place with `PATCH /context/{id}/metadata`, or delete. + +### Memories + +Memories are preferences, decisions, past conversations, behavioral signals, and inferred traits. Ingest them with `type: "memory"` into the collection you will query them from, and query with `type: "memory"` or `type: "all"`. Item fields, including `infer`, are in [6. Source ingestion](#6-source-ingestion). + +### Query + +`POST /query` is the single retrieval endpoint for knowledge, memories, or both. Fields, recommended configurations, and the response shape are in [8. Query API](#8-query-api). + +### Context graph + +HydraDB builds a graph of entity/relation triplets from ingested content. When `graph_context: true` (default), a query can return: + +- `graph_context.query_paths` +- `graph_context.chunk_relations` +- `graph_context.chunk_id_to_group_ids` + +Graph context augments the result; it does not replace `chunks`. + +### Explicit relations + +Explicit relations are links you declare between sources at ingest: + +```json +{ + "relations": { + "ids": ["related-item-1", "related-item-2"], + "properties": { "reason": "same thread" } + } +} +``` + +- Use `ids`. +- Declare `relations` on `document_metadata[]` items. They link knowledge sources; memory items do not take `relations`. +- A query pulls the related chunks into `data.additional_context` only in `mode: "thinking"` with `query_explicit_relations: true` (the default). + +### Access control + +A source's `acl` lists who may retrieve it; a query's `acl` says who is asking. The query-side rule is in [Send `acl` on user queries](#send-acl-on-user-queries). + +- Set `acl` on any existing source with `PATCH /context/{id}/metadata`, where it replaces the stored list. +- Connectors copy permissions from Slack, Google Drive, GitHub, Confluence, Jira, and other providers on every sync. +- Principals: an email (`grace@acme.com`), `domain:acme.com`, `group::`, or `__public__`. +- On a query, the caller's email also matches its `domain:` principal and `__public__` automatically. Group membership is never derived from an email; send `group:` principals yourself. +- A source with no `acl` is unrestricted. + +Example: a source with `"acl": ["grace@acme.com"]` comes back for a query with `"acl": ["grace@acme.com"]` and stays hidden from `"acl": ["bob@acme.com"]`. A source with `"acl": ["domain:acme.com"]` comes back for both. + +### Connectors + +Connectors sync context from 70+ apps, including Slack, Gmail, Google Drive, Notion, Jira, Confluence, GitHub, Linear, HubSpot, and Zendesk, into a database on a schedule, with no ingestion code. Indexing is permission-aware: for providers with `acl_supported: true`, each synced source carries the provider's own access rules. App content reaches HydraDB through connectors; `GET /connectors/providers` lists the catalog. + +Setup is four calls, made once: + +1. `GET /connectors/providers?id={provider}`: read `credential_schema`, the credentials it needs. +2. `POST /connectors`: store the credentials, with `database` and `collection`. +3. `GET /connectors/{id}/discover`: list the channels, repositories, or pages the credentials reach. +4. `POST /connectors/{id}/configure`: choose resources; the first sync starts right away. + +Then poll `GET /connectors/{id}/status` until `lifecycle` is `active`, and query as usual. Syncs repeat every `sync_interval_seconds` (one hour by default). + +```python +connector = client.connectors.create( + provider="slack", + database="acme_corp", + collection="company_docs", + provider_account_scope="T12345ACME", + credentials={"access_token": "xoxp-..."}, +) +found = client.connectors.discover(connector.connector_id) +client.connectors.configure( + connector.connector_id, + resources=[ + {"resource_id": r.id, "resource_type": r.resource_type, "name": r.name} + for r in found.resources + ], +) +status = client.connectors.status(connector.connector_id) +``` + +```ts +const connector = await client.connectors.create({ + provider: "slack", + database: "acme_corp", + collection: "company_docs", + providerAccountScope: "T12345ACME", + credentials: { access_token: "xoxp-..." }, +}); +const id = connector.connectorId!; +const found = await client.connectors.discover({ id }); +await client.connectors.configure({ + id, + resources: (found.resources ?? []).map((r) => ({ + resourceId: r.id!, + resourceType: r.resourceType, + name: r.name, + })), +}); +const status = await client.connectors.status({ id }); +``` + +Rules: + +- To change one resource, use `PATCH /connectors/{id}/resources/{resource_id}`. `POST /connectors/{id}/resources` adds new resources only: on an existing resource it returns `409` and changes nothing. +- Every synced source carries `connector_id` and `provider` in `metadata`, and `connector_id` and `resource_id` in `additional_metadata`; filter on them to scope a query. +- `custom_instructions` on the connector or one resource tells HydraDB how to read its documents, from the next sync on. + +### Bring Your Own Graph (BYOG) + +To build and query your own graph in Cypher, for example when migrating from Neo4j or another Cypher-compatible store, use the `/byog` endpoints instead of `/context/ingest`: + +| Endpoint | Purpose | +| --- | --- | +| `POST /byog/databases` | Create a database; ready immediately. Returns `409` if the name exists | +| `POST /byog/query` | Run Cypher against one `collection`, with user data in `params` | +| `GET /byog/collections` | List a database's graph collections | +| `DELETE /byog/collections` | Drop one collection | +| `DELETE /byog/databases` | Drop a database | + +- Each collection is an isolated graph, created on first write. Reading one that does not exist yet returns zero rows. +- Pass user data through `params`, never by building it into the query string. +- Procedure calls (`CALL db.*`, `CALL apoc.*`) and `LOAD CSV` are not supported. +- Limits: 256 KiB request body (`413`), 8 s for reads and 30 s for writes (`400` on timeout). Rows beyond the result-set cap are silently dropped, so paginate large reads. +- Agents can run the same Cypher through the HydraDB MCP graph tools: `hydradb_graph_query`, `hydradb_graph_collections`, and `hydradb_graph_admin`. + +Full guide: `https://docs.hydradb.com/essentials/v2/bring-your-own-graph`. + +--- + +## 3. Installation and client setup + +### Python SDK + +```bash +pip install "hydradb-sdk>=2,<3" +``` + +```python +import os +from hydra_db import HydraDB + +client = HydraDB(token=os.environ["HYDRADB_API_KEY"]) +``` + +Async client: + +```python +import os +from hydra_db import AsyncHydraDB + +client = AsyncHydraDB(token=os.environ["HYDRADB_API_KEY"]) +``` + +### TypeScript SDK + +```bash +npm install @hydradb/sdk@^2 +``` + +```ts +import { HydraDBClient } from "@hydradb/sdk"; + +const client = new HydraDBClient({ + token: process.env.HYDRADB_API_KEY, +}); +``` + +SDK naming: + +- Python methods and fields are snake_case: `databases.get_metadata_schema()`, `page_size`, `query_by`. +- TypeScript methods and fields are camelCase: `databases.getMetadataSchema()`, `pageSize`, `queryBy`. +- Values passed as JSON strings (`memories`, `document_metadata`) keep snake_case keys inside the stringified payload in both SDKs, because that is raw wire data. + +--- + +## 4. Minimal end-to-end flow + +### Python + +```python +import json +import os +import time +from hydra_db import HydraDB + +client = HydraDB(token=os.environ["HYDRADB_API_KEY"]) +database = "my_first_database" + +# 1. Create database. +client.databases.create(database=database) + +# 2. Wait until the database can accept data. +while True: + status = client.databases.status(database=database) + if status.data.infra.ready_for_ingestion: + break + time.sleep(5) + +# 3. Ingest a user memory. +ingest = client.context.ingest( + type="memory", + database=database, + collection="user_alex", + memories=json.dumps([ + { + "id": "user_alex_pref_001", + "text": "User prefers detailed technical explanations and dark mode.", + "infer": True, + "user_name": "Alex", + } + ]), +) + +ingest_id = ingest.data.results[0].id + +# 4. Wait until searchable. +while True: + status = client.context.status( + database=database, + collection="user_alex", + ids=[ingest_id], + ).data.statuses[0] + + if status.indexing_status == "completed": + break + if status.indexing_status == "errored": + # A wrong database/collection reports "errored" too, with FILE_NOT_FOUND. + # error_message is "" in that case, so branch on the code, not the text. + if status.error_code == "FILE_NOT_FOUND": + raise RuntimeError("No such id in this scope: check database/collection match ingestion") + raise RuntimeError(status.error_message or status.message or "Indexing failed") + time.sleep(2) + +# 5. Search memories. +result = client.query( + database=database, + collection="user_alex", + query="What does the user prefer?", + type="memory", + query_by="hybrid", + mode="thinking", +) + +print(result.data.chunks) +``` + +### TypeScript + +```ts +import { HydraDBClient } from "@hydradb/sdk"; + +const client = new HydraDBClient({ + token: process.env.HYDRADB_API_KEY, +}); + +const database = "my_first_database"; + +await client.databases.create({ database: database }); + +while (true) { + const status = await client.databases.status({ database: database }); + if (status.data?.infra?.readyForIngestion) break; + await new Promise((resolve) => setTimeout(resolve, 5_000)); +} + +const ingest = await client.context.ingest({ + type: "memory", + database: database, + collection: "user_alex", + memories: JSON.stringify([ + { + id: "user_alex_pref_001", + text: "User prefers detailed technical explanations and dark mode.", + infer: true, + user_name: "Alex", + }, + ]), +}); + +const ingestId = ingest.data?.results?.[0]?.id; +if (!ingestId) throw new Error("Ingest returned no id"); + +while (true) { + const status = (await client.context.status({ + database: database, + collection: "user_alex", + ids: [ingestId], + })).data?.statuses?.[0]; + if (!status) throw new Error("No status returned"); + + if (status.indexingStatus === "completed") break; + if (status.indexingStatus === "errored") { + // || rather than ??: errorMessage is "" (not null) on some failures, and ?? + // would pass the empty string through and throw an error with no message. + throw new Error(status.errorMessage || status.message || "Indexing failed"); + } + + await new Promise((resolve) => setTimeout(resolve, 2_000)); +} + +const result = await client.query({ + database: database, + collection: "user_alex", + query: "What does the user prefer?", + type: "memory", + queryBy: "hybrid", + mode: "thinking", +}); + +if (!result.data || typeof result.data === "string") throw new Error("Expected structured query results"); +console.log(result.data.chunks); +``` + +--- + +## 5. Databases API + +### Create database + +`POST /databases` · `client.databases.create()` + +```json +{ + "database": "acme_corp", + "database_metadata_schema": [ + { + "name": "department", + "data_type": "VARCHAR", + "enable_dense_embedding": false, + "enable_sparse_embedding": false, + "max_length": 1024 + } + ] +} +``` + +Notes: + +- `database` should be stable. Use lowercase letters, numbers, and underscores for portability. +- Plan `database_metadata_schema` before ingestion. What you can change later is in [10. Metadata guide](#10-metadata-guide). +- `POST /databases` may return `409 DATABASE_ALREADY_EXISTS` for duplicate database IDs and `403 FORBIDDEN` when the API key or plan cannot create more databases. + +### Check readiness + +`GET /databases/status?database=...` · `client.databases.status()` + +The database is ready when `infra.ready_for_ingestion` is true. The response also carries the underlying signals: + +- `infra.scheduler_status` +- `infra.graph_status` +- `infra.vectorstore_status.knowledge` +- `infra.vectorstore_status.memories` + +### Other database endpoints + +The collections, stats, and delete routes also take `database` as a query parameter, for example `GET /databases/collections?database=...`. `DELETE /databases?database=...` deletes the database and all its data. The full list is in [15. SDK method reference](#15-sdk-method-reference). + +--- + +## 6. Source ingestion + +`POST /context/ingest` is the single write endpoint for knowledge and memories. It takes multipart form data. + +### Common form fields + +| Field | Description | +|---|---| +| `type` | `"knowledge"` or `"memory"`; default is `"knowledge"` | +| `database` | target database | +| `collection` | optional; the default collection if omitted | +| `upsert` | default `true`; replaces existing sources with the same ID | +| `documents` | binary file uploads for knowledge | +| `document_metadata` | JSON-stringified array, one item per uploaded file; see [Knowledge from files](#knowledge-from-files) | +| `memories` | JSON-stringified array of memory items | + +### Knowledge from files + +Use for files HydraDB should parse. Supported extensions: + +| Type | Extensions | +|---|---| +| Documents | `.pdf` `.doc` `.docx` `.docm` `.dot` `.dotx` `.odt` `.ott` `.rtf` | +| Spreadsheets | `.xls` `.xlsx` `.xlsm` `.xlsb` `.ods` `.ots` `.csv` `.tsv` | +| Presentations | `.ppt` `.pptx` `.pptm` `.odp` `.otp` | +| Apple iWork | `.pages` `.numbers` `.key` | +| Images (text is read with OCR) | `.png` `.jpg` `.jpeg` `.tif` `.tiff` `.webp` `.gif` `.bmp` | +| Plain text | `.txt` `.md` `.markdown` `.json` | + +- Any other extension, including source code (`.py`, `.ts`, `.go`), `.html`, and `.zip`, is rejected. The request still returns `202`; the rejected file comes back in `data.results` with `status: "failed"` and `error_code: "E1002"`, and has no status record to poll. Check every result item before polling. +- To ingest source code, upload it with `.txt` added to the filename (`auth.py.txt`) and keep the real path in `additional_metadata`. +- The `Content-Type` of the part is used only when the filename has no extension. + +```python +import json + +with open("policy.pdf", "rb") as f: + result = client.context.ingest( + type="knowledge", + database="acme_corp", + documents=[("policy.pdf", f, "application/pdf")], + document_metadata=json.dumps([ + { + "id": "policy_v2", + "metadata": {"department": "support", "status": "approved"}, + "additional_metadata": {"author": "Alice", "version": 2}, + } + ]), + ) +``` + +`document_metadata` is how you attach anything to an uploaded file. Send one item per file, in the same order as `documents`. The item count must match the file count, and an unrecognized key returns `400`. + +| `document_metadata` item field | Purpose | +|---|---| +| `id` | stable source ID / upsert key for the uploaded file; HydraDB assigns one if omitted | +| `metadata` | schema-aligned fields for this file (max 16 KiB compact JSON) | +| `additional_metadata` | free-form fields for this file (max 1 KiB compact JSON) | +| `relations` | relations you declare to other sources, e.g. `{ "ids": [...] }` | + +### Memories + +Use `type="memory"` and a JSON-stringified `memories` array. + +```python +import json + +client.context.ingest( + type="memory", + database="acme_corp", + collection="user_alex", + memories=json.dumps([ + { + "id": "pref_dark_mode", + "title": "Dark mode preference", + "text": "User prefers dark mode and concise answers.", + "infer": True, + "user_name": "Alex", + "metadata": {"team": "engineering"}, + "additional_metadata": {"source": "onboarding"} + } + ]), +) +``` + +Memory item fields: + +| Field | Description | +|---|---| +| `id` | optional stable upsert key | +| `title` | label for listing and result display | +| `text` | raw text or Markdown; required unless `user_assistant_pairs` provided | +| `user_assistant_pairs` | dialogue pairs `{ user, assistant }`; useful for implied preferences | +| `is_markdown` | preserve Markdown structure during chunking | +| `infer` | `true`: the input is raw signal and HydraDB extracts the durable preference or fact. `false`: the memory is already structured and is stored verbatim | +| `custom_instructions` | guide inference when `infer: true` | +| `user_name` | helps inference | +| `metadata` | schema-aligned fields, as an object (do not stringify it again inside `memories`). `tenant_metadata` is not read on memory items. | +| `additional_metadata` | free-form fields; keep as objects | + +--- + +## 7. Context status and lifecycle + +### Poll indexing + +`GET /context/status` · `client.context.status()` + +Parameters: + +- `database`: required. +- `ids`: required array. +- `collection`: **required if you ingested into one.** The lookup is scoped: omitting `collection`, or sending the wrong one, returns `indexing_status: "errored"` with `error_code: "FILE_NOT_FOUND"` and `message: "ID not found"` for a source that exists and is fully searchable. That is a scope miss, not an indexing failure, and you can tell the two apart only by reading `error_code`. + +| Status | Searchable? | Meaning | +|---|---:|---| +| `queued` | No | accepted, not picked up | +| `processing` | No | parsing/chunking/embedding | +| `graph_creation` | Within seconds | chunks are being indexed and the graph is still building; a query sent immediately can miss the source, and a new collection can still be reported as not existing | +| `completed` | Yes | fully indexed and graphed | +| `errored` | No | terminal failure; read `error_code` and `error_message` | + +`error_message` is `""`, not null, on some failures (including a scope miss), so branch on `error_code`, and in TypeScript fall back with `||`, not `??`. + +```ts +while (true) { + const status = (await client.context.status({ + database: "acme_corp", + collection: "support_docs", // must match the ingestion scope, or you get FILE_NOT_FOUND + ids: ["policy_v2"], + })).data?.statuses?.[0]; + if (!status) throw new Error("No status returned"); + + if (status.indexingStatus === "completed") break; + if (status.indexingStatus === "errored") { + // A scope miss reports errored too, so name the cause rather than guessing. + if (status.errorCode === "FILE_NOT_FOUND") { + throw new Error(`No such id in this scope: check database/collection match ingestion`); + } + // Use ||, not ??: errorMessage comes back as "" (not null) on some failures, + // and ?? passes an empty string straight through to an empty error. + throw new Error(status.errorMessage || status.message || "Indexing failed"); + } + await new Promise((r) => setTimeout(r, 2_000)); +} +``` + +### Webhooks instead of polling + +Register a webhook on `/webhooks/indexing` to receive terminal indexing events instead of polling. The management endpoints and SDK methods are in [15. SDK method reference](#15-sdk-method-reference). + +Supported event: `indexing.status_changed`. Payload shape: + +```json +{ + "event": "indexing.status_changed", + "delivery_id": "", + "id": "", + "database": "", + "collection": "", + "status": "completed", + "timestamp": "", + "error_code": null, + "error_message": null +} +``` + +Headers: `X-HydraDB-Delivery-ID`, `X-HydraDB-Event`, and `X-HydraDB-Signature` when a signing secret is configured. + +Signature scheme: + +```text +X-HydraDB-Signature: sha256= + +digest = HMAC-SHA256(key = signing_secret, message = raw request body bytes) +``` + +The `sha256=` prefix is part of the header value. The digest is lowercase hex, not base64. The HMAC covers the raw body bytes as received; re-serialising the parsed JSON produces different bytes and will not match. + +Managing the secret: + +- `POST /webhooks/indexing` with `{"generate_signing_secret": true}` registers and enables signing in one call, returning the secret once. Mutually exclusive with `signing_secret`; sending both is a `422`. +- `POST /webhooks/indexing/signing-secret` with no body generates one and returns the secret once. Send `{"signing_secret": "..."}` to supply your own (minimum 16 characters). +- `DELETE /webhooks/indexing/signing-secret` disables signing. +- Omitting `signing_secret` on `POST /webhooks/indexing` preserves the existing secret. It does not disable signing. + +Rules: + +- The webhook URL must be public HTTPS; localhost and private networks are blocked. +- Store `delivery_id` to deduplicate retries. +- Verify `X-HydraDB-Signature` with a constant-time comparison. Use `verify_webhook_signature` (Python SDK) or `verifyWebhookSignature` (TypeScript SDK) from the SDK helpers module. +- Fail closed: reject the request when the signing secret is absent from the environment, instead of skipping verification. + +--- + +## 8. Query API + +`POST /query` · `client.query()` + +### Request fields that matter + +| Field | Values | Notes | +|---|---|---| +| `database` | string | required | +| `collection` | string/null | the collection the context was saved in; default collection if omitted | +| `collections` | list of collection IDs, or an object of weights | query up to 100 collections at once; every listed collection must exist. Send weights, such as `{"user_alex": 2, "company_docs": 1}`, to rank one collection over another | +| `query` | string | required | +| `type` | `knowledge`, `memory`, `all` | store selector for knowledge, memories, or both | +| `acl` | list of principals | who is asking; see [Send `acl` on user queries](#send-acl-on-user-queries) | +| `query_by` | `hybrid`, `text` | default `hybrid` (semantic + BM25); `text` is BM25 keyword/phrase search | +| `operator` | `or`, `and`, `phrase` | only for `query_by: "text"` | +| `mode` | `fast`, `thinking`, `auto` | applies to hybrid; omitted means `auto`, which picks fast or thinking per query (thinking when unsure). `fast` is low latency. `thinking` adds query expansion, reranking, richer graph traversal, and explicit-relation expansion; it improves quality but adds latency | +| `max_results` | integer/null | default 10; max 250 | +| `alpha` | `0.0` to `1.0`, or `auto` | hybrid weight; `1.0` semantic, `0.0` BM25 | +| `recency_bias` | `0.0` to `1.0` | boost newer content; omitted means `0.4`, send `0` to disable | +| `graph_context` | boolean | default true; include graph slice; `false` only takes effect in fast mode, thinking always includes it | +| `query_explicit_relations` | boolean | default true; returns explicitly related chunks in `data.additional_context`; only effective in `thinking` mode | +| `additional_graph_context` | string | short factual hint that sharpens retrieval; not a hard filter | +| `metadata_filters` | object | deterministic filters before/around ranking | +| `query_apps` | boolean | app-aware retrieval lane for content synced by connectors; still searches the full selected knowledge scope; defaults to `true` on `/query`, send `false` to disable | + +`type: "all"` reads both stores from the same scope. When shared knowledge lives in its own collection, send `collections: ["", ""]`. + +### Recommended configurations + +| Goal | Request shape | +|---|---| +| Fast document RAG | `type: "knowledge"`, `query_by: "hybrid"`, `mode: "fast"`, `graph_context: false`, `max_results: 5-10` | +| Highest-quality document RAG | `type: "knowledge"`, `query_by: "hybrid"`, `mode: "thinking"`, `graph_context: true`, `alpha: "auto"` | +| Personalized grounded answer | `type: "all"`, `collections` listing the shared collection and the user's, `query_by: "hybrid"`, `mode: "thinking"` | +| User preferences only | `type: "memory"`, include `collection`, `query_by: "hybrid"` | +| Exact keyword / phrase | `type: "knowledge"`, `query_by: "text"`, `operator: "phrase"` | +| Recent operational updates | `query_by: "hybrid"`, `recency_bias: 0.6-0.8`, metadata filter to doc type/status | +| App search | `type: "knowledge"`, `query_by: "hybrid"`, `mode: "thinking"`, `query_apps: true`; still searches uploaded files too | + +### Query examples + +Knowledge RAG: + +```ts +const result = await client.query({ + database: "acme_corp", + query: "What is our refund policy?", + type: "knowledge", + queryBy: "hybrid", + mode: "thinking", + maxResults: 10, + graphContext: true, +}); +``` + +Personalized answer using knowledge and memories: + +```ts +const result = await client.query({ + database: "acme_corp", + collections: ["company_docs", "user_alex"], // shared knowledge and this user's memories + query: "What is our refund policy, and how should I explain it to this user?", + type: "all", + queryBy: "hybrid", + mode: "thinking", + alpha: "auto", +}); +``` + +Exact phrase: + +```python +result = client.query( + database="acme_corp", + query="ERROR_429 rate limit", + type="knowledge", + query_by="text", + operator="phrase", +) +``` + +Metadata-scoped query: + +```json +{ + "database": "acme_corp", + "query": "authentication control review", + "type": "knowledge", + "query_by": "hybrid", + "metadata_filters": { + "compliance_framework": { "equals": "SOC2" }, + "additional_metadata": { + "author": "alice" + } + } +} +``` + +### Query response + +The successful `data` object / SDK return is a `RetrievalResult`: + +```json +{ + "chunks": [ + { + "chunk_uuid": "...", + "id": "...", + "chunk_content": "...", + "source_title": "...", + "source_type": "...", + "source_upload_time": "...", + "source_last_updated_time": "...", + "relevancy_score": 0.91, + "metadata": {}, + "additional_metadata": {}, + "extra_context_ids": [] + } + ], + "graph_context": { + "query_paths": [], + "chunk_relations": [], + "chunk_id_to_group_ids": {} + }, + "additional_context": {}, + "llm_prompt": "..." +} +``` + +Each chunk's `id` is the ID of the source it came from, and `source_title` is that source's title: cite with these. The public result has no `sources` array. + +`llm_prompt` is the result rendered as Markdown for a model, with the ranked results numbered `[1]`, `[2]`, and so on. + +Use `chunks` as the primary LLM context. Preserve server order, which is the ranking; do not re-sort unless you have a deliberate reranking step. + +--- + +## 9. Turning query results into LLM prompts + +- Do not pass raw result JSON to the LLM if token budget matters. Use the SDK formatting helper to produce a compact context string: `build_string(result)` from `hydra_db.helpers` (Python) or `buildString(result)` from `@hydradb/sdk/helpers` (TypeScript). Both return `data.llm_prompt`, which numbers the ranked results `[1]`, `[2]`, and so on; ask the model to cite by those numbers. +- Include a grounding instruction: answer only from the provided context, and say when the context is insufficient. +- Start with `max_results: 10`; reduce it for tight context windows. +- Use graph context only when it helps the question. +- Use `data.additional_context` to attach explicitly related chunks by `chunk_uuid` / `extra_context_ids`. +- For personalized answers, `type: "all"` is simplest: one result set already merges knowledge and memories. + +Python: + +```python +import os +from hydra_db import HydraDB +from hydra_db.helpers import build_string +from openai import OpenAI + +hydra = HydraDB(token=os.environ["HYDRADB_API_KEY"]) +openai = OpenAI(api_key=os.environ["OPENAI_API_KEY"]) + +question = "How does authentication work?" + +result = hydra.query( + database="your-database", + collection="your-collection", + query=question, + type="knowledge", + query_by="hybrid", + max_results=5, +) + +context = build_string(result) + +messages = [ + { + "role": "system", + "content": "Answer using only the provided HydraDB context. If the answer is not in the context, say so. Cite source titles.", + }, + { + "role": "user", + "content": f"{context}\n\nQuestion: {question}", + }, +] +``` + +TypeScript: + +```ts +import { HydraDBClient } from "@hydradb/sdk"; +import { buildString } from "@hydradb/sdk/helpers"; +import OpenAI from "openai"; + +const hydra = new HydraDBClient({ token: process.env.HYDRADB_API_KEY }); +const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY }); + +const question = "How does authentication work?"; + +const result = await hydra.query({ + database: "your-database", + collection: "your-collection", + query: question, + type: "knowledge", + queryBy: "hybrid", + maxResults: 5, +}); + +const context = buildString(result); + +const messages = [ + { + role: "system", + content: "Answer using only the provided HydraDB context. If the answer is not in the context, say so. Cite source titles.", + }, + { + role: "user", + content: `${context}\n\nQuestion: ${question}`, + }, +]; +``` + +--- + +## 10. Metadata guide + +### Metadata schema + +Declared at `POST /databases`: + +```json +{ + "database_metadata_schema": [ + { + "name": "department", + "data_type": "VARCHAR", + "enable_dense_embedding": false, + "enable_sparse_embedding": false, + "max_length": 1024 + } + ] +} +``` + +Field options: + +| Field | Purpose | +|---|---| +| `name` | metadata key; must be valid and non-reserved | +| `data_type` | friendly names like `string`, `integer`, `float`, `boolean`, or backend types like `VARCHAR`, `INT*`, `JSON` | +| `enable_dense_embedding` | semantically embed `VARCHAR` field | +| `enable_sparse_embedding` | BM25 index `VARCHAR` field | +| `max_length` | max string length; default `1024`, maximum `65535`, and it cannot be raised after the field is created | + +Schema limits: + +- Up to 32 fields and 6 embedding flags per database. Embedding flags are valid only on `VARCHAR` fields. +- Field names are unique, case-insensitively. +- `ARRAY` is not a supported `data_type` and is rejected with `400`. For a multi-value field, store the values as one comma-joined `VARCHAR` and filter for a member with `contains`. +- Values must match their declared type, and undeclared `metadata` keys are rejected on ingest. + +### Where metadata belongs + +| Need | Put it in | Filter with | +|---|---|---| +| Hot-path exact filters: department, region, environment, status | `metadata` | top-level `metadata_filters` | +| Free-form display/bookkeeping: author, provider IDs, version | `additional_metadata` | `metadata_filters.additional_metadata` | +| Provider app fields for UI/citations | `additional_metadata` or app `fields` | usually not filtered unless needed | +| User/workspace partition | `collection` | not metadata | + +Rules: + +- Plan hot filter fields before the first ingest. `PATCH /databases/{database}/metadata-schema` can add fields later, but cannot rename, retype, or reflag existing ones, and rejects `enable_dense_embedding` / `enable_sparse_embedding` (declare those at database creation). Changing an existing field definition requires a new database and re-ingestion. +- Top-level `metadata_filters` keys must be declared in the metadata schema. They support `equals`, `contains`, and `contains_any`. Range and fuzzy matching belong in the query or a downstream reranker. +- Inside `metadata_filters.additional_metadata`, use bare values or arrays, not operators. An operator there, or a misspelled operator anywhere, does not error: it returns `200` with no results. +- To change metadata on an indexed source, call `PATCH /context/{id}/metadata` (merges keys), or re-ingest with the same `id` and `upsert: true`. +- Do not rename metadata keys without re-ingesting the affected sources. + +--- + +## 11. Browse, fetch, relations, delete + +### List sources + +`POST /context/list` · `client.context.list()` + +```ts +const sources = await client.context.list({ + database: "acme_corp", + type: "knowledge", + page: 1, + pageSize: 50, + filters: { + metadata: { department: "support" }, + additionalMetadata: { author: "alice" }, + sourceFields: { appProvider: "slack" }, + }, +}); +``` + +Parameters: `database`, `collection`, `type: "knowledge" | "memory" | "all"`, `ids`, `page`, `page_size` (1 to 100), `filters.metadata`, `filters.additional_metadata`, `filters.source_fields`, and `include_fields` for projection. + +### Fetch original content + +`GET /context/inspect` · `client.context.inspect()` + +```python +file = client.context.inspect( + database="acme_corp", + id="policy_v2", + mode="both", + expiry_seconds=3600, +) +``` + +| Mode | Returns | +|---|---| +| `content` | parsed text or base64 for binary files | +| `url` | presigned URL | +| `both` | content plus presigned URL | + +### Inspect graph relations + +`GET /context/relations` · `client.context.relations()` + +```ts +const relations = await client.context.relations({ + database: "acme_corp", + id: "policy_v2", + type: "knowledge", + limit: 5000, +}); +``` + +Use it for graph debugging and provenance inspection. It paginates with `cursor`. + +### Delete sources + +`DELETE /context` · `client.context.delete()` + +```ts +await client.context.delete({ + type: "knowledge", + database: "acme_corp", + ids: ["policy_v2"], +}); +``` + +Use `type: "memory"` to delete memory IDs. + +--- + +## 12. Error handling + +### HTTP status codes + +| Code | Meaning | Retry? | +|---|---|---| +| `400` | invalid parameters / malformed request | No | +| `401` | missing/invalid API key | No | +| `403` | authenticated but not permitted | No | +| `404` | database or source not found | No | +| `409` | conflict, e.g. existing database or source ID | Usually no | +| `413` | upload too large | No | +| `422` | semantic validation failure, including `TENANT_INFRA_NOT_READY` | Only for `TENANT_INFRA_NOT_READY`, after polling readiness | +| `429` | rate limited | Yes with backoff | +| `500` | internal error | Yes with backoff | +| `502` | upstream dependency error (`BACKEND_ERROR`) | Yes with backoff | +| `503` | temporary unavailability | Yes with backoff | + +Retry only `429`, `500`, `502`, and `503`, with bounded exponential backoff and jitter. + +The SDKs already retry `408`, `429`, and `5xx` responses twice with exponential backoff before raising, and the Python SDK also retries `409`. Do not wrap SDK calls in a second retry loop: raise the count with `request_options={"max_retries": 5}` on a Python call, or `maxRetries` on the TypeScript client or call. + +### Common error codes + +| Code | Meaning | +|---|---| +| `INVALID_INPUT` | required, malformed, or conflicting parameter. This is the code for essentially every `400`. Branch on it, not on a generic name | +| `VALIDATION_ERROR` | request shape valid but failed validation | +| `UNAUTHORIZED` | missing/invalid API key | +| `FORBIDDEN` | key lacks access | +| `DATABASE_ALREADY_EXISTS` | duplicate database ID | +| `DATABASE_NOT_FOUND` | database missing/not visible | +| `TENANT_INFRA_NOT_READY` | `422`: the database exists but its infrastructure is still provisioning. This is what querying before polling readiness returns | +| `FILE_NOT_FOUND` | ID not found **in the selected scope**, usually a `collection` mismatch, not a missing source | +| `SOURCE_PROCESSING` | the source is still indexing and cannot serve this request yet | +| `NOT_FOUND` | requested resource does not exist | +| `PARSE_ERROR` | a document could not be parsed | +| `PROCESSING_FAILED` | indexing failed for a source | +| `RATE_LIMITED` | rate limit exceeded | +| `INTERNAL_ERROR` | unexpected server error | +| `BACKEND_ERROR` | `502`: an upstream dependency returned an error | +| `SERVICE_UNAVAILABLE` | dependency unavailable / under load | + +There is no `INVALID_PARAMETERS` and no `SOURCE_NOT_FOUND`: no HydraDB response carries either. Match on `INVALID_INPUT` and `FILE_NOT_FOUND`. + +SDK errors: + +```python +from hydra_db.core.api_error import ApiError + +RETRYABLE = (429, 500, 502, 503) + +try: + result = client.query( + database="acme_corp", + query="pricing tiers", + type="knowledge", + ) +except ApiError as exc: + # 500 and 503 have typed subclasses (InternalServerError, + # ServiceUnavailableError); 429 does not, so branch on status_code to cover + # all three uniformly. Back off and retry. + if exc.status_code not in RETRYABLE: + raise +``` + +```ts +import { HydraDBError } from "@hydradb/sdk"; + +try { + const result = await client.query({ + database: "acme_corp", + query: "pricing tiers", + type: "knowledge", + }); +} catch (error) { + if (error instanceof HydraDBError) { + const body = error.body as { + error?: { code?: string }; + meta?: { request_id?: string }; + } | undefined; + const code = body?.error?.code; + const requestId = body?.meta?.request_id; + console.error({ code, requestId }); + } + throw error; +} +``` + +--- + + + +## 13. Common integration patterns + +Most integrations follow the same architecture: + +1. Create a database with a metadata schema for hot filters. +2. Upload shared knowledge with stable IDs, and connect apps with connectors. +3. Ingest user and session memories with `collection`. +4. Poll status or use webhooks. +5. Query with `type: "knowledge"`, `"memory"`, or `"all"`. +6. Format chunks, graph paths, and additional context into an LLM prompt. +7. Cite sources and handle missing context explicitly. + +--- + +## 14. Common mistakes checklist + +Each item is a rule stated in full in the section named. Check all of them before you finish. + +Section 1, critical rules: + +- [ ] Forgetting `API-Version: 2` in raw HTTP calls. +- [ ] Reading a payload from the top level instead of `data`, in raw HTTP or in the SDKs. +- [ ] Writing with one `collection` and reading with another, or omitting `collection` for user memories. +- [ ] Splitting a company brain into many collections instead of one collection with `metadata_filters` and `acl`. +- [ ] Querying on behalf of a user without `acl`, which returns everything in scope. +- [ ] Turning on a connector's `enforce_acl` behind one shared API key, which runs every query as the key's creator. + +Sections 2 to 7, ingestion and lifecycle: + +- [ ] Uploading a file with an unsupported extension, such as source code, and polling an ID that was rejected with `E1002`. +- [ ] Writing your own ingestion for an app instead of using a connector. +- [ ] Editing an existing connector resource with `POST /connectors/{id}/resources`, which returns `409` and changes nothing. +- [ ] Querying right after database creation without polling readiness. +- [ ] Querying right after ingestion without polling `context.status` or using webhooks. +- [ ] Treating `processing` or `queued` context as searchable. +- [ ] Not handling `errored` as the failure status. +- [ ] Omitting `collection` on `context.status` and reading the resulting `FILE_NOT_FOUND` as a genuine indexing failure. +- [ ] Using `??` on `errorMessage`, which is `""`, not null, on some failures, so the fallback never fires. +- [ ] Forgetting to verify webhook signatures when a signing secret is configured. + +Sections 8 to 10, query and metadata: + +- [ ] Using undeclared `metadata` keys in `metadata_filters`. +- [ ] Using `operator` without `query_by: "text"`. +- [ ] Expecting `query_explicit_relations` to work in `mode: "fast"`. +- [ ] Putting operators inside `metadata_filters.additional_metadata`, or misspelling an operator, which silently returns no results. +- [ ] Setting `graph_context: false` and expecting graph fields. +- [ ] Reading `data.sources`, which the public result does not return; cite from each chunk's `id` and `source_title`. +- [ ] Re-sorting chunks before prompting without a deliberate reranker. +- [ ] Passing raw result JSON or too many chunks to the LLM. +- [ ] Putting hot filters in free-form metadata instead of the metadata schema. + +--- + +## 15. SDK method reference + +Every method is on the client: `client.` in both SDKs. Return shapes are in [Response envelope](#response-envelope); naming is in [3. Installation and client setup](#3-installation-and-client-setup). + +| Group | Python | TypeScript | Endpoint | Purpose | +|---|---|---|---|---| +| Databases | `databases.create()` | `databases.create()` | `POST /databases` | Create a database | +| Databases | `databases.status()` | `databases.status()` | `GET /databases/status` | Check provisioning readiness | +| Databases | `databases.list()` | `databases.list()` | `GET /databases` | List database IDs | +| Databases | `databases.stats()` | `databases.stats()` | `GET /databases/stats` | Knowledge and memory row counts for a database | +| Databases | `databases.get_metadata_schema()` | `databases.getMetadataSchema()` | `GET /databases/{database}/metadata-schema` | Read the metadata schema | +| Databases | `databases.update_metadata_schema()` | `databases.updateMetadataSchema()` | `PATCH /databases/{database}/metadata-schema` | Add metadata schema fields | +| Databases | `databases.collections()` | `databases.collections()` | `GET /databases/collections` | List active collections | +| Databases | `databases.delete_collection()` | `databases.deleteCollection()` | `DELETE /databases/collections` | Delete a collection | +| Databases | `databases.delete()` | `databases.delete()` | `DELETE /databases` | Delete a database and all its data | +| Context | `context.ingest()` | `context.ingest()` | `POST /context/ingest` | Ingest files or memories | +| Context | `context.status()` | `context.status()` | `GET /context/status` | Check indexing status | +| Context | `context.list()` | `context.list()` | `POST /context/list` | Browse knowledge or memories | +| Context | `context.inspect()` | `context.inspect()` | `GET /context/inspect` | Original content or a presigned URL | +| Context | `context.update_source_metadata()` | `context.updateSourceMetadata()` | `PATCH /context/{id}/metadata` | Edit metadata or `acl` without re-ingesting | +| Context | `context.relations()` | `context.relations()` | `GET /context/relations` | Graph relations for a source or collection | +| Context | `context.subgraph()` | `context.subgraph()` | `GET /context/{id}/subgraph` | Sources connected to one source | +| Context | `context.delete()` | `context.delete()` | `DELETE /context` | Delete sources or memories | +| Query | `query()` | `query()` | `POST /query` | Query knowledge, memories, or both | +| Query | `feedback.submit()` | `feedback.submit()` | `POST /feedback` | Report how a query performed | +| Connectors | `list_providers()` | `listProviders()` | `GET /connectors/providers` | Provider catalog, or one provider's credentials | +| Connectors | `connectors.create()` | `connectors.create()` | `POST /connectors` | Store credentials for one account | +| Connectors | `connectors.discover()` | `connectors.discover()` | `GET /connectors/{id}/discover` | Resources the credentials reach | +| Connectors | `connectors.configure()` | `connectors.configure()` | `POST /connectors/{id}/configure` | Choose resources and start syncing | +| Connectors | `connectors.status()` | `connectors.status()` | `GET /connectors/{id}/status` | Connector and per-resource health | +| Connectors | `connectors.list()` | `connectors.list()` | `GET /connectors` | List connectors | +| Connectors | `connectors.get()` | `connectors.get()` | `GET /connectors/{id}` | One connector's settings | +| Connectors | `connectors.list_resources()` | `connectors.listResources()` | `GET /connectors/{id}/resources` | Configured resources | +| Connectors | `connectors.sync()` | `connectors.sync()` | `POST /connectors/{id}/sync` | Sync now | +| Connectors | `connectors.pause()` | `connectors.pause()` | `POST /connectors/{id}/pause` | Stop scheduled syncs | +| Connectors | `connectors.resume()` | `connectors.resume()` | `POST /connectors/{id}/resume` | Restart scheduled syncs | +| Connectors | `connectors.update()` | `connectors.update()` | `PATCH /connectors/{id}` | Instructions, sync interval, or credentials | +| Connectors | `connectors.update_resource_acl()` | `connectors.updateResourceAcl()` | `PATCH /connectors/{id}/resources/{resource_id}` | One resource's instructions or `acl` | +| Connectors | `connectors.create_resource()` | `connectors.createResource()` | `POST /connectors/{id}/resources` | Add a new resource; returns `409` if it already exists | +| Connectors | `connectors.delete_resource()` | `connectors.deleteResource()` | `DELETE /connectors/{id}/resources/{resource_id}` | Stop syncing one resource | +| Connectors | `connectors.delete()` | `connectors.delete()` | `DELETE /connectors/{id}` | Remove a connector | +| Webhooks | `webhooks.register()` | `webhooks.register()` | `POST /webhooks/indexing` | Register or replace the webhook | +| Webhooks | `webhooks.get()` | `webhooks.get()` | `GET /webhooks/indexing` | Current registration | +| Webhooks | `webhooks.test()` | `webhooks.test()` | `POST /webhooks/indexing/test` | Send a test delivery | +| Webhooks | `webhooks.list_deliveries()` | `webhooks.listDeliveries()` | `GET /webhooks/indexing/deliveries` | List delivery attempts | +| Webhooks | `webhooks.get_delivery()` | `webhooks.getDelivery()` | `GET /webhooks/indexing/deliveries/{delivery_id}` | One delivery | +| Webhooks | `webhooks.retry_delivery()` | `webhooks.retryDelivery()` | `POST /webhooks/indexing/deliveries/{delivery_id}/retry` | Retry a failed delivery | +| Webhooks | `webhooks.set_signing_secret()` | `webhooks.setSigningSecret()` | `POST /webhooks/indexing/signing-secret` | Generate or set the signing secret | +| Webhooks | `webhooks.clear_signing_secret()` | `webhooks.clearSigningSecret()` | `DELETE /webhooks/indexing/signing-secret` | Turn signing off | +| Webhooks | `webhooks.delete()` | `webhooks.delete()` | `DELETE /webhooks/indexing` | Remove the webhook | + +### 15.1 Minimal cURL example + +The flow from [4. Minimal end-to-end flow](#4-minimal-end-to-end-flow) over raw HTTP: + +```bash +export HYDRADB_API_KEY="your_api_key" +DATABASE="agent_docs_demo" +COLLECTION="user_alex" + +# 1. Create a database. +curl -s -X POST 'https://api.hydradb.com/databases' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d "{\"database\":\"${DATABASE}\"}" + +# 2. Check readiness. Poll this until .data.infra.ready_for_ingestion is true. +curl -s "https://api.hydradb.com/databases/status?database=${DATABASE}" \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" | jq '.data.infra' + +# 3. Ingest a memory. +INGEST_ID=$(curl -s -X POST 'https://api.hydradb.com/context/ingest' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -F "type=memory" \ + -F "database=${DATABASE}" \ + -F "collection=${COLLECTION}" \ + -F 'memories=[{"id":"alex_pref_001","text":"Alex prefers concise technical answers.","infer":true,"user_name":"Alex"}]' \ + | jq -r '.data.results[0].id') + +# 4. Poll indexing. +curl -s -G 'https://api.hydradb.com/context/status' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + --data-urlencode "database=${DATABASE}" \ + --data-urlencode "collection=${COLLECTION}" \ + --data-urlencode "ids=${INGEST_ID}" \ + | jq '.data.statuses[0]' + +# 5. Search memories. +curl -s -X POST 'https://api.hydradb.com/query' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d "{\"database\":\"${DATABASE}\",\"collection\":\"${COLLECTION}\",\"query\":\"How should I answer Alex?\",\"type\":\"memory\",\"query_by\":\"hybrid\",\"mode\":\"thinking\"}" \ + | jq '.data.chunks' +``` + +--- + +## 16. Navigation and support + +- Guides: `https://docs.hydradb.com/essentials/v2/context` and the other Core Concepts pages +- API reference: `https://docs.hydradb.com/api-reference/v2` +- OpenAPI spec: `https://docs.hydradb.com/api-reference/v2/openapi.json` +- Dashboard/API keys: `https://dashboard.hydradb.com` +- Support email: `founders@hydradb.com` diff --git a/plugins/claude-code.mdx b/plugins/claude-code.mdx index 399e4eaf..84db6369 100644 --- a/plugins/claude-code.mdx +++ b/plugins/claude-code.mdx @@ -154,7 +154,7 @@ The plugin resolves config in this order. Later sources override earlier ones: | Value | Behavior | | ----------- | -------------------------------------------------------------------- | -| `memory` | **(default)** Queries [memories](/essentials/v2/context#2-save-memories) only | +| `memory` | **(default)** Queries [memories](/essentials/v2/context#ingesting-memory) only | | `knowledge` | Queries [knowledge](/essentials/v2/context) only | | `both` | Queries both in parallel, then merges results | diff --git a/scripts/__pycache__/generate_llms_index.cpython-313.pyc b/scripts/__pycache__/generate_llms_index.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f4e7a66e82d5ff931329a35faa1b195fc52921de GIT binary patch literal 3200 zcmb7GOKcm*8J=A(xqONeZP^whDQinIO+%y_SgKoDP^==d9$TQEQV+ zVrHoa1qWSs1= zQ}|Oz5ypUzjhLtYZJ);)o0zx#w7!;Y>?$nELJ(o6Y=_yUxMj!qdkCqYAf%w!vBOfQ zP*W%ND&E*@hdE?XcFL}wf}KF`J4|oM`xQ}kN5E>_skqwob}9bY;9XbloZ%nlRJz93z*{Hqb)Q1Arx{C)Q;xyj+uTbi&B2``hczi(?L28N?0d?X z=E58m=2dg$Da%f>ks?c+McoF!y{MJoc#F1(;=IKH(^zBGas?z7(Hq<#dVyc~LH>S( z;$n;1Sj525g9F^;f}s0IE3rRD2X3*7mB}5lYWV-Sg=e?KdCSjIf@^leBODis(cpmsB%kGTI`uz>pI#J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+>Smv#hqO*mc=j^A}{50}~M{Enxq=IO0?daIuP(px)$V|RmyiArdq8k+nfR1IBu66h`W#j63O>{XsPedUg~ dzIIOk+j*qs?5{Zc@2-9A3_UxJgrMc|{{Y^MwK4zz literal 0 HcmV?d00001 diff --git a/scripts/__pycache__/sync_datalake.cpython-313.pyc b/scripts/__pycache__/sync_datalake.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..41365e9ab38a55762d0fdfc087612b66a1a90a41 GIT binary patch literal 30994 zcmb`w3v?UTnI>3x5>EmoNbpTUd_&?x5+9Z*i83itA|;WMScFW8k|~G;CE6576+k@@ zw}+eVGfmlT1_0Tf`5AW+%E???!VFx`O-@ds)u$p z$Gyt&oWSuaUVTV)P%Wrk^sG6g5j5e$~c#}}dn}ssoB9w3AcO*;6H7 z#pkf6D!!V}Wlz<74PVPU==nL7P{Y^pdF*{HU(e^Wr#jxvJK0lxIhXp!Z{`cwTX!K> z$?=879ADIiaidGv%x~d~S?rcm4SY$*2*-J|IpjXoSjnB*QpvSR3Ar|v^x#vS(`@2S zm zG|BDJRB)3jcY`-Si{niERsXmvc;4rlojW@{HSU_284tLo{J|OaGU)SOsAIoCdD=H|&gYu&2EDFn@AJMUld1QTPq^xu_2TuEpXIx>-R1XQnmXqVPR;mTGn1^? zrso3qQGZ}=YQh(2aP6C!dHyW^@Yr><-!l>fB;0w5B{65zirOL6h z-hl6n%R4*k3e3z2z2%Pr{z6ldGvyqzVy5I|X zS)(U~nG3GKxG*&v3^daliXIDkugv&oE?kuw8F-}o1N)A;#=U-%-zx|+mt9_0z~>dl zQO`_+E8xA_Adek&Ly)_{#v|bJo}HNsy2fYxe&2X-MhJA6OfJ`qFm-OqzvlwRd3tK{ z>KGezmv?SriUwd$aw=%h#-5+@Pq#8p3#><2pUpFkUE0!%ZrK0%s(HsJW_M;qDjx-o3h z04s?AWV2qui%CNM2G`k{iL0*3Dc|%2M$kWD5`2N#8Gitc!3ZR)!E8TPatd;(1c2u7 z`6+-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ntDPW|? zf1{^=rXWQ1H&D<_!4?XxQb58P$-SExVd+B!*XZdg1ve>Rw94Po(*p_~Qb2pPa2!Db zUquCtccJ&nR8aU9MO~t|bXXc-ULuyT+S2qD3BztlKhi0@f(ZQQ0{sYqGgYbw+G>^d zUkpxZ0~dC_c848?*BIkgvOyry&tMyK`$mM>Lo2{~aQmIole_}VN?4LM|s=QAMt5v1H8C2O+ zIiFN(@iJSd+VhFsqO#pDKd4gW#EZ-BYuLkW*4>)%FWLUFL zrLx{Xtmd?qg-}#ebYGpNEB$45;jO&aoKZM48(jBwoVNJ4(9Kx#pzTAX!7AE!tU6Y8 zVs_^m|I?H2o_x=66j_#XUcMk2N`4nN7o-xluLM?nV)pK}mY;UK+wq=ZFfAc)o~~5F oU_ahs?cT}#c&ENcr}^>T(tRbGpOhH!{FCa^9!~QgIUSz=KjSLAMgRZ+ literal 0 HcmV?d00001 diff --git a/scripts/__pycache__/sync_faq.cpython-313.pyc b/scripts/__pycache__/sync_faq.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2b469ab4f69045053061be91af4c40b410fd9bb0 GIT binary patch literal 42444 zcmch=33waVohMkh?~~vyi6x2>35qv$QX*wux9r_&SJ@g(kJw*i9|7?|yNyS+2$lE+=OV}b6aA1cy%bU1dQ`)4-{1sJ zXS65XsM?V-Gb9?`?%xtOpu!IwePF8J2AJ8Rwh226idtbedTgM5l6lVSjZ9)mXJ*yHo3wwl8ma>NB zv<5k?J?T+$suk`N*0J|>Lc37LV)a6Yz_VC`&?&5Eu|}awC}*)Ip1o6sZFv)CTtsL;S-_X)>@Miy(wvnCen5RMDYEY^9lOW4xV&vAY` zhh96`UCy2CEa$dLoy%=iNs)kRShJox={0bEyb|}G+=r3adUCIwYgV5$_0Fb~XWfKt zJ278ay6vAM9m*AUWJ(h>;@-}^r&T8ptSE8k=g5g_*77;h-KE6ST&t#xJFW8e`oCb} zII}Pn8ssO=1o#VqQ{mu5fZyAGoPR7dc3~tiG#ubh`NI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M4%u&_thg3%7RbWEEJ5;XQ6>e4D?P`;%{&rEm zs`Yk*4uR98I;gtMSE}^4`&4U?vdxZ^ArR6ZF+vQ zsaWM&Dl5OKp?hWHZMxsy;YLtxP_4P`S%cVKRe=iDR_j#Nw>wm2D$ngMRgtPob-V4b zN@ctGh?>({XCetr@lCZ!x8~>eqUSv?6eQr?!pPs$aoUpKpzo|6Iy`vI&xyp_5bca^ zjoG~mn%B%fFu!Bm#hx}TG%sw7*>_wE|2Xn`+dTX<-YbW>C gPW|3m&0BjKy6ZLnzTSlRzu(cYw@UNVDjnkgFGP;Hy8r+H literal 0 HcmV?d00001 diff --git a/scripts/__pycache__/test_agents_guide.cpython-313.pyc b/scripts/__pycache__/test_agents_guide.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a7c91d39fd51f4dc3a61cb7f35d2d9e5693ef1e3 GIT binary patch literal 31640 zcmc(|3s_rMo+o&(-sk}W#2aHFV;k8ZY=a-**aRDlUx33!HV)XbKmrtlAXnhnic{sS z?ditV(;J-b8k1Cdj4RpCWTtkCOx0|tsq7Z1N0+NM>6Rj5QMcSx>7Lr%&TfD6IkxLd zS9W&3{r%6?l?0aK^h|#{$L8F}`Jcx+O1YS@b<3*lbRicVr)uI|#^)by+t*EujFgj7k()6O9T@9jvU9-e2b~TDd zb~TA6b~TG;Ts6ncM=fG@qKq6d2k*4Ua*kR>D|@FqmU}c$%uA%_i}@_CO|QTf3aYwHQ}zLU)9~9q^7Q@qgcoyi0<8~x5}MT zgVGAIyuVy9QptjemA_6fixt~B!E&A#*W;Rvs~y)ITq|+4;_B!xY2bz2Qtmlk+#uwY za$=#dLC9y%Re}xA8-)VIn}kBdn~OOIClr-(Lh(+F5e2bYC_##|zod@u--6Uqq?YA# zYgjKc~Bw6|gGWsg@tbS_WAG$n{TvbTLRfAS<5$S=YZ!a5SM-Zyv`1 zc3@T2?7@+2x1AeS4Xd10-e2QGyQhNo$q~QZf6+TOG3pQ513`OBds}CZ;2QH?w0no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@cRwc$NtxZTGz9@LEaC&`LlAifY0>dEh4 zagb*Ub>g_?Y*ouUJW->o$`wC&^wG#Tc0BRQN%->MvRe{9KMKiB-&lKvCRT3r9V#r+dY z@lPyuKe6omJ4=;hslvNIb6Q;P`Svfr5KStPl1jo!tD{L9q$JuBC28YJ_T}V#FFBW! zcOprtdnxH-Cui-new<>3y7#`zVa@$GqsMA(vR)mF=53JjHhc{CUi|#{Jh$4~V_hhS z7H*UZH-2oPUmv$vFW9XO3+>V3YN@#TV+;NIXe`-cchAp-ZH3Er_pf$*spD6=KC)Tt IMQn2Ze~6^ZOaK4? literal 0 HcmV?d00001 diff --git a/scripts/__pycache__/test_cookbooks.cpython-313.pyc b/scripts/__pycache__/test_cookbooks.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a10a1e49dc2ced2729a1ca85c0e7088532d5bd35 GIT binary patch literal 51122 zcmeIbd3+qleJ|K^VQ$>_#UTKa7?J=861>0z#Ki+701ATvAp+!R2nL z$GyzCIG%H9T-w7LUc=5>UdzrpUdPUQUXQcxu%RW1PjZN5jl7ZFGw~*NHuGk7w(u65 z^@lAjR^BF+wexo584lZ9lKEtomvlI##lojLxZb1^t~YHf`aws>8u1*PZk2v?tc}eT zuU$q1F8IvetP;*;%IA7BUFHfa+Nn?}YmuLl!O3mPIeZRkTB#@AX=5xHmm4|e7E{C4w z=X0)tty-~9d9C4N|yDmaTV8gbDTGw<52d#O!zgjihZ6mcz~E`WcXW*R1u89;wqb|gH+p`UKkM-N`yKvaM<4I&_xVQ$y+eUo zhtJ!0hHA@o2LotyWXRixMo*19ypF)=*eN{AJL(u1 zJ0vxMekdJqlm~|KSjU+Etbh2t-!aTP&J6|vBfg;_U%$o6pB_7ho;U`)gF^x5Mn~Tn zU*B1=@fKHmn`6W~J~Zsb<6_^rf4Gm;LI(q9yd%EAMtU&|@53AW#meGn&;v0BBg6iH z&v9|gWeE|&cD4t4v5ns!3#>e|AEg#bNZ*yt{{Za4e8JtsGgXczud~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ts/__pycache__/test_docs_examples.cpython-313.pyc b/scripts/__pycache__/test_docs_examples.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7b7b56ec3e1c2b3d65aa60ad85962830e40e1b70 GIT binary patch literal 49667 zcmd442~=BWo+o;>3oS^1*fEI3Hee9O;00`h!7K)|*j!{|Lo5p@UIDo=G! zH%`}_;4E#jbOl%PI;1BinR!W^I;mv( z&Ai|LySkDfO5*D7cjkQ@zI%1QegE&@J)=>_!TsuyFCJX-aoqnwKP0D(yxjYtg5#d% zcuwGW881IB6J+cu7v$`z5EOVSjw?G=g32n!Q44AorV%vksTH*BnIt5!r%uqZr(V#r zr$I2_sXT7zGz!U)JWPTK-&DsJ_lis9sd*$L6Rv*pr+|E29uXCHQ&HCHq ze@MzT_T;rH{16I;3izZ-J>INC^1kL+xb%iL6!1EV(bp<{i#??lNVOG;hl+VU<;)vc z{w2t@GZtTZL$1ZqG&^>4!cN{OlvZyt&C62;U1I; zm3&$bCuH-MYMEf;EBSQxwTjQc*WG+3{Axan&)zK)_V79QRm11PujTXL@8!3_-6(O$OmG z%ee$Gwhx*5u1IZ;J@;a+lM@yp*!ak1cwd#tYM5wF!b=A7_&XW2KwJ?VCO-7YKNavUL%n7uP@Pt%DGt9QmdV$4Fvc&p5~26;^@ON0^=)8;=y?oYb8k zzw8p6uHj0r>%w{K$mE3EGi$TX0SAC=a!Tr#j zJ5puT)arG6Txh1(Ix_Aaxq#|N+N5*NOjHW)QPj{g;;y>5r)nBa!AIMJUevafdTGWv zJI<;<*$1g(nS?; zxko0Qg4a;mL^+D-En` z8ku>fXVKBKbAqSBI_jL5^s#LVpdk2(6lI*W9bTNUPabwx_EQeIoKVI3h($B$@5^pwfM$`cq#JWc!rP5T}Umv;uU zhJvOrRq@oaesetJEt7{cT6&M#yRj-9-L3siElvGRj^nLo_^`gawY#_P4EymB9S=TT zZ1MQEedCM@>qe%hFvgh6-mpd-IkBeT`QVd@yo|bDUk)7umcif#jqEqL2D}i{lm2 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MjWh5ivlgEBA%LEhx6S6q@SFJW6Q1Mwin|=a**-%&Z~xB8 z@uitY#!H{IgxE^ac-F&L~rENf}v6*Z({109pTOR-b literal 0 HcmV?d00001 diff --git a/scripts/__pycache__/test_sync_datalake.cpython-313.pyc b/scripts/__pycache__/test_sync_datalake.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..97587141777760ba97ed71e5c7435dd2e99b967f GIT binary patch literal 6172 zcmbVQTWl298J^qj&faVKsth>4|&|hHnt{-8Y!wGUMg-?B>K|-%muO#=at(hw|EHRJN(DGY=z40-$La)!4Vv}pFn0w zA`<>n`>B02q64^%-p}l_A)8Sr_uG-9j%Xn`rh(vW$H{1w)oH2hqRl#T9(Qr}r;iYX zu#6zUx3=VC)mn(ILN!1Plfz`taUK8f50W}_P|%W4+R}m+OUA4xa7h;a+};Y6^Tcri z4;oP%iD-^$AP~dRU~PDi$j;foIygI6mUDo0ax8KUJA*FW+b3wk^TH`{KvXsLx)XYf zS$*SIIN*mTbNfGF&J%+~^xnJBhOc9kSwfAmYEipYE0s~URJUrKR9B%#iU{2Mys>ze zmsz$D$6z7ND_UXIN@eL&awJD_bXQ?C#=^lub`{16ADU<;Ld5#Qqj4BPf(j5#FamsU zJKaPi$RN|NGjS=A$hzCwWMM>XQ{>cGwpLbT@vNk3qO7$cF%b@j_w3r)7i4vhpsFI$ zqJpG~s_uzqWK9|ocOj%8ol(c+nC?vU{1 zjw3)7QwbG@M+EfE?MY=sY|p?u+D9Z=OG$~bwzv{g+tnD7(wf??!5Z@TMSL7qH3h30 zPLJuUjAltbBc!A_A5%us0+Lik=7k{zX{sJt6awLgd*fA6cY%40Sn&Ghy{q!xRquN~ zjDMtjpv;F4=EDbbO^4>Z(XTyKZ|-?x&$|N`j=X*3otGwRCmVBH56*fH{Xi2H969fe zUh_ups&44%Qrph8^we6{&Q8ao(8G&ogx+7Ea-KMbzk+d|QU@hO$l?$}BB{HcL4nI|rV1=UO7!QE}0&XJoPGjM%TRakD zi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v21MOX5P)>fFZOE6LoU7js9o+`&w4*O^>o z^d?R1sJKB;n=8SruL2YBfvH_~!%nPhoj7xuU0D58Zrg!;L;pg3Q?7Yiu5SB6OYqX+ z-1Z~6&ZGJImu@e0sbXK{>nLB<07^QN})yg#!1Cw2s*3DEt zJn=EDK`F5ClRB z?{~&v7pr0#+g%2k1u^g>{opyNZ-XhX2NqVfOdh>r%S8|8yI;(0J(3F@%`bat+_BKm z_@4Hs?C-Oa>t>oda`l@o9h<4!Iljlz0B5lVhVstcmSC!K;{8SbdcigPrRLRz*8&$(uubz0GqPA z>k`DuZFsCC`ViQ;o&os_t3goZ7)cecH}K`}7J|PtZHv>cA}_SI^V#>CFz@zTMU9 zaee@2xo#Z}Z15Q(9N4&ceng39jKdob&*Obm;Z7w!)Ilno?16q$cpl;132MYN5j|wCtzc9h42}JVQ{)raSr$uaf_mCQSuf`+d6K! z+%}cG)lg~MaI3{;Tl3!vn{B=MIDQh3dqj|Ao)3Bqe%INIENM78@GezLrlcYBM9OQm zhewpyDRWEdU38>n3ORNFp6wOj6w?@462FAOuUIm0o!w@BrX5HF9|(RzeHP3Onk31u z2=`Y+BS#L7GNPICRZJ@fw7yubAh0e^0Q&R{&_*%`Wif${wMz%LH`@`W2T J!890C`#;VAkB0yN literal 0 HcmV?d00001 diff --git a/scripts/__pycache__/test_sync_faq.cpython-313.pyc b/scripts/__pycache__/test_sync_faq.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5a615be55ae23ab67c57fedcf0706a52d1dee9ac GIT binary patch literal 7226 zcmcIpU2GdycD}%SN$5viIQo{*+mD?nZI+-9iH>u@0@$I9EpSo9RK{q@~vNo3HbxwR1Ud(v3yS;XJLdE5`M3DaM`)y##7N4&gQNo2#i5-wMvC4u z8s(Zn(3CgPY~-4Cpc&dka|_q32hH#%np>|or6S!|3DLF^0=n%_e`$_uXI?2#WzEUrId5miGu0nejucrw08c+A*9l;QAT9tCz8!>0 zDG{VUC4mg2{4_WghzH$Vy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plSaq+eY0?}_-n{B!yJ=+C2fg%4l-(7AW!qrX^c>6~ln zoNq}iwY)ah^4fgU@dffa3|R>@2)%c&E^Rw7x9z|Rft!_By^y$jW~q7qT=V`F0yir= zgTjC?bJgRl6@qsw&0B@;yV<4f2j{jQTp@7t?I9wCXQt=Hw#QQV{fmEj@vkm@D-vl3 H_xAq*0LNYA literal 0 HcmV?d00001 diff --git a/scripts/generate_llms_index.py b/scripts/generate_llms_index.py index 7f8b93fd..0dcf4187 100644 --- a/scripts/generate_llms_index.py +++ b/scripts/generate_llms_index.py @@ -1,6 +1,4 @@ import argparse -import json -import os from pathlib import Path import re @@ -19,34 +17,11 @@ def page_paths(value): def generate(): - config = json.loads((ROOT / "docs.json").read_text()) - versions = {version["version"]: page_paths(version) for version in config["navigation"]["versions"]} - legacy = versions["v1"] - versions["v2"] - {"continuity-assurance"} - groups = {"Current v2 documentation": [], "Integration and connector details": [], "Site information": [], "Legacy v1 reference (not maintained)": []} - for directory, subdirs, files in os.walk(ROOT): - subdirs[:] = sorted(name for name in subdirs if not name.startswith(".") and name not in {"node_modules", "archive", "snippets"}) - for filename in sorted(files): - if not filename.endswith(".mdx"): - continue - path = Path(directory) / filename - slug = path.relative_to(ROOT).with_suffix("").as_posix() - title = re.search(r'^title:\s*[\'\"]?(.*?)[\'\"]?\s*$', path.read_text(), re.M) - title = title.group(1) if title else slug - title = title.replace("[", "\\[").replace("]", "\\]") - if slug in legacy: - group = "Legacy v1 reference (not maintained)" - elif slug in versions["v2"] or "/v2/" in slug: - group = "Current v2 documentation" - elif slug.startswith(("plugins/", "connectors/")): - group = "Integration and connector details" - else: - group = "Site information" - groups[group].append((slug, f"- [{title}](https://docs.hydradb.com/{slug}.md)")) - lines = ["# HydraDB Documentation", "", "> Documentation for HydraDB's supported v2 API, SDKs, integrations, and cookbooks. Legacy v1 pages are listed separately and aren't compatible with current SDK installs.", "", "Start with the v2 quickstart. The Agent Integration Guide explains the API contract; this index lists every non-archive documentation page, including linked detail pages outside the navigation."] - for heading, pages in groups.items(): - lines.extend(["", f"## {heading}", ""]) - lines.extend(line for _, line in sorted(pages)) - return "\n".join(lines) + "\n" + """llms.txt carries the Agent Integration Guide, so an agent that fetches either reads the same text.""" + source = (ROOT / "AGENTS.mdx").read_text() + front, body = re.match(r"---\n(.*?)\n---\n(.*)", source, re.S).groups() + field = lambda name: re.search(rf'^{name}:\s*[\'"]?(.*?)[\'"]?\s*$', front, re.M).group(1) + return f"# {field('title')}\n\n> {field('description')}\n\n{body.strip()}\n" if __name__ == "__main__": @@ -58,6 +33,6 @@ def generate(): if args.check: if not destination.exists() or destination.read_text() != content: raise SystemExit("llms.txt is stale; run python scripts/generate_llms_index.py") - print("llms.txt matches all non-archive documentation pages") + print("llms.txt matches the Agent Integration Guide") else: destination.write_text(content) diff --git a/scripts/test_docs_consistency.py b/scripts/test_docs_consistency.py index aad1d50a..52222ec8 100644 --- a/scripts/test_docs_consistency.py +++ b/scripts/test_docs_consistency.py @@ -10,8 +10,25 @@ DEPRECATED_API_KEY = "HYDRA" + "_DB_API_KEY" +def hidden_pages(): + """Pages in a hidden navigation group: old copies kept for reference, not maintained.""" + def pages(value): + if isinstance(value, str): + return {value} + if isinstance(value, list): + return set().union(set(), *(pages(item) for item in value)) + if isinstance(value, dict): + return set().union(set(), *(pages(item) for key, item in value.items() if key in {"pages", "groups", "tabs", "anchors", "dropdowns"})) + return set() + config = json.loads((ROOT / "docs.json").read_text()) + return {ROOT / f"{slug}.mdx" for version in config["navigation"]["versions"] if version.get("hidden") for slug in pages(version)} + + def live_files(pattern: str): + hidden = hidden_pages() for path in ROOT.rglob(pattern): + if path in hidden: + continue relative = path.relative_to(ROOT) if not set(relative.parts).intersection({ ".git", @@ -72,7 +89,7 @@ def test_recall_pages_use_correct_spelling(self): SHARED_FACTS = { "max_results default and maximum": { "AGENTS.mdx": r"\| `max_results` \| [^|]*\| default (\d+); max (\d+) \|", - "essentials/v2/query.mdx": r"\| `max_results` \|[^|]*Default `(\d+)`, maximum `(\d+)`", + "essentials/v2/query.mdx": r"`max_results`(?:\s*| \|)[^|<]*Default `(\d+)`, maximum `(\d+)`", "api-reference/v2/endpoint/query.mdx": r'name="max_results"[^|]*\|[^|]*to `(?P\d+)`\. Defaults to `(?P\d+)`', }, @@ -83,15 +100,15 @@ def test_recall_pages_use_correct_spelling(self): "metadata size limit": { "AGENTS.mdx": r"\| `metadata` \| [^|]*max (\d+ KiB)", "essentials/v2/context.mdx": r"\| `metadata` \| [^|]*Up to (\d+ KiB)", - "essentials/v2/metadata.mdx": r"\| `metadata` \| [^|]*\| (\d+ KiB)", + "essentials/v2/metadata.mdx": r"\| `metadata`(?: \(stored\))? \|(?: [^|]*\|)? (\d+ KiB)", }, "additional_metadata size limit": { "AGENTS.mdx": r"\| `additional_metadata` \| [^|]*max (\d+ KiB)", "essentials/v2/context.mdx": r"\| `additional_metadata` \| [^|]*Up to (\d+ KiB)", - "essentials/v2/metadata.mdx": r"\| `additional_metadata` \| [^|]*\| (\d+ KiB)", + "essentials/v2/metadata.mdx": r"\| `additional_metadata`(?: \(stored\))? \|(?: [^|]*\|)? (\d+ KiB)", }, "collections per query": { - "essentials/v2/query.mdx": r"\*\*Several collections:\*\*[^\n]*Up to (\d+);", + "essentials/v2/query.mdx": r"\*\*Several collections:\*\*[^\n]*[Uu]p to (\d+)[; ]", "api-reference/v2/endpoint/query.mdx": r"at most (\d+) collections", }, } @@ -114,8 +131,13 @@ def test_shared_facts_agree_across_pages(self): self.assertEqual(1, len(set(values.values())), values) def test_indexing_statuses_are_the_same_everywhere(self): + # The reference page is the one place that must list every status. + reference = self.read("api-reference/v2/endpoint/source-status.mdx") + for status in INDEXING_STATUSES: + self.assertIn(f"`{status}`", reference) sentence = re.search(r"moves forward through ([^:]*):", self.read("essentials/v2/context.mdx")) - self.assertEqual(INDEXING_STATUSES, re.findall(r"`(\w+)`", sentence.group(1))) + if sentence: # The guide may spell the sequence out; if it does, it must match. + self.assertEqual(INDEXING_STATUSES, re.findall(r"`(\w+)`", sentence.group(1))) used = set() for path in live_files("*.mdx"): if "/v2/" in str(path) or path.name == "AGENTS.mdx": diff --git a/scripts/test_docs_discovery.py b/scripts/test_docs_discovery.py index abba7918..77712c98 100644 --- a/scripts/test_docs_discovery.py +++ b/scripts/test_docs_discovery.py @@ -6,20 +6,15 @@ class DocsDiscoveryTest(unittest.TestCase): - def test_index_is_current_and_does_not_redirect_back_to_the_guide(self): - self.assertEqual(generate(), (ROOT / "llms.txt").read_text()) + def test_llms_txt_is_the_agent_guide(self): + """llms.txt and the Agent Integration Guide page must say the same thing.""" + text = (ROOT / "llms.txt").read_text() + self.assertEqual(generate(), text) + guide = (ROOT / "AGENTS.mdx").read_text().split("---\n", 2)[2].strip() + self.assertTrue(text.endswith(guide + "\n")) + self.assertTrue(text.startswith("# Complete Agent Integration Guide\n\n> ")) config = json.loads((ROOT / "docs.json").read_text()) self.assertFalse({"/llms.txt", "/llms-full.txt"} & {redirect["source"] for redirect in config["redirects"]}) - links = re.findall(r'https://docs\.hydradb\.com/([^\s)]+)\.md\)', generate()) - expected = {path.relative_to(ROOT).with_suffix("").as_posix() for path in ROOT.rglob("*.mdx") if not any(part.startswith(".") or part in {"node_modules", "archive", "snippets"} for part in path.relative_to(ROOT).parts)} - self.assertEqual(expected, set(links)) - self.assertEqual(len(links), len(set(links))) - self.assertIn("AGENTS", links) - self.assertIn("plugins/cursor", links) - self.assertIn("api-reference/v2/endpoint/sync-connector", links) - for slug in links: - self.assertTrue((ROOT / f"{slug}.mdx").is_file(), slug) - self.assertFalse(slug.startswith(("archive/", "snippets/")), slug) def test_each_legacy_api_page_has_the_shared_rendered_warning(self): config = json.loads((ROOT / "docs.json").read_text()) diff --git a/scripts/test_docs_examples.py b/scripts/test_docs_examples.py index e4a4cf3c..ab03217f 100644 --- a/scripts/test_docs_examples.py +++ b/scripts/test_docs_examples.py @@ -294,10 +294,14 @@ def __init__(self, *args, **kwargs): return module +from test_docs_consistency import hidden_pages # noqa: E402 + +HIDDEN_PAGES = hidden_pages() V2_PAGES = [GUIDE] + sorted( page for folder in ("get-started/v2", "essentials/v2", "api-reference/v2", "plugins") for page in (ROOT / folder).rglob("*.mdx") + if page not in HIDDEN_PAGES ) @@ -472,7 +476,7 @@ def test_every_typescript_block_type_checks(self): self.assertEqual(0, result.returncode, result.stdout + result.stderr) finally: shutil.rmtree(work, ignore_errors=True) - self.assertGreaterEqual(count, 100) + self.assertGreaterEqual(count, 85) class EndpointPages(unittest.TestCase): @@ -554,7 +558,7 @@ def test_json_blocks_parse_and_use_public_fields(self): if isinstance(sample, dict) and "query" in sample and "database" in sample \ and "params" not in sample: self.assertEqual([], unknown_keys(sample, request_schema(operation("POST", "/query")[1]))) - self.assertGreaterEqual(count, 120) + self.assertGreaterEqual(count, 85) @staticmethod def curl_calls(source): @@ -606,7 +610,7 @@ def test_curl_blocks_match_the_spec(self): if bound and source.strip() in request_example: self.assertEqual(bound, (method, operation(method, path)[0]), "the request example does not call the endpoint this page documents") - self.assertGreaterEqual(calls, 80) + self.assertGreaterEqual(calls, 70) def test_status_values_are_the_documented_ones(self): pages = V2_PAGES + sorted((ROOT / "cookbooks/v2").glob("*.mdx")) + sorted((ROOT / "snippets").glob("*.mdx")) From 5ccbfd32c1b6383853bd9fca706f7bb52a2d5172 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 09:36:01 +0000 Subject: [PATCH 04/33] test: the CLI and MCP pages name only HYDRADB_API_KEY Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01WY1LUg8AWZayst2djgnjNK Signed-off-by: Claude --- scripts/test_docs_consistency.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/test_docs_consistency.py b/scripts/test_docs_consistency.py index 52222ec8..bc67a9b3 100644 --- a/scripts/test_docs_consistency.py +++ b/scripts/test_docs_consistency.py @@ -66,10 +66,9 @@ def test_plugin_deprecation_notes_keep_old_api_key_name(self): ) matches.extend([str(path.relative_to(ROOT))] * count) - self.assertCountEqual( - ["plugins/claude-code.mdx", "plugins/cli.mdx", "plugins/mcp.mdx"], - matches, - ) + # The CLI and MCP pages name only the current variable. The Claude Code + # page keeps one note for people upgrading from the old name. + self.assertCountEqual(["plugins/claude-code.mdx"], matches) From 3aaabcbac9233d9c558363cab7225b3c7158c3c0 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 09:36:31 +0000 Subject: [PATCH 05/33] chore: remove compiled Python cache files committed by mistake Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01WY1LUg8AWZayst2djgnjNK Signed-off-by: Claude --- .../generate_llms_index.cpython-313.pyc | Bin 3200 -> 0 bytes .../__pycache__/sync_datalake.cpython-313.pyc | Bin 30994 -> 0 bytes scripts/__pycache__/sync_faq.cpython-313.pyc | Bin 42444 -> 0 bytes .../test_agents_guide.cpython-313.pyc | Bin 31640 -> 0 bytes .../test_cookbook_workflows.cpython-313.pyc | Bin 50019 -> 0 bytes .../__pycache__/test_cookbooks.cpython-313.pyc | Bin 51122 -> 0 bytes .../test_docs_consistency.cpython-313.pyc | Bin 17876 -> 0 bytes .../test_docs_discovery.cpython-313.pyc | Bin 4550 -> 0 bytes .../test_docs_examples.cpython-313.pyc | Bin 49667 -> 0 bytes .../test_sync_datalake.cpython-313.pyc | Bin 6172 -> 0 bytes .../__pycache__/test_sync_faq.cpython-313.pyc | Bin 7226 -> 0 bytes 11 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 scripts/__pycache__/generate_llms_index.cpython-313.pyc delete mode 100644 scripts/__pycache__/sync_datalake.cpython-313.pyc delete mode 100644 scripts/__pycache__/sync_faq.cpython-313.pyc delete mode 100644 scripts/__pycache__/test_agents_guide.cpython-313.pyc delete mode 100644 scripts/__pycache__/test_cookbook_workflows.cpython-313.pyc delete mode 100644 scripts/__pycache__/test_cookbooks.cpython-313.pyc delete mode 100644 scripts/__pycache__/test_docs_consistency.cpython-313.pyc delete mode 100644 scripts/__pycache__/test_docs_discovery.cpython-313.pyc delete mode 100644 scripts/__pycache__/test_docs_examples.cpython-313.pyc delete mode 100644 scripts/__pycache__/test_sync_datalake.cpython-313.pyc delete mode 100644 scripts/__pycache__/test_sync_faq.cpython-313.pyc diff --git a/scripts/__pycache__/generate_llms_index.cpython-313.pyc b/scripts/__pycache__/generate_llms_index.cpython-313.pyc deleted file mode 100644 index f4e7a66e82d5ff931329a35faa1b195fc52921de..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3200 zcmb7GOKcm*8J=A(xqONeZP^whDQinIO+%y_SgKoDP^==d9$TQEQV+ zVrHoa1qWSs1= zQ}|Oz5ypUzjhLtYZJ);)o0zx#w7!;Y>?$nELJ(o6Y=_yUxMj!qdkCqYAf%w!vBOfQ zP*W%ND&E*@hdE?XcFL}wf}KF`J4|oM`xQ}kN5E>_skqwob}9bY;9XbloZ%nlRJz93z*{Hqb)Q1Arx{C)Q;xyj+uTbi&B2``hczi(?L28N?0d?X z=E58m=2dg$Da%f>ks?c+McoF!y{MJoc#F1(;=IKH(^zBGas?z7(Hq<#dVyc~LH>S( z;$n;1Sj525g9F^;f}s0IE3rRD2X3*7mB}5lYWV-Sg=e?KdCSjIf@^leBODis(cpmsB%kGTI`uz>pI#Jw+u{?!EYU=)vH< zUv3MvzDT(*@_6VuVcvdtBFMcw1XqFD7J?u`1+YCISmb1M0ca`M&B7&ZVc`#irMD3l z&I$`Z$tsl!rn*F^o!L&PBaL%~JfWg$Bv*2nP*)1)@~PaKLFO<^SlEVLOv-jc+rX@D z2rG3-k}yLj%wPyJPyO&CZ@|R7eTGoqRsQkKzl0wQl;>sGzQ@h*-y-xbe5!qswlLg$ zPFM|p=pE!f4h(W(k-BxF8^i>IG-@Lzrb0$1CM-3R+6#uBGpLZ#ld!S!34Li_RWk*R zu)b@U#Z+Q8G200s0vNR`cHJJjccdovRm8rX&hD+Xt&aNH(VEy_5&L)jfm?;&ZT@z% z(tGjIP__4B**{fwPQ9E5oBZQYC(-BXvR=N9B>Hnm>tjzl7gaVC29&9GuL*WnjhkG01U`0cI2G|9E6 zCdOdnz+gbTh`=TOoNa;IPh+eV{(XT~&|4t5Pm^uU0777dIm%rt_KYj!Y+MPQdjCz! z;`$QK1~F3}7ATK3>L8kmlPi>)rFN^20q6t++^6ge(2j$0!XCx%OXyzUPd%UX+*h}S`>W;1rSib#FT1~*kJaWED)S4~p2b>EywVdd zEAM~Ra}Be<1x0>9qIOd^Gg?t_yC)^;NojR7g+vy4x0`ZqXmBC+&N~a##WI#)dBP__ znA)={B$RS8?y|Pf`Fb84b&y;E0~82Lxzq+YrfZoLJ`F4ud;$<%Z1~so3XcMjrIFl# z2^{%vN8q+n={Q;Q4Oe`_RbRApX*Y26k7qtUQ-1B-gI|0W`+VWiLN)NSTHs10aHSfU z`PEEmdTVsod#yCR_ust_Kln0M z_RN=sc`FFinMh<+-AE*gVk80;n!G{X#LQtWVd8=YXys6otgwsDW&;!_nkz{s5+Gkj zyCC6$A>}vB73hFhKS;&Vmb4W?XbClwk&K)XVa1`ZY7#tag)B5qy`e1N51*h;6{qtm zCK?slE1A)kFhhoVHo%KzJ)7ndmBg@re`*eLPy(We#VrZMIh-XW}cMg&3`tGQmdzX9Gi3IOfv1;qt@padHga7mm zR(+>Smv#hqO*mc=j^A}{50}~M{Enxq=IO0?daIuP(px)$V|RmyiArdq8k+nfR1IBu66h`W#j63O>{XsPedUg~ dzIIOk+j*qs?5{Zc@2-9A3_UxJgrMc|{{Y^MwK4zz diff --git a/scripts/__pycache__/sync_datalake.cpython-313.pyc b/scripts/__pycache__/sync_datalake.cpython-313.pyc deleted file mode 100644 index 41365e9ab38a55762d0fdfc087612b66a1a90a41..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 30994 zcmb`w3v?UTnI>3x5>EmoNbpTUd_&?x5+9Z*i83itA|;WMScFW8k|~G;CE6576+k@@ zw}+eVGfmlT1_0Tf`5AW+%E???!VFx`O-@ds)u$p z$G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V)pK}mY;UK+wq=ZFfAc)o~~5F oU_ahs?cT}#c&ENcr}^>T(tRbGpOhH!{FCa^9!~QgIUSz=KjSLAMgRZ+ diff --git a/scripts/__pycache__/sync_faq.cpython-313.pyc b/scripts/__pycache__/sync_faq.cpython-313.pyc deleted file mode 100644 index 2b469ab4f69045053061be91af4c40b410fd9bb0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 42444 zcmch=33waVohMkh?~~vyi6x2>35qv$QX*wux9r_&SJ@g(kJw*i9|7?|yNyS+2$lE+=OV}b6aA1cy%bU1dQ`)4-{1sJ zXS65XsM?V-Gb9?`?%xtOpu!IwePF8J2AJ8Rwh226idtbedTgM5l6lVSjZ9)mXJ*yHo3wwl8ma>NB zv<5k?J?T+$suk`N*0J|>Lc37LV)a6Yz_VC`&?&5Eu|}awC}*)Ip1o6sZFv)CTtsL;S-_X)>@Miy(wvnCen5RMDYEY^9lOW4xV&vAY` zhh96`UCy2CEa$dLoy%=iNs)kRShJox={0bEyb|}G+=r3adUCIwYgV5$_0Fb~XWfKt zJ278ay6vAM9m*AUWJ(h>;@-}^r&T8ptSE8k=g5g_*77;h-KE6ST&t#xJFW8e`oCb} zII}Pn8ssO=1o#VqQ{mu5fZyAGoPR7dc3~tiG#ubh`NIJ|7~=O&4T=7)jykisV=_20 z6z0c50sc`X-2kO~l=qL1^Wm{caWKG-2Sk3{j~q^mW1}cQ3I4g zyu^TiNG>$Mi-Ga6$}oSVtDip|90`Q^s?gX3D{d$-J~B3itf|#C{Dm{Y!83PccE%s( z=>svKB%caQAaNkX`}y(7@ELw$j34!*dJ|%BcsL-2S>|E%s<-Zr>?Xw#zLh^SF)#%YE#F;jH+Em9skRB8CPTCb0kpMptxHv%{;3lF*fuTCS{?y3WFp6OXpmw9-+OgBM;edEP zI2gDiH@_I*LsV~!^l*TNoO-Xhjz8@`SAWi5H{~B4p^4(>&mhCv3u16$0%LG|Q#+d> zeAT&0d=(rEQH#PC0%8q6Hcr3&BR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books.cpython-313.pyc deleted file mode 100644 index a10a1e49dc2ced2729a1ca85c0e7088532d5bd35..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 51122 zcmeIbd3+qleJ|K^VQ$>_#UTKa7?J=861>0z#Ki+701ATvAp+!R2nL z$GyzCIG%H9T-w7LUc=5>UdzrpUdPUQUXQcxu%RW1PjZN5jl7ZFGw~*NHuGk7w(u65 z^@lAjR^BF+wexo584lZ9lKEtomvlI##lojLxZb1^t~YHf`aws>8u1*PZk2v?tc}eT zuU$q1F8IvetP;*;%IA7BUFHfa+Nn?}YmuLl!O3mPIeZRkTB#@AX=5xHmm4|e7E{C4w z=X0)tty-~9d9C4N|yDmaTV8gbDTGw<52d#O!zgjihZ6mcz~E`WcXW*R1u89;wqb|gH+p`UKkM-N`yKvaM<4I&_xVQ$y+eUo zhtJ!0hHA@o2LotyWXRixMo*19ypF)=*eN{AJL(u1 zJ0vxMekdJqlm~|KSjU+Etbh2t-!aTP&J6|vBfg;_U%$o6pB_7ho;U`)gF^x5Mn~Tn zU*B1=@fKHmn`6W~J~Zsb<6_^rf4Gm;LI(q9yd%EAMtU&|@53AW#meGn&;v0BBg6iH z&v9|gWeE|&cD4t4v5ns!3#>e|AEg#bNZ*yt{{Za4e8JtsGgXczud~M!y z=pu%jZk-$MJBzbnbR4hsApusO1YKtIFV6Bk!| zp5yv4ds{O(&aHW#d)eUNTJt&1%3;oFw(ABoPVIylpVaq4<+=VBSO@*+l2a>aD>n(6 zkpNA7heOz0b!PaSuWBsd?WfOQe?ItBZ|FepmFmmY$oeE;LXj_L zlxVJ+OEeQUrNye}H%}PWQ!gh90{+2~5g#5Z->nE>$VcerUOlP{+QELogpcg)_l|l6 zGvLHKI*5rNWO)1g2kFu~IPX%{??U zf^{(9Ip^ii_G5zaX>>EAZ!9o6e9l8~$&dAkPs(I9yn(=AVASg$^^AA{KYQsL3Q4}_ z#sGbSsc+anO3*CeHN`8B*FP>6GMol%`yVFvof-5ER16PPpq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h_l^LK7uauKvOuIDDg9>%LPPbV!uT2 zJYw70EpHOGzLGRlZ1KZ5PgFw9isD#>9o}8^33Xu@_gLv=SO5m}3^0QNg#b}TR9Vl< zaPh;6Y+ICvI^;Z-iz?2`=e3kEB*Vo{OGBrmZC5s*go|8H+gv}CZDciwFCGFZN*hvB zN0K*=T;F(iV;7{J5e}-p83-~3>TeImzV~44`wzx`@Q>ep8m_@%D4Iv9#bVWR0ZA>U z-(n=Iw#rfx%j+ePkvsOe+(Pu!)o+ppsr z+x~$6XxuXXeD*J?Kc#McV1}fNJYaCfzYgxBpS1iU{PXa&!`Ic{4}2Q`ZM@vFf7;(` zSBs`!{G?%eL&`joEN@7a*8wrr&%J16hZ$&p>_TgLnZE|w?*`hR6Z)}!y#I|}AAj5D z>s{l;)Nx~B!4hOyhc}EYTRvIN!C9H5=~`K)uZ3z&y)36SOyI7rtKeEP7NIewUXS;J zuvW=3oVkXUlobPB6lV+YkwDAd8&HqzPlxHbXbTEE(g5Py=rJqs1?F+k$9McIwOkmt}A)`=H(dRhCfDHG?{V)!_VdLAD;v)0#W2i0RC5n`@1gq7&`uNWeCmFUNi!3| oOek!I!cP&+J=)74u6DdwcCDG^YQNL}js9;Pf8;`3likIC00njw`~Uy| diff --git a/scripts/__pycache__/test_docs_examples.cpython-313.pyc b/scripts/__pycache__/test_docs_examples.cpython-313.pyc deleted file mode 100644 index 7b7b56ec3e1c2b3d65aa60ad85962830e40e1b70..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 49667 zcmd442~=BWo+o;>3oS^1*fEI3Hee9O;00`h!7K)|*j!{|Lo5p@UIDo=G! zH%`}_;4E#jbOl%PI;1BinR!W^I;mv( z&Ai|LySkDfO5*D7cjkQ@zI%1QegE&@J)=>_!TsuyFCJX-aoqnwKP0D(yxjYtg5#d% zcuwGW881IB6J+cu7v$`z5EOVSjw?G=g32n!Q44AorV%vksTH*BnIt5!r%uqZr(V#r zr$I2_sXT7zGz!U)JWPTK-&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2lX`>_1k}I3^YYFqM;B1{_V@bV>>E8gesr>7XV|;*jjoZ-3tgA{ujRCVYVNov<+QV8qaP>Q zYCV>Zm&5@owmw!}TOa12hxsAk6JT_K5u+?v0N`qjnbEUPmLkgp0;33)Pzg5y=CSuW z-bfHfoND-Epi2bEwk6n(D=_@YE1tA9y;TIy!yXt*g?<+bdm4uwZx&s%H4QY*B0J#* zem22rTz;p5i?iR2F&lenjf=D2VY{;qr*ShsTajd3{@vmvV}QRm_e>0zvYBUd@)bw5 zIqsb}0Cro!iypzMo+u-Ct-xXsy+~94MVt^WV2_e6_Z>LYvsa+yPgqLeuT(-JFiPMe zfgJ?M$6AP`B3am*F(2#gfrlI%u}EMsV*$s9hCEE$CJ>R&Lg5L+RBH>Bh(kEN{jkR~ zu-cTml~TG2>)16^qu_AKGEJk#>Jey#6wFitJ*5&s8Al}2&@xUqmrD2vFnuD^Oa7Pc z`5ywmCBXEKj63G(FrVr&TCa(!H4@lEpqqe?ifA<9D|GI40>cE{xH^-@I*E@uxSQPU zVIv3;#tEUAYL*gUxQtCGa|;G&69NRw@tnx1Qnm+Ub0djbi=`w+Y--9*6y>et{akg)y;nkC}VozFBI=yIRc+pBJwQ`bM^?ghX zA9L5tnJt42KRr2Z$_bltB-4^XR(l1M$}_$p9wTKFMjWh5ivlgEBA%LEhx6S6q@SFJW6Q1Mwin|=a**-%&Z~xB8 z@uitY#!H{IgxE^ac-F&L~rENf}v6*Z({109pTOR-b diff --git a/scripts/__pycache__/test_sync_datalake.cpython-313.pyc b/scripts/__pycache__/test_sync_datalake.cpython-313.pyc deleted file mode 100644 index 97587141777760ba97ed71e5c7435dd2e99b967f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6172 zcmbVQTWl298J^qj&faVKsth>4|&|hHnt{-8Y!wGUMg-?B>K|-%muO#=at(hw|EHRJN(DGY=z40-$La)!4Vv}pFn0w zA`<>n`>B02q64^%-p}l_A)8Sr_uG-9j%Xn`rh(vW$H{1w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@zTMU9 zaee@2xo#Z}Z15Q(9N4&ceng39jKdob&*Obm;Z7w!)Ilno?16q$cpl;132MYN5j|wCtzc9h42}JVQ{)raSr$uaf_mCQSuf`+d6K! z+%}cG)lg~MaI3{;Tl3!vn{B=MIDQh3dqj|Ao)3Bqe%INIENM78@GezLrlcYBM9OQm zhewpyDRWEdU38>n3ORNFp6wOj6w?@462FAOuUIm0o!w@BrX5HF9|(RzeHP3Onk31u z2=`Y+BS#L7GNPICRZJ@fw7yubAh0e^0Q&R{&_*%`Wif${wMz%LH`@`W2T J!890C`#;VAkB0yN diff --git a/scripts/__pycache__/test_sync_faq.cpython-313.pyc b/scripts/__pycache__/test_sync_faq.cpython-313.pyc deleted file mode 100644 index 5a615be55ae23ab67c57fedcf0706a52d1dee9ac..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7226 zcmcIpU2GdycD}%SN$5viIQo{*+mD?nZI+-9iH>u@0@$I9EpSo9RK{q@~vNo3HbxwR1Ud(v3yS;XJLdE5`M3DaM`)y##7N4&gQNo2#i5-wMvC4u z8s(Zn(3CgPY~-4Cpc&dka|_q32hH#%np>|or6S!|3DLF^0=n%_e`$_uXI?2#WzEUrId5miGu0nejucrw08c+A*9l;QAT9tCz8!>0 zDG{VUC4mg2{4_WghzH$Vy-8*lX~s|(&Gf{y zu6*Grj8Bx`fgMyvGjYkS*BCRXb84cf` zM8!Rl$l7@$Q3MN#ylFW(b9Aaxw=*nJMnhsF65Ln#liRkbt47Yq8u{P2Jy>lbhVq$V_xGd+Y@!U(GJ zV`vpul_vz~^1P5@l`DoYAt4PAYQYK4M9nL2J51y#!d2D64q)$-@K-L;_bVq<{_ z2}^=_k1YFyZG*zhz<)NqwA9r8sHuIndA_M@X5ewS@q>$ZF5Wx%;OIiQy>i$7VBk05 z_;++) zRkgIdp{j03Rr9u9%;9xdRguTaZ=$L?YElNQWEqyNsuU4GaX$JZ5bicrWsc^U8C7!} zYNm?-M9|ue3K(V%Pl^eI3q&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dai??!KU~Pp4Gpj!pJ_$b+v)c0CgXk5i z-99W=+-^x%q@nT;1hv(p((!5{Z~5N}FfjoIB5d2?M;Bp^!dqA0!aih|c-eO`>}{y6 zpyjs$(A3$4R#H;RePhRDf2SD`|9$xqgX@+JvrYx zP-+?|g$Mq3StPAgV7Nnhu%)jt00mva1h(TD&TUE!_YGf3sh2NZxS*y^oxC(SkfI11 zSI}G`?TX{Z)O3B;aSE(Ek${o(O?U}=E(v@{DF)Z|gTpdeH(;l485zf8=kPl~13<5w z2Ou%?Rz`r@MN4P&&tVkBU(0YjIPS-u+az?3+g!_K$5DF<1UhKz_Pe(~>X->Wk;J-F z!b*rVZ2jQcooi)&ot*vALwPaM_jP0Q--JF4Ej8|$Yuxjz_EJaR7e^KwPjTwq^C-OM z!K<_4gF~~%=Wl;8un;~Alp=lq(Rd1!zxVFJ+V^ZP%>M8||4#ACT|4{h z{a<#=aQ#(%sK2f5t8GEN-WlpY6kNx3=yhC9%a{b7Rk`8PNr_!PSPDK^2IWP|ds6;E zH&mc@24IF6sSdYLIRhF#uvdEQs(0tPK@*(6uCw$i`_%8}i0zQAYw*^8iY%%ff zl^WmX232TMXP`NB3Ezlpin(&-zaVZ9i8g1Zy~+)#fDWNr0ID)*t%JHl(Hbw%bnLrb6!>@AXq}ToGr9XplSaq+eY0?}_-n{B!yJ=+C2fg%4l-(7AW!qrX^c>6~ln zoNq}iwY)ah^4fgU@dffa3|R>@2)%c&E^Rw7x9z|Rft!_By^y$jW~q7qT=V`F0yir= zgTjC?bJgRl6@qsw&0B@;yV<4f2j{jQTp@7t?I9wCXQt=Hw#QQV{fmEj@vkm@D-vl3 H_xAq*0LNYA From 490091dd05a816a6421925ec6efbff004600f482 Mon Sep 17 00:00:00 2001 From: SohamRatnaparkhi <92905626+SohamRatnaparkhi@users.noreply.github.com> Date: Sun, 15 Nov 2026 17:32:28 +0000 Subject: [PATCH 06/33] docs: align verified API contracts providers and client guidance Signed-off-by: SohamRatnaparkhi <92905626+SohamRatnaparkhi@users.noreply.github.com> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- .gitignore | 5 +- AGENTS.mdx | 15 +- README.md | 3 + .../v2/endpoint/byog-create-database.mdx | 63 + .../v2/endpoint/byog-delete-collection.mdx | 67 + .../v2/endpoint/byog-delete-database.mdx | 68 + .../v2/endpoint/byog-list-collections.mdx | 62 + .../v2/endpoint/byog-query-managed.mdx | 69 + api-reference/v2/endpoint/byog-query.mdx | 80 + .../v2/endpoint/context-overview.mdx | 2 +- api-reference/v2/endpoint/ingest-context.mdx | 5 +- api-reference/v2/endpoint/query-overview.mdx | 2 +- api-reference/v2/endpoint/query.mdx | 18 +- api-reference/v2/openapi.json | 2927 ++++++++++++----- api-reference/v2/sdks.mdx | 15 +- cookbooks/v2/cursor.mdx | 2 +- cookbooks/v2/personal-assistant.mdx | 2 +- docs.json | 149 +- essentials/v2/bring-your-own-graph.mdx | 6 +- essentials/v2/connector-providers.mdx | 111 + essentials/v2/connectors.mdx | 6 +- essentials/v2/connectors/affinity.mdx | 28 + essentials/v2/connectors/airtable.mdx | 31 + essentials/v2/connectors/amplitude.mdx | 27 + essentials/v2/connectors/asana.mdx | 36 + essentials/v2/connectors/attio.mdx | 39 + essentials/v2/connectors/avoma.mdx | 28 + essentials/v2/connectors/bamboohr.mdx | 29 + essentials/v2/connectors/bigquery.mdx | 35 + essentials/v2/connectors/bookstack.mdx | 29 + essentials/v2/connectors/box.mdx | 27 + essentials/v2/connectors/calendly.mdx | 27 + essentials/v2/connectors/chargebee.mdx | 30 + essentials/v2/connectors/clickup.mdx | 34 + essentials/v2/connectors/coda.mdx | 30 + essentials/v2/connectors/codat.mdx | 30 + essentials/v2/connectors/confluence.mdx | 28 + essentials/v2/connectors/contentful.mdx | 28 + essentials/v2/connectors/copper.mdx | 33 + essentials/v2/connectors/crossbeam.mdx | 30 + essentials/v2/connectors/datadog.mdx | 46 + essentials/v2/connectors/discord.mdx | 34 + essentials/v2/connectors/dropbox.mdx | 27 + essentials/v2/connectors/dynamics.mdx | 30 + essentials/v2/connectors/eloqua.mdx | 29 + essentials/v2/connectors/figma.mdx | 27 + essentials/v2/connectors/fireflies.mdx | 27 + essentials/v2/connectors/freshdesk.mdx | 33 + essentials/v2/connectors/ga4.mdx | 35 + essentials/v2/connectors/github.mdx | 28 + essentials/v2/connectors/gitlab.mdx | 34 + essentials/v2/connectors/gmail.mdx | 27 + essentials/v2/connectors/gong.mdx | 38 + essentials/v2/connectors/google-calendar.mdx | 27 + essentials/v2/connectors/google-drive.mdx | 27 + .../v2/connectors/google-search-console.mdx | 32 + essentials/v2/connectors/google-sheets.mdx | 28 + essentials/v2/connectors/googleads.mdx | 55 + essentials/v2/connectors/gorgias.mdx | 28 + essentials/v2/connectors/granola.mdx | 27 + essentials/v2/connectors/greenhouse.mdx | 31 + essentials/v2/connectors/guru.mdx | 32 + essentials/v2/connectors/helpscout.mdx | 28 + essentials/v2/connectors/hubspot.mdx | 35 + essentials/v2/connectors/intercom.mdx | 37 + essentials/v2/connectors/iterable.mdx | 29 + essentials/v2/connectors/jira.mdx | 29 + essentials/v2/connectors/klaviyo.mdx | 32 + essentials/v2/connectors/kustomer.mdx | 28 + essentials/v2/connectors/launchdarkly.mdx | 42 + essentials/v2/connectors/lever.mdx | 32 + essentials/v2/connectors/linear.mdx | 27 + essentials/v2/connectors/linkedin-ads.mdx | 34 + essentials/v2/connectors/loom.mdx | 27 + essentials/v2/connectors/mailchimp.mdx | 29 + essentials/v2/connectors/marketo.mdx | 29 + essentials/v2/connectors/microsoft-teams.mdx | 37 + essentials/v2/connectors/mixpanel.mdx | 31 + essentials/v2/connectors/monday.mdx | 36 + essentials/v2/connectors/ms-graph.mdx | 39 + essentials/v2/connectors/netsuite.mdx | 30 + essentials/v2/connectors/nextcloud.mdx | 27 + essentials/v2/connectors/notion.mdx | 27 + essentials/v2/connectors/okta.mdx | 37 + essentials/v2/connectors/outlook.mdx | 35 + essentials/v2/connectors/outreach.mdx | 30 + essentials/v2/connectors/pagerduty.mdx | 36 + essentials/v2/connectors/pardot.mdx | 29 + essentials/v2/connectors/pendo.mdx | 41 + essentials/v2/connectors/pipedrive.mdx | 34 + essentials/v2/connectors/posthog.mdx | 30 + essentials/v2/connectors/quickbooks.mdx | 31 + essentials/v2/connectors/recurly.mdx | 30 + essentials/v2/connectors/ringcentral.mdx | 28 + essentials/v2/connectors/salesforce.mdx | 30 + essentials/v2/connectors/segment.mdx | 31 + essentials/v2/connectors/sendgrid.mdx | 30 + essentials/v2/connectors/sentry.mdx | 31 + essentials/v2/connectors/servicenow.mdx | 34 + essentials/v2/connectors/sharepoint.mdx | 36 + essentials/v2/connectors/shortcut.mdx | 29 + essentials/v2/connectors/slack.mdx | 27 + essentials/v2/connectors/smartsheet.mdx | 25 + essentials/v2/connectors/stripe.mdx | 30 + essentials/v2/connectors/supabase.mdx | 31 + essentials/v2/connectors/surveymonkey.mdx | 33 + essentials/v2/connectors/tableau.mdx | 40 + essentials/v2/connectors/trello.mdx | 27 + essentials/v2/connectors/twilio.mdx | 30 + essentials/v2/connectors/twitter.mdx | 37 + essentials/v2/connectors/typeform.mdx | 29 + essentials/v2/connectors/uservoice.mdx | 28 + essentials/v2/connectors/workday-raas.mdx | 28 + essentials/v2/connectors/wrike.mdx | 28 + essentials/v2/connectors/xero.mdx | 33 + essentials/v2/connectors/zendesk.mdx | 29 + essentials/v2/connectors/zoho-crm.mdx | 31 + essentials/v2/connectors/zoom.mdx | 29 + essentials/v2/connectors/zuora.mdx | 30 + essentials/v2/context.mdx | 18 +- essentials/v2/metadata-2.mdx | 4 +- essentials/v2/query.mdx | 19 +- llms.txt | 15 +- plugins/cli.mdx | 52 +- plugins/mcp.mdx | 52 +- scripts/connector_capabilities.json | 1163 +++++++ scripts/generate_connector_pages.py | 95 + scripts/test_connector_pages.py | 61 + scripts/test_cookbooks.py | 17 +- scripts/test_docs_consistency.py | 124 + scripts/test_docs_examples.py | 17 +- 131 files changed, 7446 insertions(+), 941 deletions(-) create mode 100644 api-reference/v2/endpoint/byog-create-database.mdx create mode 100644 api-reference/v2/endpoint/byog-delete-collection.mdx create mode 100644 api-reference/v2/endpoint/byog-delete-database.mdx create mode 100644 api-reference/v2/endpoint/byog-list-collections.mdx create mode 100644 api-reference/v2/endpoint/byog-query-managed.mdx create mode 100644 api-reference/v2/endpoint/byog-query.mdx create mode 100644 essentials/v2/connector-providers.mdx create mode 100644 essentials/v2/connectors/affinity.mdx create mode 100644 essentials/v2/connectors/airtable.mdx create mode 100644 essentials/v2/connectors/amplitude.mdx create mode 100644 essentials/v2/connectors/asana.mdx create mode 100644 essentials/v2/connectors/attio.mdx create mode 100644 essentials/v2/connectors/avoma.mdx create mode 100644 essentials/v2/connectors/bamboohr.mdx create mode 100644 essentials/v2/connectors/bigquery.mdx create mode 100644 essentials/v2/connectors/bookstack.mdx create mode 100644 essentials/v2/connectors/box.mdx create mode 100644 essentials/v2/connectors/calendly.mdx create mode 100644 essentials/v2/connectors/chargebee.mdx create mode 100644 essentials/v2/connectors/clickup.mdx create mode 100644 essentials/v2/connectors/coda.mdx create mode 100644 essentials/v2/connectors/codat.mdx create mode 100644 essentials/v2/connectors/confluence.mdx create mode 100644 essentials/v2/connectors/contentful.mdx create mode 100644 essentials/v2/connectors/copper.mdx create mode 100644 essentials/v2/connectors/crossbeam.mdx create mode 100644 essentials/v2/connectors/datadog.mdx create mode 100644 essentials/v2/connectors/discord.mdx create mode 100644 essentials/v2/connectors/dropbox.mdx create mode 100644 essentials/v2/connectors/dynamics.mdx create mode 100644 essentials/v2/connectors/eloqua.mdx create mode 100644 essentials/v2/connectors/figma.mdx create mode 100644 essentials/v2/connectors/fireflies.mdx create mode 100644 essentials/v2/connectors/freshdesk.mdx create mode 100644 essentials/v2/connectors/ga4.mdx create mode 100644 essentials/v2/connectors/github.mdx create mode 100644 essentials/v2/connectors/gitlab.mdx create mode 100644 essentials/v2/connectors/gmail.mdx create mode 100644 essentials/v2/connectors/gong.mdx create mode 100644 essentials/v2/connectors/google-calendar.mdx create mode 100644 essentials/v2/connectors/google-drive.mdx create mode 100644 essentials/v2/connectors/google-search-console.mdx create mode 100644 essentials/v2/connectors/google-sheets.mdx create mode 100644 essentials/v2/connectors/googleads.mdx create mode 100644 essentials/v2/connectors/gorgias.mdx create mode 100644 essentials/v2/connectors/granola.mdx create mode 100644 essentials/v2/connectors/greenhouse.mdx create mode 100644 essentials/v2/connectors/guru.mdx create mode 100644 essentials/v2/connectors/helpscout.mdx create mode 100644 essentials/v2/connectors/hubspot.mdx create mode 100644 essentials/v2/connectors/intercom.mdx create mode 100644 essentials/v2/connectors/iterable.mdx create mode 100644 essentials/v2/connectors/jira.mdx create mode 100644 essentials/v2/connectors/klaviyo.mdx create mode 100644 essentials/v2/connectors/kustomer.mdx create mode 100644 essentials/v2/connectors/launchdarkly.mdx create mode 100644 essentials/v2/connectors/lever.mdx create mode 100644 essentials/v2/connectors/linear.mdx create mode 100644 essentials/v2/connectors/linkedin-ads.mdx create mode 100644 essentials/v2/connectors/loom.mdx create mode 100644 essentials/v2/connectors/mailchimp.mdx create mode 100644 essentials/v2/connectors/marketo.mdx create mode 100644 essentials/v2/connectors/microsoft-teams.mdx create mode 100644 essentials/v2/connectors/mixpanel.mdx create mode 100644 essentials/v2/connectors/monday.mdx create mode 100644 essentials/v2/connectors/ms-graph.mdx create mode 100644 essentials/v2/connectors/netsuite.mdx create mode 100644 essentials/v2/connectors/nextcloud.mdx create mode 100644 essentials/v2/connectors/notion.mdx create mode 100644 essentials/v2/connectors/okta.mdx create mode 100644 essentials/v2/connectors/outlook.mdx create mode 100644 essentials/v2/connectors/outreach.mdx create mode 100644 essentials/v2/connectors/pagerduty.mdx create mode 100644 essentials/v2/connectors/pardot.mdx create mode 100644 essentials/v2/connectors/pendo.mdx create mode 100644 essentials/v2/connectors/pipedrive.mdx create mode 100644 essentials/v2/connectors/posthog.mdx create mode 100644 essentials/v2/connectors/quickbooks.mdx create mode 100644 essentials/v2/connectors/recurly.mdx create mode 100644 essentials/v2/connectors/ringcentral.mdx create mode 100644 essentials/v2/connectors/salesforce.mdx create mode 100644 essentials/v2/connectors/segment.mdx create mode 100644 essentials/v2/connectors/sendgrid.mdx create mode 100644 essentials/v2/connectors/sentry.mdx create mode 100644 essentials/v2/connectors/servicenow.mdx create mode 100644 essentials/v2/connectors/sharepoint.mdx create mode 100644 essentials/v2/connectors/shortcut.mdx create mode 100644 essentials/v2/connectors/slack.mdx create mode 100644 essentials/v2/connectors/smartsheet.mdx create mode 100644 essentials/v2/connectors/stripe.mdx create mode 100644 essentials/v2/connectors/supabase.mdx create mode 100644 essentials/v2/connectors/surveymonkey.mdx create mode 100644 essentials/v2/connectors/tableau.mdx create mode 100644 essentials/v2/connectors/trello.mdx create mode 100644 essentials/v2/connectors/twilio.mdx create mode 100644 essentials/v2/connectors/twitter.mdx create mode 100644 essentials/v2/connectors/typeform.mdx create mode 100644 essentials/v2/connectors/uservoice.mdx create mode 100644 essentials/v2/connectors/workday-raas.mdx create mode 100644 essentials/v2/connectors/wrike.mdx create mode 100644 essentials/v2/connectors/xero.mdx create mode 100644 essentials/v2/connectors/zendesk.mdx create mode 100644 essentials/v2/connectors/zoho-crm.mdx create mode 100644 essentials/v2/connectors/zoom.mdx create mode 100644 essentials/v2/connectors/zuora.mdx create mode 100644 scripts/connector_capabilities.json create mode 100644 scripts/generate_connector_pages.py create mode 100644 scripts/test_connector_pages.py diff --git a/.gitignore b/.gitignore index dbf9efd3..cfeaf18d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ node_modules __pycache__/ -scripts +/scripts/* +!/scripts/connector_capabilities.json +!/scripts/generate_connector_pages.py +!/scripts/test_connector_pages.py .nvmrc # mintlify-hygiene CLI (downloaded via install script) diff --git a/AGENTS.mdx b/AGENTS.mdx index 89ae956c..58d7324e 100644 --- a/AGENTS.mdx +++ b/AGENTS.mdx @@ -237,7 +237,7 @@ Explicit relations are links you declare between sources at ingest: - Use `ids`. - Declare `relations` on `document_metadata[]` items. They link knowledge sources; memory items do not take `relations`. -- A query pulls the related chunks into `data.additional_context` only in `mode: "thinking"` with `query_explicit_relations: true` (the default). +- A query pulls the related chunks into `data.additional_graph_context` only in `mode: "thinking"` with `query_explicit_relations: true` (the default). The legacy response alias `data.additional_context` contains the same map. ### Access control @@ -656,8 +656,7 @@ Memory item fields: | `text` | raw text or Markdown; required unless `user_assistant_pairs` provided | | `user_assistant_pairs` | dialogue pairs `{ user, assistant }`; useful for implied preferences | | `is_markdown` | preserve Markdown structure during chunking | -| `infer` | `true`: the input is raw signal and HydraDB extracts the durable preference or fact. `false`: the memory is already structured and is stored verbatim | -| `custom_instructions` | guide inference when `infer: true` | +| `infer` | defaults to `true`, including omitted `infer` on legacy `memories` items: HydraDB extracts the durable preference or fact. Explicit `false` stores the memory verbatim | | `user_name` | helps inference | | `metadata` | schema-aligned fields, as an object (do not stringify it again inside `memories`). `tenant_metadata` is not read on memory items. | | `additional_metadata` | free-form fields; keep as objects | @@ -769,16 +768,16 @@ Rules: | `collection` | string/null | the collection the context was saved in; default collection if omitted | | `collections` | list of collection IDs, or an object of weights | query up to 100 collections at once; every listed collection must exist. Send weights, such as `{"user_alex": 2, "company_docs": 1}`, to rank one collection over another | | `query` | string | required | -| `type` | `knowledge`, `memory`, `all` | store selector for knowledge, memories, or both | +| `type` | `knowledge`, `memory`, `all` | defaults to `all`, searching knowledge and memories; choose a type to narrow it | | `acl` | list of principals | who is asking; see [Send `acl` on user queries](#send-acl-on-user-queries) | | `query_by` | `hybrid`, `text` | default `hybrid` (semantic + BM25); `text` is BM25 keyword/phrase search | | `operator` | `or`, `and`, `phrase` | only for `query_by: "text"` | | `mode` | `fast`, `thinking`, `auto` | applies to hybrid; omitted means `auto`, which picks fast or thinking per query (thinking when unsure). `fast` is low latency. `thinking` adds query expansion, reranking, richer graph traversal, and explicit-relation expansion; it improves quality but adds latency | | `max_results` | integer/null | default 10; max 250 | | `alpha` | `0.0` to `1.0`, or `auto` | hybrid weight; `1.0` semantic, `0.0` BM25 | -| `recency_bias` | `0.0` to `1.0` | boost newer content; omitted means `0.4`, send `0` to disable | +| `recency_bias` | `0.0` to `1.0` | boost newer content; omitted means `0.6`, send `0` to disable | | `graph_context` | boolean | default true; include graph slice; `false` only takes effect in fast mode, thinking always includes it | -| `query_explicit_relations` | boolean | default true; returns explicitly related chunks in `data.additional_context`; only effective in `thinking` mode | +| `query_explicit_relations` | boolean | default true; returns explicitly related chunks in `data.additional_graph_context`; only effective in `thinking` mode | | `additional_graph_context` | string | short factual hint that sharpens retrieval; not a hard filter | | `metadata_filters` | object | deterministic filters before/around ranking | | `query_apps` | boolean | app-aware retrieval lane for content synced by connectors; still searches the full selected knowledge scope; defaults to `true` on `/query`, send `false` to disable | @@ -882,7 +881,7 @@ The successful `data` object / SDK return is a `RetrievalResult`: "chunk_relations": [], "chunk_id_to_group_ids": {} }, - "additional_context": {}, + "additional_graph_context": {}, "llm_prompt": "..." } ``` @@ -901,7 +900,7 @@ Use `chunks` as the primary LLM context. Preserve server order, which is the ran - Include a grounding instruction: answer only from the provided context, and say when the context is insufficient. - Start with `max_results: 10`; reduce it for tight context windows. - Use graph context only when it helps the question. -- Use `data.additional_context` to attach explicitly related chunks by `chunk_uuid` / `extra_context_ids`. +- Use `data.additional_graph_context` to attach explicitly related chunks by `chunk_uuid` / `extra_context_ids`. It is a response map, separate from the request's `additional_graph_context` string hint. The legacy `data.additional_context` response alias contains the same map. - For personalized answers, `type: "all"` is simplest: one result set already merges knowledge and memories. Python: diff --git a/README.md b/README.md index f33c8fe2..6d67d472 100644 --- a/README.md +++ b/README.md @@ -46,11 +46,14 @@ python .github/verify_v2_public_contract.py python -m unittest discover -s .github -p 'test_v2_schema_types.py' python scripts/verify_agents_endpoints.py python scripts/generate_llms_index.py --check +python scripts/generate_connector_pages.py --check pnpm mintlify validate ``` When adding or removing a documentation page, regenerate the complete agent index with `python scripts/generate_llms_index.py`. Mintlify serves the root `llms.txt`; `llms-full.txt` remains Mintlify-generated. These local contract tests don't prove live indexing or authenticated vendor workflows. +Connector capability pages are generated with `python scripts/generate_connector_pages.py` from `scripts/connector_capabilities.json`. The snapshot records the application and dashboard source commits, the export checksum, and the proven provider aliases. Refresh it from the public provider descriptions and source-backed dashboard setup guidance, not marketing labels or guessed object types. Keep empty object-type lists when the descriptor does not enumerate them, then register any new pages in `docs.json`. + ## Content Structure ``` diff --git a/api-reference/v2/endpoint/byog-create-database.mdx b/api-reference/v2/endpoint/byog-create-database.mdx new file mode 100644 index 00000000..1116ac38 --- /dev/null +++ b/api-reference/v2/endpoint/byog-create-database.mdx @@ -0,0 +1,63 @@ +--- +title: "Create Graph Database" +description: "Create a database for a graph you manage yourself." +openapi: "api-reference/v2/openapi.json POST /byog/databases" +--- + +Create a database before writing your graph. An existing name returns `409`. The response reports `status: "ready"` or `status: "provisioning"`; wait for [Database Status](/api-reference/v2/endpoint/database-status) to report readiness before querying a database that is still provisioning. + + + +```python Python SDK +response = client.byog.create_database( + database="crm", +) +print(response.data) +``` + +```typescript TypeScript SDK +const response = await client.byog.createDatabase({ + database: "crm", +}); +console.log(response.data); +``` + + +```bash cURL +curl -X POST 'https://api.hydradb.com/byog/databases' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{"database": "crm"}' +``` + + + + + +```json 200 +{ + "success": true, + "data": { + "database": "crm", + "status": "ready", + "cluster": "shared" + }, + "error": null, + "meta": { + "request_id": "req_byog_example", + "latency_ms": 12.3 + } +} +``` + + + + +Graph collections are created on their first write through [Query Graph](/api-reference/v2/endpoint/byog-query). An existing database created through the standard database API can also hold graph collections. + +## Related resources + +- [Query Graph](/api-reference/v2/endpoint/byog-query) +- [Delete Graph Database](/api-reference/v2/endpoint/byog-delete-database) +- [Bring Your Own Graph](/essentials/v2/bring-your-own-graph) diff --git a/api-reference/v2/endpoint/byog-delete-collection.mdx b/api-reference/v2/endpoint/byog-delete-collection.mdx new file mode 100644 index 00000000..afbc76c9 --- /dev/null +++ b/api-reference/v2/endpoint/byog-delete-collection.mdx @@ -0,0 +1,67 @@ +--- +title: "Delete Graph Collection" +description: "Delete one graph collection and all of its content." +openapi: "api-reference/v2/openapi.json DELETE /byog/collections" +--- + +Delete a collection from a graph you manage. Deleting a collection that does not exist also succeeds. This endpoint does not delete a managed context collection. + + + Deleting a graph collection removes all of its nodes and relations. This cannot be undone. + + + + +```python Python SDK +response = client.byog.delete_collection( + database="crm", + collection="contacts", +) +print(response.data) +``` + +```typescript TypeScript SDK +const response = await client.byog.deleteCollection({ + database: "crm", + collection: "contacts", +}); +console.log(response.data); +``` + + +```bash cURL +curl -X DELETE 'https://api.hydradb.com/byog/collections' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{"database": "crm", "collection": "contacts"}' +``` + + + + + +```json 200 +{ + "success": true, + "data": { + "database": "crm", + "collection": "contacts", + "deleted": true + }, + "error": null, + "meta": { + "request_id": "req_byog_example", + "latency_ms": 12.3 + } +} +``` + + + + +## Related resources + +- [List Graph Collections](/api-reference/v2/endpoint/byog-list-collections) +- [Delete Graph Database](/api-reference/v2/endpoint/byog-delete-database) +- [Bring Your Own Graph](/essentials/v2/bring-your-own-graph) diff --git a/api-reference/v2/endpoint/byog-delete-database.mdx b/api-reference/v2/endpoint/byog-delete-database.mdx new file mode 100644 index 00000000..6606c708 --- /dev/null +++ b/api-reference/v2/endpoint/byog-delete-database.mdx @@ -0,0 +1,68 @@ +--- +title: "Delete Graph Database" +description: "Remove graph collections and a BYOG-created database." +openapi: "api-reference/v2/openapi.json DELETE /byog/databases" +--- + +Delete all graph collections in a database. If the database was created through [Create Graph Database](/api-reference/v2/endpoint/byog-create-database), the database is deleted too. For a database created through the standard database API, only its graph collections are removed: `data.deleted` is `false` and the database remains. + + + This removes the graph collections and their content permanently. Check the database name before sending the request. + + + + +```python Python SDK +response = client.byog.delete_database( + database="crm", +) +print(response.data) +``` + +```typescript TypeScript SDK +const response = await client.byog.deleteDatabase({ + database: "crm", +}); +console.log(response.data); +``` + + +```bash cURL +curl -X DELETE 'https://api.hydradb.com/byog/databases' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{"database": "crm"}' +``` + + + + + +```json 200 +{ + "success": true, + "data": { + "database": "crm", + "deleted": true, + "deleted_collections": [ + "contacts" + ], + "cluster": "shared" + }, + "error": null, + "meta": { + "request_id": "req_byog_example", + "latency_ms": 12.3 + } +} +``` + + + + +## Related resources + +- [Create Graph Database](/api-reference/v2/endpoint/byog-create-database) +- [List Graph Collections](/api-reference/v2/endpoint/byog-list-collections) +- [Delete Database](/api-reference/v2/endpoint/delete-database): delete a standard database diff --git a/api-reference/v2/endpoint/byog-list-collections.mdx b/api-reference/v2/endpoint/byog-list-collections.mdx new file mode 100644 index 00000000..f331dafa --- /dev/null +++ b/api-reference/v2/endpoint/byog-list-collections.mdx @@ -0,0 +1,62 @@ +--- +title: "List Graph Collections" +description: "List the graph collections within a database." +openapi: "api-reference/v2/openapi.json GET /byog/collections" +--- + +List collections for a graph you manage. An unknown database returns `404`. This endpoint does not list managed context collections. + + + +```python Python SDK +response = client.byog.list_collections( + database="crm", +) +print(response.data) +``` + +```typescript TypeScript SDK +const response = await client.byog.listCollections({ + database: "crm", +}); +console.log(response.data); +``` + + +```bash cURL +curl 'https://api.hydradb.com/byog/collections?database=crm' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" +``` + + + + + +```json 200 +{ + "success": true, + "data": { + "database": "crm", + "collections": [ + "contacts" + ] + }, + "error": null, + "meta": { + "request_id": "req_byog_example", + "latency_ms": 12.3 + } +} +``` + + + + +The response's `data.collections` is a list of collection names. Use a name as `collection` on [Query Graph](/api-reference/v2/endpoint/byog-query). + +## Related resources + +- [Query Graph](/api-reference/v2/endpoint/byog-query) +- [Delete Graph Collection](/api-reference/v2/endpoint/byog-delete-collection) +- [Bring Your Own Graph](/essentials/v2/bring-your-own-graph) diff --git a/api-reference/v2/endpoint/byog-query-managed.mdx b/api-reference/v2/endpoint/byog-query-managed.mdx new file mode 100644 index 00000000..bf0b32f1 --- /dev/null +++ b/api-reference/v2/endpoint/byog-query-managed.mdx @@ -0,0 +1,69 @@ +--- +title: "Query Managed Graph" +description: "Run read-only Cypher against a managed context graph." +openapi: "api-reference/v2/openapi.json POST /byog" +--- + +Read the managed graph for one database and collection with Cypher. This endpoint rejects writes and schema changes. To read or write a graph you manage yourself, use [Query Graph](/api-reference/v2/endpoint/byog-query). + + + +```python Python SDK +response = client.byog.query_managed( + database="acme_corp", + collection="company_docs", + type="knowledge", + query="MATCH (n) RETURN n LIMIT 10", +) +print(response.data) +``` + +```typescript TypeScript SDK +const response = await client.byog.queryManaged({ + database: "acme_corp", + collection: "company_docs", + type: "knowledge", + query: "MATCH (n) RETURN n LIMIT 10", +}); +console.log(response.data); +``` + + +```bash cURL +curl -X POST 'https://api.hydradb.com/byog' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ + "database": "acme_corp", + "collection": "company_docs", + "type": "knowledge", + "query": "MATCH (n) RETURN n LIMIT 10" + }' +``` + + + + + +```json 200 +{ + "success": true, + "data": [], + "error": null, + "meta": { + "request_id": "req_byog_example", + "latency_ms": 12.3 + } +} +``` + + + + +Use the same collection as ingestion. `type` selects `knowledge` (the default) or `memory`; this endpoint does not accept `all`. The response's `data` is a list of result rows and can be empty. + +## Related resources + +- [Query Graph](/api-reference/v2/endpoint/byog-query): read and write your own graph +- [Bring Your Own Graph](/essentials/v2/bring-your-own-graph) diff --git a/api-reference/v2/endpoint/byog-query.mdx b/api-reference/v2/endpoint/byog-query.mdx new file mode 100644 index 00000000..2a9391f1 --- /dev/null +++ b/api-reference/v2/endpoint/byog-query.mdx @@ -0,0 +1,80 @@ +--- +title: "Query Graph" +description: "Run Cypher reads and writes against a graph you manage." +openapi: "api-reference/v2/openapi.json POST /byog/query" +--- + +Run Cypher against one graph collection in an existing database. A collection is created on its first write; reading a collection that does not exist returns no rows. This does not change the graph HydraDB extracts from managed context. + + + +```python Python SDK +response = client.byog.query( + database="crm", + collection="contacts", + query="CREATE (p:Person {name: $name}) RETURN p", + params={"name":"Alice"}, +) +print(response.data) +``` + +```typescript TypeScript SDK +const response = await client.byog.query({ + database: "crm", + collection: "contacts", + query: "CREATE (p:Person {name: $name}) RETURN p", + params: {"name":"Alice"}, +}); +console.log(response.data); +``` + + +```bash cURL +curl -X POST 'https://api.hydradb.com/byog/query' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -H "Content-Type: application/json" \ + -d '{ + "database": "crm", + "collection": "contacts", + "query": "CREATE (p:Person {name: $name}) RETURN p", + "params": {"name": "Alice"} + }' +``` + + + + + +```json 200 +{ + "success": true, + "data": [ + { + "p": { + "id": 0, + "labels": [ + "Person" + ], + "name": "Alice" + } + } + ], + "error": null, + "meta": { + "request_id": "req_byog_example", + "latency_ms": 12.3 + } +} +``` + + + + +Pass user-supplied values through `params`, not by inserting them into the query string. The response's `data` is a list of result rows. For supported Cypher and migration examples, see [Bring Your Own Graph](/essentials/v2/bring-your-own-graph#supported-cypher). + +## Related resources + +- [Create Graph Database](/api-reference/v2/endpoint/byog-create-database): create the database first +- [List Graph Collections](/api-reference/v2/endpoint/byog-list-collections) +- [Query Managed Graph](/api-reference/v2/endpoint/byog-query-managed): read-only managed context diff --git a/api-reference/v2/endpoint/context-overview.mdx b/api-reference/v2/endpoint/context-overview.mdx index 29110c11..c54a47e7 100644 --- a/api-reference/v2/endpoint/context-overview.mdx +++ b/api-reference/v2/endpoint/context-overview.mdx @@ -76,7 +76,7 @@ flowchart LR - **Knowledge and memories:** Knowledge is the documents, content synced from your apps, and facts your AI uses. Memories are preferences, decisions, and past conversations. Both live in a collection, and `type: "all"` on `POST /query` searches both from the same scope. - **IDs:** `/context/ingest` returns an ID for each source. To assign your own, set `id` in the `document_metadata` or `memories` item. Use IDs to poll status, inspect content, and delete context. - **Metadata:** [Metadata Filters](/essentials/v2/metadata) covers metadata fields, ingestion, updates, and filtering. -- **Forceful relations:** Links you declare between sources with `relations.ids`. In `thinking` mode, a query returns the linked sources in `additional_context` alongside the matching chunks. Set relations on the same `document_metadata` item as the file's metadata: +- **Deterministic relations:** Links you declare between sources with `relations.ids`. In `thinking` mode, a query returns the linked sources in `data.additional_graph_context` alongside the matching chunks. Set relations on the same `document_metadata` item as the file's metadata: ```python Python SDK import json diff --git a/api-reference/v2/endpoint/ingest-context.mdx b/api-reference/v2/endpoint/ingest-context.mdx index 8643fed6..a51e7b7a 100644 --- a/api-reference/v2/endpoint/ingest-context.mdx +++ b/api-reference/v2/endpoint/ingest-context.mdx @@ -211,7 +211,7 @@ See [Metadata Filters](/essentials/v2/metadata#overview---two-layers) for choosi | | Optional. If set, becomes the `id` for this document. See [shared item fields](#shared-item-fields). | | | See [shared item fields](#shared-item-fields). | | | See [shared item fields](#shared-item-fields). | - | | Forceful relations (links you declare between sources). Shape: `{ "ids": ["...", "..."] }`. Linked sources come back in `additional_context` on `mode: "thinking"` queries. | + | | Deterministic relations (links you declare between sources). Shape: `{ "ids": ["...", "..."] }`. Linked sources come back in `data.additional_graph_context` on `mode: "thinking"` queries. | | | Run model enrichment on this file. (default=`false`) | | | How this content came to be known: `assertion`, `record`, `said`, `done`, `third_party`, or `inferred`. Any other value returns `400`. | | | A stable handle for who or what the content is about. | @@ -350,8 +350,7 @@ curl -X POST 'https://api.hydradb.com/context/ingest' \ | | Raw text or markdown content. Required unless `user_assistant_pairs` is provided. | | | Conversation pairs `{ user, assistant }`. Required unless `text` is provided. | | | Treat `text` as markdown for chunking. (default=`false`) | - | | When `true`, HydraDB extracts the underlying preference from raw signal, using earlier context to improve accuracy. When `false`, it stores the text verbatim. (default=`false`) | - | | Guides extraction when `infer: true`. Ignored when `infer: false`. | + | | When omitted or `true`, HydraDB extracts the underlying preference from raw signal, using earlier context to improve accuracy. Explicit `false` stores the text verbatim. This default also applies to legacy `memories` items. (default=`true`) | | | The user's name. Feeds inference. (default=`"User"`) | | | See [shared item fields](#shared-item-fields). | | | See [shared item fields](#shared-item-fields). | diff --git a/api-reference/v2/endpoint/query-overview.mdx b/api-reference/v2/endpoint/query-overview.mdx index ddc79adb..63ccd21e 100644 --- a/api-reference/v2/endpoint/query-overview.mdx +++ b/api-reference/v2/endpoint/query-overview.mdx @@ -46,7 +46,7 @@ These parameters shape most queries. [Query](/api-reference/v2/endpoint/query#re | Parameter | Values | Use it for | |---|---|---| -| | `"knowledge"`, `"memory"`, `"all"` | Choose what to query. Use `"knowledge"` for shared documents and content synced by connectors, `"memory"` for memories, and `"all"` when an answer should use both. | +| | `"knowledge"`, `"memory"`, `"all"` | Defaults to `"all"`, searching knowledge and memories. Use `"knowledge"` for shared documents and content synced by connectors, or `"memory"` for memories only. | | | `"hybrid"`, `"text"` | Choose the matching method. Use `"hybrid"` by default and `"text"` for exact terms or phrases. | | | `"fast"`, `"thinking"`, `"auto"` | Choose a single pass with `"fast"`, broader retrieval with `"thinking"`, or automatic routing with `"auto"`. Defaults to `"auto"`. | | | integer | Limit the returned chunks. Defaults to `10` for one collection. Maximum `250`. | diff --git a/api-reference/v2/endpoint/query.mdx b/api-reference/v2/endpoint/query.mdx index 75f87c65..5451be41 100644 --- a/api-reference/v2/endpoint/query.mdx +++ b/api-reference/v2/endpoint/query.mdx @@ -148,7 +148,7 @@ curl -X POST 'https://api.hydradb.com/query' \ "policy_main_chunk_3": ["p_0"] } }, - "additional_context": { + "additional_graph_context": { "pref-tone": { "chunk_uuid": "pref-tone", "id": "mem_user_alex_tone", @@ -179,7 +179,7 @@ curl -X POST 'https://api.hydradb.com/query' \ "chunk_relations": [], "chunk_id_to_group_ids": {} }, - "additional_context": {} + "additional_graph_context": {} }, "error": null, "meta": { @@ -225,7 +225,7 @@ By default, `data.llm_prompt` contains the question and matching context as Mark | | Exact source titles, matched case-insensitively. Matches any listed title, then intersects with `ids` if both are sent. | | | Principals for the caller, used to filter sources by ACL. Omitting `acl`, sending `[]`, or sending `["*"]` disables caller-supplied filtering. For enforced connectors, the authenticated caller is used instead; see [ACL enforcement](/essentials/v2/connectors#enforce-acl). | | | Omit for the result object with `llm_prompt`. `"structured"` leaves out the prompt string. `"markdown"` returns the prompt string directly as `data`. | -| | What to query. `"all"` runs knowledge and memory in parallel over the same scope and merges by `relevancy_score`. (default=`"knowledge"`) | +| | What to query. `"all"` runs knowledge and memory in parallel over the same scope and merges by `relevancy_score`. (default=`"all"`) | | | Retrieval method. See [Query methods](#decision-matrix). (default=`"hybrid"`) | | | Applies to knowledge queries only. Adds app-aware retrieval for messages, threads, and linked records synced by connectors. It still searches all selected knowledge, rather than only synced content. Send `false` to disable app-aware retrieval. (default=`true`) | | | BM25 operator for `query_by: "text"`. `"and"` or `"phrase"` with any other `query_by` returns `400`. (default=`"or"`) | @@ -233,14 +233,16 @@ By default, `data.llm_prompt` contains the question and matching context as Mark | | When the collection holds spreadsheets and the question is tabular, returns the SQL statement HydraDB ran in `tabular_data.sql`. It carries no row data. Applies in thinking mode only. (default=`false`) | | | Maximum chunks to return, from `1` to `250`. Defaults to `10` for a single collection. See [multi-collection defaults](#querying-multiple-collections) when searching several collections. Counts chunks, not bytes or model tokens. | | | Hybrid weight (`1.0` = pure semantic, `0.0` = pure BM25). Applies to `query_by: "hybrid"` only. `"auto"` currently resolves to `0.8`. (default=`0.8`) | -| | Boost newer content. Omitted applies a mild `0.4` tilt; send `0` to turn it off. (default=`0.4`) | +| | Boost newer content. Omitted applies a `0.6` tilt; send `0` to turn it off. (default=`0.6`) | | | When `true`, includes the entity and relation graph slice in the response under `graph_context`. Set to `false` when you only need ranked chunks. Relations you supplied via [Bring Your Own Graph](/essentials/v2/bring-your-own-graph#using-byog-without-cypher) appear here identically to extracted ones. (default=`true`). **`false` only takes effect in `fast` mode: `thinking`, and `auto` when it resolves to thinking, always include the graph slice.** | -| | Pull sources linked by forceful relations (links you declare between sources) into `additional_context`. **Only takes effect when `mode` resolves to `"thinking"`;** silently skipped in `fast` mode, and under `mode: "auto"` whether it takes effect depends on the automatic routing decision. (default=`true`) | -| | Request-time hint to guide retrieval (for example, "user is on the billing page"). This is different from the response `additional_context` map. (default=`null`) | +| | Pull deterministically linked sources (links you declare at ingestion) into `data.additional_graph_context`. **Only takes effect when `mode` resolves to `"thinking"`;** silently skipped in `fast` mode, and under `mode: "auto"` whether it takes effect depends on the automatic routing decision. (default=`true`) | +| | A request-time hint to guide retrieval (for example, "user is on the billing page"), not a filter. This is different from the response map `data.additional_graph_context` of linked sources. (default=`null`) | | | Filter schema-backed metadata with top-level keys and free-form fields under `additional_metadata`. See [Metadata filters](#metadata-filters). Each list holds at most 500 values, and the whole object is capped at 64 KiB of compact JSON, measured after operator objects are reduced to their values; over either returns `400`. (default=`null`) | To tune `alpha`, `recency_bias`, and `max_results` for your content, see the [Query guide](/essentials/v2/query). +Legacy request aliases remain accepted: `follow_forceful_relations` and `query_forceful_relations` for `query_explicit_relations`, and `additional_context` and `context` for the string hint `additional_graph_context`. Prefer the canonical names. When several are sent, precedence is `query_explicit_relations` > `follow_forceful_relations` > `query_forceful_relations`, and `additional_graph_context` > `additional_context` > `context`. Explicit `false` and an empty canonical hint are preserved. In the response, the legacy `data.additional_context` alias contains the same linked-source map as `data.additional_graph_context`; neither response map is the request hint. + ### Querying multiple collections Use `collections` to search several collections in one request. The field accepts a list or a weighted object: @@ -312,7 +314,7 @@ See [Metadata Filters](/essentials/v2/metadata#operators) for operators and exam | Mode | Behavior | When to use | |---|---|---| | `"fast"` | Single query pass | Real-time chat, autocomplete, simple lookups. | - | `"thinking"` | Multi-query expansion + reranking + forceful-relation context | Complex queries, customer-facing answers, anything where quality matters. | + | `"thinking"` | Multi-query expansion + reranking + deterministic linked-source context | Complex queries, customer-facing answers, anything where quality matters. | | `"auto"` *(default if `mode` is omitted)* | Scores the query before retrieval and routes to `"fast"` or `"thinking"`; defaults to `"thinking"` when the signal is inconclusive. | Mixed or unpredictable query traffic where you do not want to pick a mode per request. | The response does not report which pipeline `"auto"` resolved to, so budget latency as thinking-level in the worst case. Set `mode` to `"fast"` or `"thinking"` when you need a predictable pipeline. @@ -547,7 +549,7 @@ Common codes: `400 INVALID_INPUT` (empty `query`, `operator: "and"` or `"phrase" ## Common mistakes -- **`query_forceful_relations` requires `mode` to resolve to `"thinking"`:** In `fast` mode the flag is silently skipped. The server does not error or warn; `additional_context` is empty. Under `mode: "auto"` this depends on that request's routing decision, not on what you asked for. +- **`query_explicit_relations` requires `mode` to resolve to `"thinking"`:** In `fast` mode the flag is silently skipped. The server does not error or warn; `data.additional_graph_context` is empty. Under `mode: "auto"` this depends on that request's routing decision, not on what you asked for. - **Relation `timestamp` is a Unix epoch float here:** In the `graph_context` slice returned by `/query` (and in the passthrough relations returned by [List Context](/api-reference/v2/endpoint/list-context) with `include_fields: ["relations"]`), each relation's `timestamp` is a Unix epoch value in seconds (a float, for example `1778573640.0`). The dedicated [Context Relations](/api-reference/v2/endpoint/source-relations) endpoint returns the same field as an ISO-8601 string instead. Normalize before comparing relation timestamps across endpoints. - **Use the right metadata namespace:** Filter schema-backed fields at the top level of `metadata_filters` and free-form fields under `additional_metadata`. See [Metadata filters](#metadata-filters). - **Check indexing first:** New sources are not searchable until [Ingestion Status](/api-reference/v2/endpoint/source-status) reports them indexed. diff --git a/api-reference/v2/openapi.json b/api-reference/v2/openapi.json index 0fcf13ca..7edff9c1 100644 --- a/api-reference/v2/openapi.json +++ b/api-reference/v2/openapi.json @@ -427,6 +427,27 @@ "title": "FetchV2SourceFetchResponse", "type": "object" }, + "github_com_hydradb_hydradb-application_internal_connectors_providers_gmail.CalendarBinding": { + "properties": { + "calendar_id": { + "description": "Google Calendar ID of the selected calendar resource this Gmail resource is linked to.", + "example": "alice@example.com", + "type": "string" + }, + "connector_id": { + "description": "Connector this resource belongs to.", + "example": "gcal", + "type": "string" + }, + "resource_id": { + "description": "Resource identifier from the Discover endpoint.", + "example": "alice@example.com", + "type": "string" + } + }, + "title": "GithubComHydradbHydradbApplicationInternalConnectorsProvidersGmailCalendarBinding", + "type": "object" + }, "github_com_hydradb_hydradb-application_internal_service.MetadataEditResult": { "properties": { "acl_updated": { @@ -1153,6 +1174,207 @@ "title": "GraphTripletWithEvidence", "type": "object" }, + "handler.BYOGCRUDCollectionRequest": { + "properties": { + "collection": { + "default": "default", + "description": "Graph collection to delete. Defaults to `default`.", + "example": "main", + "type": "string" + }, + "database": { + "description": "Database that holds the graph collection. Required.", + "example": "acme_corp", + "type": "string" + } + }, + "required": [ + "database" + ], + "title": "HandlerByogcrudCollectionRequest", + "type": "object" + }, + "handler.BYOGCRUDDatabaseRequest": { + "properties": { + "database": { + "description": "Database to create or delete. Required.", + "example": "acme_corp", + "type": "string" + } + }, + "required": [ + "database" + ], + "title": "HandlerByogcrudDatabaseRequest", + "type": "object" + }, + "handler.BYOGCRUDQueryRequest": { + "properties": { + "collection": { + "default": "default", + "description": "Graph collection to query. Defaults to `default`; created on its first write.", + "example": "main", + "type": "string" + }, + "database": { + "description": "Database whose graph to query. Create it before querying. Required.", + "example": "acme_corp", + "type": "string" + }, + "params": { + "additionalProperties": {}, + "description": "Named Cypher parameters. Pass user values here instead of interpolating them into the query.", + "type": "object" + }, + "query": { + "description": "Cypher read, write or supported schema statement. Required.", + "example": "MATCH (n) RETURN n LIMIT 10", + "type": "string" + } + }, + "required": [ + "database", + "query" + ], + "title": "HandlerByogcrudQueryRequest", + "type": "object" + }, + "handler.BYOGCollectionDeleted": { + "properties": { + "collection": { + "description": "Graph collection deleted.", + "example": "team_docs", + "type": "string" + }, + "database": { + "description": "Database that held the deleted graph collection.", + "example": "acme_corp", + "type": "string" + }, + "deleted": { + "description": "`true` after deletion, including when the graph collection was already absent.", + "example": true, + "type": "boolean" + } + }, + "title": "HandlerByogCollectionDeleted", + "type": "object" + }, + "handler.BYOGCollections": { + "properties": { + "collections": { + "description": "Names of graph collections, sorted alphabetically. Empty when no write has created a collection.", + "example": [ + "team_docs", + "engineering" + ], + "items": { + "type": "string" + }, + "type": "array", + "uniqueItems": false + }, + "database": { + "description": "Database whose graph collections were listed.", + "example": "acme_corp", + "type": "string" + } + }, + "title": "HandlerByogCollections", + "type": "object" + }, + "handler.BYOGDatabaseCreated": { + "properties": { + "cluster": { + "description": "Placement of the database's graph storage.", + "type": "string" + }, + "database": { + "description": "Name of the database created.", + "example": "acme_corp", + "type": "string" + }, + "status": { + "description": "`ready` when queries can run, or `provisioning` while the database is being prepared.", + "enum": [ + "ready", + "provisioning" + ], + "example": "ready", + "type": "string" + } + }, + "title": "HandlerByogDatabaseCreated", + "type": "object" + }, + "handler.BYOGDatabaseDeleted": { + "properties": { + "cluster": { + "description": "Placement of the deleted graph storage.", + "type": "string" + }, + "database": { + "description": "Database whose graph data was deleted.", + "example": "acme_corp", + "type": "string" + }, + "deleted": { + "description": "`true` when the BYOG database itself was deleted. `false` for a managed database, whose managed content is preserved.", + "example": true, + "type": "boolean" + }, + "deleted_collections": { + "description": "Graph collections deleted from the database.", + "items": { + "type": "string" + }, + "type": "array", + "uniqueItems": false + } + }, + "title": "HandlerByogDatabaseDeleted", + "type": "object" + }, + "handler.BYOGRequest": { + "properties": { + "collection": { + "description": "Collection to read. Defaults to the database's default collection.", + "example": "main", + "type": "string" + }, + "database": { + "description": "Database whose managed graph to read. Required.", + "example": "acme_corp", + "type": "string" + }, + "params": { + "additionalProperties": {}, + "description": "Named Cypher parameters. Pass user values here instead of interpolating them into the query.", + "type": "object" + }, + "query": { + "description": "Read-only Cypher query. Node patterns are scoped to the requested database and collection.", + "example": "MATCH (n) RETURN n LIMIT 10", + "type": "string" + }, + "type": { + "default": "knowledge", + "description": "Corpus to read, `knowledge` or `memory`. Defaults to `knowledge`.", + "enum": [ + "knowledge", + "memory" + ], + "example": "knowledge", + "type": "string" + } + }, + "required": [ + "database", + "query" + ], + "title": "HandlerByogRequest", + "type": "object" + }, "handler.Envelope-feedback_SubmitResponse": { "properties": { "data": { @@ -1652,21 +1874,14 @@ "title": "HandlerEnvelopeGraphSourceSubgraphResponse", "type": "object" }, - "handler.Envelope-ingestion_V2BatchProcessingStatus": { + "handler.Envelope-handler_BYOGCollectionDeleted": { "properties": { "data": { - "$ref": "#/components/schemas/ingestion.V2BatchProcessingStatus", + "$ref": "#/components/schemas/handler.BYOGCollectionDeleted", "example": { - "statuses": [ - { - "error_code": "", - "error_message": "", - "id": "HydraDoc1234", - "indexing_status": "completed", - "message": "Source processed successfully.", - "success": true - } - ] + "collection": "team_docs", + "database": "acme_corp", + "deleted": true } }, "error": { @@ -1711,31 +1926,19 @@ "type": "boolean" } }, - "title": "HandlerEnvelopeIngestionV2BatchProcessingStatus", + "title": "HandlerEnvelopeHandlerByogCollectionDeleted", "type": "object" }, - "handler.Envelope-ingestion_V2IngestResponse": { + "handler.Envelope-handler_BYOGCollections": { "properties": { "data": { - "$ref": "#/components/schemas/ingestion.V2IngestResponse", + "$ref": "#/components/schemas/handler.BYOGCollections", "example": { - "failed_count": 0, - "generation_started_at_ms": 1, - "message": "Success", - "results": [ - { - "error": null, - "error_code": null, - "filename": "policy.pdf", - "id": "HydraDoc1234", - "infer": true, - "relations_created": 5, - "status": "queued", - "title": "Project Phoenix Overview" - } + "collections": [ + "team_docs", + "engineering" ], - "success": true, - "success_count": 2 + "database": "acme_corp" } }, "error": { @@ -1780,78 +1983,72 @@ "type": "boolean" } }, - "title": "HandlerEnvelopeIngestionV2IngestResponse", + "title": "HandlerEnvelopeHandlerByogCollections", "type": "object" }, - "handler.Envelope-list_V2ListResponse": { + "handler.Envelope-handler_BYOGDatabaseCreated": { "properties": { "data": { - "$ref": "#/components/schemas/list.V2ListResponse", + "$ref": "#/components/schemas/handler.BYOGDatabaseCreated", "example": { - "message": "Success", - "pagination": { - "has_next": true, - "has_previous": false, - "page": 1, - "page_size": 50, - "total": 128, - "total_pages": 3 + "database": "acme_corp", + "status": "ready" + } + }, + "error": { + "anyOf": [ + { + "$ref": "#/components/schemas/handler.apiError", + "title": "HandlerApiError" }, - "sources": [ + { + "title": "No error", + "type": "null" + } + ], + "description": "Error details on failure, or null on success.", + "example": null + }, + "meta": { + "$ref": "#/components/schemas/handler.responseMeta", + "example": { + "collection": "team_docs", + "database": "acme_corp", + "latency_ms": 12.3, + "request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d", + "source_type": "file", + "sub_tenant_id": "team_docs", + "tenant_id": "acme_corp", + "warnings": [ { - "additional_metadata": { - "author": "ada", - "doc_version": 3 - }, - "app_external_id": "C0123456789", - "app_kind": "slack", - "app_provider": "slack", - "collection": "team_docs", - "comments_truncated": true, - "database": "acme_corp", - "description": "Internal overview of the Project Phoenix rollout.", - "id": "HydraDoc1234", - "metadata": { - "department": "finance", - "priority": 7 - }, - "note": "Superseded by the Q3 rollout plan.", - "sub_tenant_id": "team_docs", - "tenant_id": "acme_corp", - "timestamp": "2026-07-02T10:00:00Z", - "title": "Project Phoenix Overview", - "type": "knowledge" - } - ], - "success": true, - "total": 128, - "user_memories": [ - { - "additional_metadata": { - "author": "ada", - "doc_version": 3 - }, - "app_external_id": "C0123456789", - "app_kind": "slack", - "app_provider": "slack", - "collection": "team_docs", - "database": "acme_corp", - "description": "Internal overview of the Project Phoenix rollout.", - "memory_id": "memory_1234", - "metadata": { - "department": "finance", - "priority": 7 - }, - "note": "Superseded by the Q3 rollout plan.", - "sub_tenant_id": "team_docs", - "tenant_id": "acme_corp", - "timestamp": "2026-07-02T10:00:00Z", - "title": "Project Phoenix Overview", - "type": "knowledge" + "code": "acl_ignored_by_connector_enforcement", + "collections": [ + "team_docs", + "engineering" + ], + "message": "This connector enforces ACL, so the request's acl was ignored." } ] } }, + "success": { + "description": "Whether the request succeeded.", + "example": true, + "type": "boolean" + } + }, + "title": "HandlerEnvelopeHandlerByogDatabaseCreated", + "type": "object" + }, + "handler.Envelope-handler_BYOGDatabaseDeleted": { + "properties": { + "data": { + "$ref": "#/components/schemas/handler.BYOGDatabaseDeleted", + "example": { + "database": "acme_corp", + "deleted": true + } + }, "error": { "anyOf": [ { @@ -1894,174 +2091,19 @@ "type": "boolean" } }, - "title": "HandlerEnvelopeListV2ListResponse", + "title": "HandlerEnvelopeHandlerByogDatabaseDeleted", "type": "object" }, - "handler.Envelope-search_V2RetrievalResult": { + "handler.Envelope-handler_BYOGQueryRows": { "properties": { "data": { - "description": "Query results: the structured object by default, or a single string rendering of the same results when the request set response_format to markdown.", - "example": { - "chunks": [ - { - "additional_metadata": { - "author": "ada", - "doc_version": 3 - }, - "chunk_content": "HydraDB supports hybrid retrieval across knowledge and memories.", - "chunk_metadata": { - "row_end": 1, - "row_start": 1 - }, - "chunk_uuid": "a1b2c3d4-e5f6-7890-1234-567890abcdef", - "collection": "team_docs", - "extra_context_ids": [ - "HydraEmbeddings123_2", - "HydraEmbeddings123_3" - ], - "id": "HydraDoc1234", - "layout": "text", - "metadata": { - "department": "finance", - "priority": 7 - }, - "relevancy_score": 0.87, - "source_last_updated_time": "2026-07-02T12:30:00Z", - "source_title": "Project Phoenix Overview", - "source_type": "file", - "source_upload_time": "2026-07-02T10:00:00Z", - "sub_tenant_id": "team_docs" - } - ], - "code_search": { - "duration_ms": 0.5, - "repos": [ - { - "duration_ms": 0.5, - "error": "", - "status": "completed", - "truncated": true, - "unsigned": true - } - ], - "status": "completed" - }, - "graph_context": { - "chunk_id_to_group_ids": { - "HydraEmbeddings123_0": [ - "grp_1234" - ] - }, - "chunk_relations": [ - { - "combined_context": "Acme Corp deploys HydraDB: Acme Corp deploys HydraDB in production for context retrieval.", - "group_id": "grp_1234", - "relevancy_score": 0.87, - "source_chunk_ids": [ - "HydraEmbeddings123_0", - "HydraEmbeddings123_1" - ], - "triplets": [ - { - "relation": { - "canonical_predicate": "works_at", - "context": "Ada works at Acme Corp.", - "raw_predicate": "works at", - "source_entity_id": "entity_1a2b", - "target_entity_id": "entity_3c4d" - }, - "source": { - "entity_id": "entity_1a2b", - "name": "Ada", - "type": "person" - }, - "target": { - "entity_id": "entity_3c4d", - "name": "Acme Corp", - "type": "organization" - } - } - ] - } - ], - "query_paths": [ - { - "combined_context": "Acme Corp deploys HydraDB: Acme Corp deploys HydraDB in production for context retrieval.", - "group_id": "grp_1234", - "relevancy_score": 0.87, - "source_chunk_ids": [ - "HydraEmbeddings123_0", - "HydraEmbeddings123_1" - ], - "triplets": [ - { - "relation": { - "canonical_predicate": "works_at", - "context": "Ada works at Acme Corp.", - "raw_predicate": "works at", - "source_entity_id": "entity_1a2b", - "target_entity_id": "entity_3c4d" - }, - "source": { - "entity_id": "entity_1a2b", - "name": "Ada", - "type": "person" - }, - "target": { - "entity_id": "entity_3c4d", - "name": "Acme Corp", - "type": "organization" - } - } - ] - } - ] - }, - "tabular_data": null, - "temporal_duration": { - "approximate": true, - "days": 1, - "from": { - "chunk_id": "HydraEmbeddings123_0", - "event_end": 1, - "event_start": 1, - "observed_at": 1, - "relationship_id": "rel_1234", - "source_id": "HydraDoc1234", - "status": "completed" - }, - "pairing_confidence": 0.5, - "to": { - "chunk_id": "HydraEmbeddings123_0", - "event_end": 1, - "event_start": 1, - "observed_at": 1, - "relationship_id": "rel_1234", - "source_id": "HydraDoc1234", - "status": "completed" - } - }, - "temporal_facts": [ - { - "chunk_id": "HydraEmbeddings123_0", - "event_end": 1, - "event_start": 1, - "observed_at": 1, - "relationship_id": "rel_1234", - "source_id": "HydraDoc1234", - "status": "completed" - } - ] + "description": "Rows selected by the Cypher query. Each row maps the returned column names to their values. Empty when the query returns no rows.", + "items": { + "additionalProperties": {}, + "type": "object" }, - "oneOf": [ - { - "$ref": "#/components/schemas/search.V2RetrievalResult" - }, - { - "description": "String rendering of the results, returned when the request set response_format to markdown.", - "type": "string" - } - ] + "type": "array", + "uniqueItems": false }, "error": { "anyOf": [ @@ -2105,25 +2147,24 @@ "type": "boolean" } }, - "title": "HandlerEnvelopeSearchV2RetrievalResult", + "title": "HandlerEnvelopeHandlerByogQueryRows", "type": "object" }, - "handler.Envelope-sources_MemoryDeleteResponse": { + "handler.Envelope-ingestion_V2BatchProcessingStatus": { "properties": { "data": { - "$ref": "#/components/schemas/sources.MemoryDeleteResponse", + "$ref": "#/components/schemas/ingestion.V2BatchProcessingStatus", "example": { - "deleted_count": 1, - "message": "Success", - "results": [ + "statuses": [ { - "deleted": true, - "error": "", - "id": "HydraDoc1234" + "error_code": "", + "error_message": "", + "id": "HydraDoc1234", + "indexing_status": "completed", + "message": "Source processed successfully.", + "success": true } - ], - "success": true, - "user_memory_deleted": 1 + ] } }, "error": { @@ -2168,85 +2209,31 @@ "type": "boolean" } }, - "title": "HandlerEnvelopeSourcesMemoryDeleteResponse", + "title": "HandlerEnvelopeIngestionV2BatchProcessingStatus", "type": "object" }, - "handler.Envelope-tenants_InfraStatusResponseV2": { + "handler.Envelope-ingestion_V2IngestResponse": { "properties": { "data": { - "$ref": "#/components/schemas/tenants.InfraStatusResponseV2", + "$ref": "#/components/schemas/ingestion.V2IngestResponse", "example": { - "database": "acme_corp", - "infra": { - "graph_status": true, - "ready_for_ingestion": true, - "scheduler_status": true, - "vectorstore_status": { - "knowledge": true, - "memories": true - } - }, + "failed_count": 0, + "generation_started_at_ms": 1, "message": "Success", - "org_id": "org_1a2b3c", - "tenant_id": "acme_corp" - } - }, - "error": { - "anyOf": [ - { - "$ref": "#/components/schemas/handler.apiError", - "title": "HandlerApiError" - }, - { - "title": "No error", - "type": "null" - } - ], - "description": "Error details on failure, or null on success.", - "example": null - }, - "meta": { - "$ref": "#/components/schemas/handler.responseMeta", - "example": { - "collection": "team_docs", - "database": "acme_corp", - "latency_ms": 12.3, - "request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d", - "source_type": "file", - "sub_tenant_id": "team_docs", - "tenant_id": "acme_corp", - "warnings": [ + "results": [ { - "code": "acl_ignored_by_connector_enforcement", - "collections": [ - "team_docs", - "engineering" - ], - "message": "This connector enforces ACL, so the request's acl was ignored." + "error": null, + "error_code": null, + "filename": "policy.pdf", + "id": "HydraDoc1234", + "infer": true, + "relations_created": 5, + "status": "queued", + "title": "Project Phoenix Overview" } - ] - } - }, - "success": { - "description": "Whether the request succeeded.", - "example": true, - "type": "boolean" - } - }, - "title": "HandlerEnvelopeTenantsInfraStatusResponseV2", - "type": "object" - }, - "handler.Envelope-tenants_SubTenantDeleteResponse": { - "properties": { - "data": { - "$ref": "#/components/schemas/tenants.SubTenantDeleteResponse", - "example": { - "collection": "team_docs", - "database": "acme_corp", - "message": "Success", - "status": "completed", - "sub_tenant_id": "team_docs", - "tenant_id": "acme_corp" + ], + "success": true, + "success_count": 2 } }, "error": { @@ -2291,137 +2278,78 @@ "type": "boolean" } }, - "title": "HandlerEnvelopeTenantsSubTenantDeleteResponse", + "title": "HandlerEnvelopeIngestionV2IngestResponse", "type": "object" }, - "handler.Envelope-tenants_SubTenantIdsResponse": { + "handler.Envelope-list_V2ListResponse": { "properties": { "data": { - "$ref": "#/components/schemas/tenants.SubTenantIdsResponse", + "$ref": "#/components/schemas/list.V2ListResponse", "example": { - "collections": [ - "team_docs", - "engineering" - ], "message": "Success", - "sub_tenant_ids": [ - "team_docs", - "engineering" - ] - } - }, - "error": { - "anyOf": [ - { - "$ref": "#/components/schemas/handler.apiError", - "title": "HandlerApiError" + "pagination": { + "has_next": true, + "has_previous": false, + "page": 1, + "page_size": 50, + "total": 128, + "total_pages": 3 }, - { - "title": "No error", - "type": "null" - } - ], - "description": "Error details on failure, or null on success.", - "example": null - }, - "meta": { - "$ref": "#/components/schemas/handler.responseMeta", - "example": { - "collection": "team_docs", - "database": "acme_corp", - "latency_ms": 12.3, - "request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d", - "source_type": "file", - "sub_tenant_id": "team_docs", - "tenant_id": "acme_corp", - "warnings": [ + "sources": [ { - "code": "acl_ignored_by_connector_enforcement", - "collections": [ - "team_docs", - "engineering" - ], - "message": "This connector enforces ACL, so the request's acl was ignored." + "additional_metadata": { + "author": "ada", + "doc_version": 3 + }, + "app_external_id": "C0123456789", + "app_kind": "slack", + "app_provider": "slack", + "collection": "team_docs", + "comments_truncated": true, + "database": "acme_corp", + "description": "Internal overview of the Project Phoenix rollout.", + "id": "HydraDoc1234", + "metadata": { + "department": "finance", + "priority": 7 + }, + "note": "Superseded by the Q3 rollout plan.", + "sub_tenant_id": "team_docs", + "tenant_id": "acme_corp", + "timestamp": "2026-07-02T10:00:00Z", + "title": "Project Phoenix Overview", + "type": "knowledge" } - ] - } - }, - "success": { - "description": "Whether the request succeeded.", - "example": true, - "type": "boolean" - } - }, - "title": "HandlerEnvelopeTenantsSubTenantIdsResponse", - "type": "object" - }, - "handler.Envelope-tenants_TenantCreateAcceptedResponse": { - "properties": { - "data": { - "$ref": "#/components/schemas/tenants.TenantCreateAcceptedResponse", - "example": { - "database": "acme_corp", - "message": "Success", - "status": "completed", - "tenant_id": "acme_corp" - } - }, - "error": { - "anyOf": [ - { - "$ref": "#/components/schemas/handler.apiError", - "title": "HandlerApiError" - }, - { - "title": "No error", - "type": "null" - } - ], - "description": "Error details on failure, or null on success.", - "example": null - }, - "meta": { - "$ref": "#/components/schemas/handler.responseMeta", - "example": { - "collection": "team_docs", - "database": "acme_corp", - "latency_ms": 12.3, - "request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d", - "source_type": "file", - "sub_tenant_id": "team_docs", - "tenant_id": "acme_corp", - "warnings": [ + ], + "success": true, + "total": 128, + "user_memories": [ { - "code": "acl_ignored_by_connector_enforcement", - "collections": [ - "team_docs", - "engineering" - ], - "message": "This connector enforces ACL, so the request's acl was ignored." + "additional_metadata": { + "author": "ada", + "doc_version": 3 + }, + "app_external_id": "C0123456789", + "app_kind": "slack", + "app_provider": "slack", + "collection": "team_docs", + "database": "acme_corp", + "description": "Internal overview of the Project Phoenix rollout.", + "memory_id": "memory_1234", + "metadata": { + "department": "finance", + "priority": 7 + }, + "note": "Superseded by the Q3 rollout plan.", + "sub_tenant_id": "team_docs", + "tenant_id": "acme_corp", + "timestamp": "2026-07-02T10:00:00Z", + "title": "Project Phoenix Overview", + "type": "knowledge" } ] } }, - "success": { - "description": "Whether the request succeeded.", - "example": true, - "type": "boolean" - } - }, - "title": "HandlerEnvelopeTenantsTenantCreateAcceptedResponse", - "type": "object" - }, - "handler.Envelope-tenants_TenantDeleteResponse": { - "properties": { - "data": { - "$ref": "#/components/schemas/tenants.TenantDeleteResponse", - "example": { - "database": "acme_corp", - "message": "Success", - "status": "completed", - "tenant_id": "acme_corp" - } - }, "error": { "anyOf": [ { @@ -2464,38 +2392,225 @@ "type": "boolean" } }, - "title": "HandlerEnvelopeTenantsTenantDeleteResponse", + "title": "HandlerEnvelopeListV2ListResponse", "type": "object" }, - "handler.Envelope-tenants_TenantIdsResponse": { + "handler.Envelope-search_V2RetrievalResult": { "properties": { "data": { - "$ref": "#/components/schemas/tenants.TenantIdsResponse", + "description": "Query results: the structured object by default, or a single string rendering of the same results when the request set response_format to markdown.", "example": { - "databases": [ - "acme_corp", - "research_kb" - ], - "failed_databases": [ + "chunks": [ { - "database": "acme_corp", - "error": "", - "tenant_id": "acme_corp" + "additional_metadata": { + "author": "ada", + "doc_version": 3 + }, + "chunk_content": "HydraDB supports hybrid retrieval across knowledge and memories.", + "chunk_metadata": { + "row_end": 1, + "row_start": 1 + }, + "chunk_uuid": "a1b2c3d4-e5f6-7890-1234-567890abcdef", + "collection": "team_docs", + "extra_context_ids": [ + "HydraEmbeddings123_2", + "HydraEmbeddings123_3" + ], + "id": "HydraDoc1234", + "layout": "text", + "metadata": { + "department": "finance", + "priority": 7 + }, + "relevancy_score": 0.87, + "source_last_updated_time": "2026-07-02T12:30:00Z", + "source_title": "Project Phoenix Overview", + "source_type": "file", + "source_upload_time": "2026-07-02T10:00:00Z", + "sub_tenant_id": "team_docs" + }, + { + "chunk_content": "| region | revenue |\n| East | 97500 |\n| West | 85860 |", + "chunk_uuid": "sales_2026_chunk_0001", + "id": "sales_2026", + "relevancy_score": 0.88, + "source_title": "sales_2026.csv" } ], - "failed_tenant_ids": [ + "code_search": { + "duration_ms": 0.5, + "repos": [ + { + "duration_ms": 0.5, + "error": "", + "status": "completed", + "truncated": true, + "unsigned": true + } + ], + "status": "completed" + }, + "graph_context": { + "chunk_id_to_group_ids": { + "HydraEmbeddings123_0": [ + "grp_1234" + ] + }, + "chunk_relations": [ + { + "combined_context": "Acme Corp deploys HydraDB: Acme Corp deploys HydraDB in production for context retrieval.", + "group_id": "grp_1234", + "relevancy_score": 0.87, + "source_chunk_ids": [ + "HydraEmbeddings123_0", + "HydraEmbeddings123_1" + ], + "triplets": [ + { + "relation": { + "canonical_predicate": "works_at", + "context": "Ada works at Acme Corp.", + "raw_predicate": "works at", + "source_entity_id": "entity_1a2b", + "target_entity_id": "entity_3c4d" + }, + "source": { + "entity_id": "entity_1a2b", + "name": "Ada", + "type": "person" + }, + "target": { + "entity_id": "entity_3c4d", + "name": "Acme Corp", + "type": "organization" + } + } + ] + } + ], + "query_paths": [ + { + "combined_context": "Acme Corp deploys HydraDB: Acme Corp deploys HydraDB in production for context retrieval.", + "group_id": "grp_1234", + "relevancy_score": 0.87, + "source_chunk_ids": [ + "HydraEmbeddings123_0", + "HydraEmbeddings123_1" + ], + "triplets": [ + { + "relation": { + "canonical_predicate": "works_at", + "context": "Ada works at Acme Corp.", + "raw_predicate": "works at", + "source_entity_id": "entity_1a2b", + "target_entity_id": "entity_3c4d" + }, + "source": { + "entity_id": "entity_1a2b", + "name": "Ada", + "type": "person" + }, + "target": { + "entity_id": "entity_3c4d", + "name": "Acme Corp", + "type": "organization" + } + } + ] + } + ] + }, + "tabular_data": { + "answer_type": "computed", + "citations": { + "constants": [], + "rows": [ + { + "chunk_id": "sales_2026_chunk_0001", + "collection": "sales", + "source_id": "sales_2026" + } + ] + }, + "columns": [ + { + "kind": "string", + "name": "region", + "type": "VARCHAR" + }, + { + "kind": "integer", + "name": "total_revenue", + "type": "HUGEINT" + } + ], + "records": [ + { + "region": "East", + "total_revenue": 97500 + }, + { + "region": "West", + "total_revenue": 85860 + } + ], + "sources": [ + { + "collection": "sales", + "id": "sales_2026", + "title": "sales_2026.csv", + "version": "9181604be39c" + } + ], + "status": "ok", + "truncated": false + }, + "temporal_duration": { + "approximate": true, + "days": 1, + "from": { + "chunk_id": "HydraEmbeddings123_0", + "event_end": 1, + "event_start": 1, + "observed_at": 1, + "relationship_id": "rel_1234", + "source_id": "HydraDoc1234", + "status": "completed" + }, + "pairing_confidence": 0.5, + "to": { + "chunk_id": "HydraEmbeddings123_0", + "event_end": 1, + "event_start": 1, + "observed_at": 1, + "relationship_id": "rel_1234", + "source_id": "HydraDoc1234", + "status": "completed" + } + }, + "temporal_facts": [ { - "database": "acme_corp", - "error": "", - "tenant_id": "acme_corp" + "chunk_id": "HydraEmbeddings123_0", + "event_end": 1, + "event_start": 1, + "observed_at": 1, + "relationship_id": "rel_1234", + "source_id": "HydraDoc1234", + "status": "completed" } - ], - "message": "Success", - "tenant_ids": [ - "acme_corp", - "research_kb" ] - } + }, + "oneOf": [ + { + "$ref": "#/components/schemas/search.V2RetrievalResult" + }, + { + "description": "String rendering of the results, returned when the request set response_format to markdown.", + "type": "string" + } + ] }, "error": { "anyOf": [ @@ -2539,26 +2654,25 @@ "type": "boolean" } }, - "title": "HandlerEnvelopeTenantsTenantIdsResponse", + "title": "HandlerEnvelopeSearchV2RetrievalResult", "type": "object" }, - "handler.Envelope-tenants_TenantMetadataSchemaResponse": { + "handler.Envelope-sources_MemoryDeleteResponse": { "properties": { "data": { - "$ref": "#/components/schemas/tenants.TenantMetadataSchemaResponse", + "$ref": "#/components/schemas/sources.MemoryDeleteResponse", "example": { - "database": "acme_corp", - "fields": [ + "deleted_count": 1, + "message": "Success", + "results": [ { - "data_type": "VARCHAR", - "enable_dense_embedding": true, - "enable_match": true, - "enable_sparse_embedding": false, - "max_length": 256, - "name": "category" + "deleted": true, + "error": "", + "id": "HydraDoc1234" } ], - "tenant_id": "acme_corp" + "success": true, + "user_memory_deleted": 1 } }, "error": { @@ -2603,22 +2717,26 @@ "type": "boolean" } }, - "title": "HandlerEnvelopeTenantsTenantMetadataSchemaResponse", + "title": "HandlerEnvelopeSourcesMemoryDeleteResponse", "type": "object" }, - "handler.Envelope-tenants_TenantStatsResponse": { + "handler.Envelope-tenants_InfraStatusResponseV2": { "properties": { "data": { - "$ref": "#/components/schemas/tenants.TenantStatsResponse", + "$ref": "#/components/schemas/tenants.InfraStatusResponseV2", "example": { "database": "acme_corp", - "knowledge_collection": { - "row_count": 1280 - }, - "memory_collection": { - "row_count": 1280 + "infra": { + "graph_status": true, + "ready_for_ingestion": true, + "scheduler_status": true, + "vectorstore_status": { + "knowledge": true, + "memories": true + } }, "message": "Success", + "org_id": "org_1a2b3c", "tenant_id": "acme_corp" } }, @@ -2664,29 +2782,20 @@ "type": "boolean" } }, - "title": "HandlerEnvelopeTenantsTenantStatsResponse", + "title": "HandlerEnvelopeTenantsInfraStatusResponseV2", "type": "object" }, - "handler.Envelope-webhooks_DeliveryItem": { + "handler.Envelope-tenants_SubTenantDeleteResponse": { "properties": { "data": { - "$ref": "#/components/schemas/webhooks.DeliveryItem", + "$ref": "#/components/schemas/tenants.SubTenantDeleteResponse", "example": { - "attempts": 1, "collection": "team_docs", - "created_at": "2026-07-02T10:00:00Z", "database": "acme_corp", - "delivery_id": "dlv_9f8e7d6c", - "doc_id": "HydraDoc1234", - "error_code": null, - "error_message": null, - "event_at": "2026-07-02T10:00:00Z", - "event_type": "indexing.status_changed", - "indexing_status": "completed", - "status": "delivered", + "message": "Success", + "status": "completed", "sub_tenant_id": "team_docs", - "tenant_id": "tenant_1234", - "updated_at": "2026-07-02T10:00:05Z" + "tenant_id": "acme_corp" } }, "error": { @@ -2731,35 +2840,23 @@ "type": "boolean" } }, - "title": "HandlerEnvelopeWebhooksDeliveryItem", + "title": "HandlerEnvelopeTenantsSubTenantDeleteResponse", "type": "object" }, - "handler.Envelope-webhooks_DeliveryListResponse": { + "handler.Envelope-tenants_SubTenantIdsResponse": { "properties": { "data": { - "$ref": "#/components/schemas/webhooks.DeliveryListResponse", + "$ref": "#/components/schemas/tenants.SubTenantIdsResponse", "example": { - "count": 12, - "deliveries": [ - { - "attempts": 1, - "collection": "team_docs", - "created_at": "2026-07-02T10:00:00Z", - "database": "acme_corp", - "delivery_id": "dlv_9f8e7d6c", - "doc_id": "HydraDoc1234", - "error_code": null, - "error_message": null, - "event_at": "2026-07-02T10:00:00Z", - "event_type": "indexing.status_changed", - "indexing_status": "completed", - "status": "delivered", - "sub_tenant_id": "team_docs", - "tenant_id": "tenant_1234", - "updated_at": "2026-07-02T10:00:05Z" - } + "collections": [ + "team_docs", + "engineering" ], - "next_cursor": null + "message": "Success", + "sub_tenant_ids": [ + "team_docs", + "engineering" + ] } }, "error": { @@ -2804,17 +2901,18 @@ "type": "boolean" } }, - "title": "HandlerEnvelopeWebhooksDeliveryListResponse", + "title": "HandlerEnvelopeTenantsSubTenantIdsResponse", "type": "object" }, - "handler.Envelope-webhooks_RetryResponse": { + "handler.Envelope-tenants_TenantCreateAcceptedResponse": { "properties": { "data": { - "$ref": "#/components/schemas/webhooks.RetryResponse", + "$ref": "#/components/schemas/tenants.TenantCreateAcceptedResponse", "example": { - "delivery_id": "dlv_9f8e7d6c", + "database": "acme_corp", "message": "Success", - "queued": true + "status": "completed", + "tenant_id": "acme_corp" } }, "error": { @@ -2859,17 +2957,18 @@ "type": "boolean" } }, - "title": "HandlerEnvelopeWebhooksRetryResponse", + "title": "HandlerEnvelopeTenantsTenantCreateAcceptedResponse", "type": "object" }, - "handler.Envelope-webhooks_SigningSecretResponse": { + "handler.Envelope-tenants_TenantDeleteResponse": { "properties": { "data": { - "$ref": "#/components/schemas/webhooks.SigningSecretResponse", + "$ref": "#/components/schemas/tenants.TenantDeleteResponse", "example": { - "generated": true, + "database": "acme_corp", "message": "Success", - "signing_secret": "whsec_EXAMPLE_ONLY_THIS_IS_NOT_A_REAL_SIGNING_KEY" + "status": "completed", + "tenant_id": "acme_corp" } }, "error": { @@ -2914,16 +3013,37 @@ "type": "boolean" } }, - "title": "HandlerEnvelopeWebhooksSigningSecretResponse", + "title": "HandlerEnvelopeTenantsTenantDeleteResponse", "type": "object" }, - "handler.Envelope-webhooks_WebhookDeleteResponse": { + "handler.Envelope-tenants_TenantIdsResponse": { "properties": { "data": { - "$ref": "#/components/schemas/webhooks.WebhookDeleteResponse", + "$ref": "#/components/schemas/tenants.TenantIdsResponse", "example": { - "deleted": true, - "message": "Success" + "databases": [ + "acme_corp", + "research_kb" + ], + "failed_databases": [ + { + "database": "acme_corp", + "error": "", + "tenant_id": "acme_corp" + } + ], + "failed_tenant_ids": [ + { + "database": "acme_corp", + "error": "", + "tenant_id": "acme_corp" + } + ], + "message": "Success", + "tenant_ids": [ + "acme_corp", + "research_kb" + ] } }, "error": { @@ -2968,20 +3088,26 @@ "type": "boolean" } }, - "title": "HandlerEnvelopeWebhooksWebhookDeleteResponse", + "title": "HandlerEnvelopeTenantsTenantIdsResponse", "type": "object" }, - "handler.Envelope-webhooks_WebhookGetResponse": { + "handler.Envelope-tenants_TenantMetadataSchemaResponse": { "properties": { "data": { - "$ref": "#/components/schemas/webhooks.WebhookGetResponse", + "$ref": "#/components/schemas/tenants.TenantMetadataSchemaResponse", "example": { - "event_types": [ - "indexing.status_changed" + "database": "acme_corp", + "fields": [ + { + "data_type": "VARCHAR", + "enable_dense_embedding": true, + "enable_match": true, + "enable_sparse_embedding": false, + "max_length": 256, + "name": "category" + } ], - "registered": true, - "signing_secret_configured": true, - "url": "https://example.com/webhooks/hydradb" + "tenant_id": "acme_corp" } }, "error": { @@ -3026,22 +3152,23 @@ "type": "boolean" } }, - "title": "HandlerEnvelopeWebhooksWebhookGetResponse", + "title": "HandlerEnvelopeTenantsTenantMetadataSchemaResponse", "type": "object" }, - "handler.Envelope-webhooks_WebhookRegisterResponse": { + "handler.Envelope-tenants_TenantStatsResponse": { "properties": { "data": { - "$ref": "#/components/schemas/webhooks.WebhookRegisterResponse", + "$ref": "#/components/schemas/tenants.TenantStatsResponse", "example": { - "event_types": [ - "indexing.status_changed" - ], + "database": "acme_corp", + "knowledge_collection": { + "row_count": 1280 + }, + "memory_collection": { + "row_count": 1280 + }, "message": "Success", - "registered": true, - "signing_secret": "whsec_EXAMPLE_ONLY_THIS_IS_NOT_A_REAL_SIGNING_KEY", - "signing_secret_configured": true, - "url": "https://example.com/webhooks/hydradb" + "tenant_id": "acme_corp" } }, "error": { @@ -3086,17 +3213,29 @@ "type": "boolean" } }, - "title": "HandlerEnvelopeWebhooksWebhookRegisterResponse", + "title": "HandlerEnvelopeTenantsTenantStatsResponse", "type": "object" }, - "handler.Envelope-webhooks_WebhookTestResponse": { + "handler.Envelope-webhooks_DeliveryItem": { "properties": { "data": { - "$ref": "#/components/schemas/webhooks.WebhookTestResponse", + "$ref": "#/components/schemas/webhooks.DeliveryItem", "example": { - "delivered": true, - "message": "Success", - "status_code": 200 + "attempts": 1, + "collection": "team_docs", + "created_at": "2026-07-02T10:00:00Z", + "database": "acme_corp", + "delivery_id": "dlv_9f8e7d6c", + "doc_id": "HydraDoc1234", + "error_code": null, + "error_message": null, + "event_at": "2026-07-02T10:00:00Z", + "event_type": "indexing.status_changed", + "indexing_status": "completed", + "status": "delivered", + "sub_tenant_id": "team_docs", + "tenant_id": "tenant_1234", + "updated_at": "2026-07-02T10:00:05Z" } }, "error": { @@ -3141,331 +3280,741 @@ "type": "boolean" } }, - "title": "HandlerEnvelopeWebhooksWebhookTestResponse", + "title": "HandlerEnvelopeWebhooksDeliveryItem", "type": "object" }, - "handler.ErrorDetail": { + "handler.Envelope-webhooks_DeliveryListResponse": { "properties": { - "deprecated": { - "description": "Whether this response concerns a deprecated field or route.", - "example": true, - "type": "boolean" - }, - "deprecated_field": { - "description": "The deprecated field name.", - "example": "tenant_id", - "type": "string" - }, - "deprecated_since": { - "description": "API version that deprecated the conflicting selector.", - "example": "2.0.1", - "type": "string" - }, - "error_code": { - "description": "Machine-readable error classification code.", - "example": "VALIDATION_ERROR", - "type": "string" - }, - "message": { - "description": "Human-readable description of the error.", - "example": "Request validation failed", - "type": "string" + "data": { + "$ref": "#/components/schemas/webhooks.DeliveryListResponse", + "example": { + "count": 12, + "deliveries": [ + { + "attempts": 1, + "collection": "team_docs", + "created_at": "2026-07-02T10:00:00Z", + "database": "acme_corp", + "delivery_id": "dlv_9f8e7d6c", + "doc_id": "HydraDoc1234", + "error_code": null, + "error_message": null, + "event_at": "2026-07-02T10:00:00Z", + "event_type": "indexing.status_changed", + "indexing_status": "completed", + "status": "delivered", + "sub_tenant_id": "team_docs", + "tenant_id": "tenant_1234", + "updated_at": "2026-07-02T10:00:05Z" + } + ], + "next_cursor": null + } }, - "preferred_field": { - "description": "The canonical replacement for the deprecated field.", - "example": "database", - "type": "string" + "error": { + "anyOf": [ + { + "$ref": "#/components/schemas/handler.apiError", + "title": "HandlerApiError" + }, + { + "title": "No error", + "type": "null" + } + ], + "description": "Error details on failure, or null on success.", + "example": null }, - "retry_after_seconds": { - "description": "Seconds to wait before retrying deletion of context that is still indexing.", - "example": 1, - "type": "integer" + "meta": { + "$ref": "#/components/schemas/handler.responseMeta", + "example": { + "collection": "team_docs", + "database": "acme_corp", + "latency_ms": 12.3, + "request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d", + "source_type": "file", + "sub_tenant_id": "team_docs", + "tenant_id": "acme_corp", + "warnings": [ + { + "code": "acl_ignored_by_connector_enforcement", + "collections": [ + "team_docs", + "engineering" + ], + "message": "This connector enforces ACL, so the request's acl was ignored." + } + ] + } }, - "retryable": { - "description": "Whether retrying this failed query can succeed. Present for search workflow failures.", + "success": { + "description": "Whether the request succeeded.", "example": true, "type": "boolean" - }, - "success": { - "deprecated": true, - "description": "Deprecated: always `false`. Read the HTTP status, then `error.code` and `error.message`.", - "example": false, - "type": "boolean", - "x-deprecated": "true" } }, - "title": "HandlerErrorDetail", + "title": "HandlerEnvelopeWebhooksDeliveryListResponse", "type": "object" }, - "handler.ErrorEnvelope-sources_MemoryDeleteResponse": { + "handler.Envelope-webhooks_RetryResponse": { "properties": { "data": { - "$ref": "#/components/schemas/sources.MemoryDeleteResponse", + "$ref": "#/components/schemas/webhooks.RetryResponse", "example": { - "deleted_count": 1, + "delivery_id": "dlv_9f8e7d6c", "message": "Success", - "results": [ + "queued": true + } + }, + "error": { + "anyOf": [ + { + "$ref": "#/components/schemas/handler.apiError", + "title": "HandlerApiError" + }, + { + "title": "No error", + "type": "null" + } + ], + "description": "Error details on failure, or null on success.", + "example": null + }, + "meta": { + "$ref": "#/components/schemas/handler.responseMeta", + "example": { + "collection": "team_docs", + "database": "acme_corp", + "latency_ms": 12.3, + "request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d", + "source_type": "file", + "sub_tenant_id": "team_docs", + "tenant_id": "acme_corp", + "warnings": [ { - "deleted": true, - "error": "", - "id": "HydraDoc1234" + "code": "acl_ignored_by_connector_enforcement", + "collections": [ + "team_docs", + "engineering" + ], + "message": "This connector enforces ACL, so the request's acl was ignored." } - ], - "success": true, - "user_memory_deleted": 1 + ] } }, - "detail": { - "$ref": "#/components/schemas/handler.ErrorDetail", + "success": { + "description": "Whether the request succeeded.", + "example": true, + "type": "boolean" + } + }, + "title": "HandlerEnvelopeWebhooksRetryResponse", + "type": "object" + }, + "handler.Envelope-webhooks_SigningSecretResponse": { + "properties": { + "data": { + "$ref": "#/components/schemas/webhooks.SigningSecretResponse", "example": { - "deprecated": true, - "deprecated_field": "tenant_id", - "deprecated_since": "2.0.1", - "error_code": "VALIDATION_ERROR", - "message": "Request validation failed", - "preferred_field": "database", - "retry_after_seconds": 1, - "retryable": true + "generated": true, + "message": "Success", + "signing_secret": "whsec_EXAMPLE_ONLY_THIS_IS_NOT_A_REAL_SIGNING_KEY" } }, "error": { - "$ref": "#/components/schemas/handler.apiError", - "description": "Error message, empty string on success.", - "example": { - "code": "DATABASE_NOT_FOUND", - "message": "Database not found" - } + "anyOf": [ + { + "$ref": "#/components/schemas/handler.apiError", + "title": "HandlerApiError" + }, + { + "title": "No error", + "type": "null" + } + ], + "description": "Error details on failure, or null on success.", + "example": null }, "meta": { - "$ref": "#/components/schemas/handler.ErrorMeta", + "$ref": "#/components/schemas/handler.responseMeta", "example": { + "collection": "team_docs", + "database": "acme_corp", "latency_ms": 12.3, - "request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d" + "request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d", + "source_type": "file", + "sub_tenant_id": "team_docs", + "tenant_id": "acme_corp", + "warnings": [ + { + "code": "acl_ignored_by_connector_enforcement", + "collections": [ + "team_docs", + "engineering" + ], + "message": "This connector enforces ACL, so the request's acl was ignored." + } + ] } }, "success": { "description": "Whether the request succeeded.", - "example": false, + "example": true, "type": "boolean" } }, - "title": "HandlerErrorEnvelopeSourcesMemoryDeleteResponse", + "title": "HandlerEnvelopeWebhooksSigningSecretResponse", "type": "object" }, - "handler.ErrorMeta": { + "handler.Envelope-webhooks_WebhookDeleteResponse": { "properties": { - "api_version": { - "description": "Version of the API that served the request, for example `2.0.1`.", - "type": "string" + "data": { + "$ref": "#/components/schemas/webhooks.WebhookDeleteResponse", + "example": { + "deleted": true, + "message": "Success" + } }, - "latency_ms": { - "description": "Server-side processing time in milliseconds.", - "example": 12.3, - "type": "number" + "error": { + "anyOf": [ + { + "$ref": "#/components/schemas/handler.apiError", + "title": "HandlerApiError" + }, + { + "title": "No error", + "type": "null" + } + ], + "description": "Error details on failure, or null on success.", + "example": null }, - "request_id": { - "description": "Unique identifier for this request, useful for support and tracing.", - "example": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d", - "type": "string" + "meta": { + "$ref": "#/components/schemas/handler.responseMeta", + "example": { + "collection": "team_docs", + "database": "acme_corp", + "latency_ms": 12.3, + "request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d", + "source_type": "file", + "sub_tenant_id": "team_docs", + "tenant_id": "acme_corp", + "warnings": [ + { + "code": "acl_ignored_by_connector_enforcement", + "collections": [ + "team_docs", + "engineering" + ], + "message": "This connector enforces ACL, so the request's acl was ignored." + } + ] + } + }, + "success": { + "description": "Whether the request succeeded.", + "example": true, + "type": "boolean" } }, - "title": "HandlerErrorMeta", + "title": "HandlerEnvelopeWebhooksWebhookDeleteResponse", "type": "object" }, - "handler.ErrorResponse": { + "handler.Envelope-webhooks_WebhookGetResponse": { "properties": { "data": { - "description": "Always `null` on this error response.", - "type": "null" - }, - "detail": { - "$ref": "#/components/schemas/handler.ErrorDetail", - "description": "Structured error detail with code, message, and deprecation hints.", + "$ref": "#/components/schemas/webhooks.WebhookGetResponse", "example": { - "deprecated": true, - "deprecated_field": "tenant_id", - "deprecated_since": "2.0.1", - "error_code": "VALIDATION_ERROR", - "message": "Request validation failed", - "preferred_field": "database", - "retry_after_seconds": 1, - "retryable": true + "event_types": [ + "indexing.status_changed" + ], + "registered": true, + "signing_secret_configured": true, + "url": "https://example.com/webhooks/hydradb" } }, "error": { - "$ref": "#/components/schemas/handler.apiError", - "description": "Error message, empty string on success.", - "example": { - "code": "DATABASE_NOT_FOUND", - "message": "Database not found" - } + "anyOf": [ + { + "$ref": "#/components/schemas/handler.apiError", + "title": "HandlerApiError" + }, + { + "title": "No error", + "type": "null" + } + ], + "description": "Error details on failure, or null on success.", + "example": null }, "meta": { - "$ref": "#/components/schemas/handler.ErrorMeta", + "$ref": "#/components/schemas/handler.responseMeta", "example": { + "collection": "team_docs", + "database": "acme_corp", "latency_ms": 12.3, - "request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d" + "request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d", + "source_type": "file", + "sub_tenant_id": "team_docs", + "tenant_id": "acme_corp", + "warnings": [ + { + "code": "acl_ignored_by_connector_enforcement", + "collections": [ + "team_docs", + "engineering" + ], + "message": "This connector enforces ACL, so the request's acl was ignored." + } + ] } }, "success": { "description": "Whether the request succeeded.", - "example": false, + "example": true, "type": "boolean" } }, - "title": "HandlerErrorResponse", + "title": "HandlerEnvelopeWebhooksWebhookGetResponse", "type": "object" }, - "handler.ResponseWarning": { + "handler.Envelope-webhooks_WebhookRegisterResponse": { "properties": { - "code": { - "description": "Code identifies the warning type, such as acl_ignored_by_connector_enforcement.", - "example": "acl_ignored_by_connector_enforcement", - "type": "string" + "data": { + "$ref": "#/components/schemas/webhooks.WebhookRegisterResponse", + "example": { + "event_types": [ + "indexing.status_changed" + ], + "message": "Success", + "registered": true, + "signing_secret": "whsec_EXAMPLE_ONLY_THIS_IS_NOT_A_REAL_SIGNING_KEY", + "signing_secret_configured": true, + "url": "https://example.com/webhooks/hydradb" + } }, - "collections": { - "description": "Collections the warning is about, such as the collections a multi-collection query skipped because they are being deleted.", - "example": [ - "team_docs", - "engineering" + "error": { + "anyOf": [ + { + "$ref": "#/components/schemas/handler.apiError", + "title": "HandlerApiError" + }, + { + "title": "No error", + "type": "null" + } ], - "items": { - "type": "string" - }, - "type": "array", - "uniqueItems": false + "description": "Error details on failure, or null on success.", + "example": null }, - "message": { - "description": "Human-readable explanation of the warning.", - "example": "This connector enforces ACL, so the request's acl was ignored.", - "type": "string" + "meta": { + "$ref": "#/components/schemas/handler.responseMeta", + "example": { + "collection": "team_docs", + "database": "acme_corp", + "latency_ms": 12.3, + "request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d", + "source_type": "file", + "sub_tenant_id": "team_docs", + "tenant_id": "acme_corp", + "warnings": [ + { + "code": "acl_ignored_by_connector_enforcement", + "collections": [ + "team_docs", + "engineering" + ], + "message": "This connector enforces ACL, so the request's acl was ignored." + } + ] + } + }, + "success": { + "description": "Whether the request succeeded.", + "example": true, + "type": "boolean" } }, - "title": "HandlerResponseWarning", + "title": "HandlerEnvelopeWebhooksWebhookRegisterResponse", "type": "object" }, - "handler.apiError": { + "handler.Envelope-webhooks_WebhookTestResponse": { "properties": { - "code": { - "description": "Machine-readable error code (e.g. `DATABASE_NOT_FOUND`).", - "example": "DATABASE_NOT_FOUND", - "type": "string" + "data": { + "$ref": "#/components/schemas/webhooks.WebhookTestResponse", + "example": { + "delivered": true, + "message": "Success", + "status_code": 200 + } }, - "details": { - "additionalProperties": { - "type": "string" - }, - "description": "Extra facts about the error, as string pairs. Omitted when there are none.", - "type": "object" + "error": { + "anyOf": [ + { + "$ref": "#/components/schemas/handler.apiError", + "title": "HandlerApiError" + }, + { + "title": "No error", + "type": "null" + } + ], + "description": "Error details on failure, or null on success.", + "example": null }, - "message": { - "description": "Human-readable description of the error.", - "example": "Database not found", - "type": "string" + "meta": { + "$ref": "#/components/schemas/handler.responseMeta", + "example": { + "collection": "team_docs", + "database": "acme_corp", + "latency_ms": 12.3, + "request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d", + "source_type": "file", + "sub_tenant_id": "team_docs", + "tenant_id": "acme_corp", + "warnings": [ + { + "code": "acl_ignored_by_connector_enforcement", + "collections": [ + "team_docs", + "engineering" + ], + "message": "This connector enforces ACL, so the request's acl was ignored." + } + ] + } }, - "param": { - "description": "The request field that caused the error. Omitted when no single field is at fault.", - "type": "string" + "success": { + "description": "Whether the request succeeded.", + "example": true, + "type": "boolean" } }, - "title": "HandlerApiError", + "title": "HandlerEnvelopeWebhooksWebhookTestResponse", "type": "object" }, - "handler.catalogConnector": { + "handler.ErrorDetail": { "properties": { - "acl_description": { - "description": "One-line summary of which provider permissions are captured as document access rules.", - "type": "string" - }, - "acl_supported": { - "description": "True when the provider captures ACLs and supports per-connector enforcement.", + "deprecated": { + "description": "Whether this response concerns a deprecated field or route.", "example": true, "type": "boolean" }, - "category": { - "description": "Display grouping for the provider, such as `Communication`.", + "deprecated_field": { + "description": "The deprecated field name.", + "example": "tenant_id", "type": "string" }, - "is_alpha": { - "description": "True when the connector is in alpha.", - "example": true, - "type": "boolean" + "deprecated_since": { + "description": "API version that deprecated the conflicting selector.", + "example": "2.0.1", + "type": "string" }, - "is_beta": { - "description": "True when the connector is in beta.", - "example": true, - "type": "boolean" + "error_code": { + "description": "Machine-readable error classification code.", + "example": "VALIDATION_ERROR", + "type": "string" }, - "moveit_support": { - "description": "Which sync engine serves the provider. Informational: you connect every provider the same way, and `credential_schema` already reflects it.", - "example": true, - "type": "boolean" + "message": { + "description": "Human-readable description of the error.", + "example": "Request validation failed", + "type": "string" }, - "provider": { - "description": "External provider being synced (e.g. `slack`, `github`, `linear`, `notion`, `gmail`).", - "example": "slack", + "preferred_field": { + "description": "The canonical replacement for the deprecated field.", + "example": "database", "type": "string" }, - "rank": { - "description": "Catalog display order; lower ranks appear first. `null` when unranked.", - "type": [ - "integer", - "null" - ] + "retry_after_seconds": { + "description": "Seconds to wait before retrying deletion of context that is still indexing.", + "example": 1, + "type": "integer" }, - "supported": { - "description": "Whether the provider can be connected. Only supported providers are listed, so this is always `true`.", + "retryable": { + "description": "Whether retrying this failed query can succeed. Present for search workflow failures.", "example": true, "type": "boolean" }, - "webhook_support": { - "description": "True when the provider's data arrives by inbound webhook instead of scheduled polling. `credential_schema` already describes what to send.", - "example": true, - "type": "boolean" + "success": { + "deprecated": true, + "description": "Deprecated: always `false`. Read the HTTP status, then `error.code` and `error.message`.", + "example": false, + "type": "boolean", + "x-deprecated": "true" } }, - "title": "HandlerCatalogConnector", + "title": "HandlerErrorDetail", "type": "object" }, - "handler.configureReq": { + "handler.ErrorEnvelope-sources_MemoryDeleteResponse": { "properties": { - "full_visibility_roles": { - "description": "HubSpot only. HubSpot roles whose members can see every record; requires the `all` resource. Omit to keep the setting, send `[]` to clear it. Unknown roles fail the request.", - "items": { - "type": "string" - }, - "type": "array", - "uniqueItems": false - }, - "lookback_days": { - "description": "Days of history the first sync fetches. Default `30`. Above `30`, some providers fetch older history in background chunks and the response reports `backfill: true`.", - "example": 30, - "type": "integer" + "data": { + "$ref": "#/components/schemas/sources.MemoryDeleteResponse", + "example": { + "deleted_count": 1, + "message": "Success", + "results": [ + { + "deleted": true, + "error": "", + "id": "HydraDoc1234" + } + ], + "success": true, + "user_memory_deleted": 1 + } }, - "resources": { - "description": "Resources to activate for this connector, each one entry from the Discover endpoint.", - "example": [ - { - "additional_metadata": { - "author": "ada", - "doc_version": 3 - }, - "collection": "team_docs", - "database": "acme_corp", - "metadata": { - "department": "finance", - "priority": 7 - }, - "name": "general", - "resource_id": "C0123456789", - "resource_type": "channel" - } - ], - "items": { - "$ref": "#/components/schemas/handler.resourceMapping" - }, - "type": "array", - "uniqueItems": false + "detail": { + "$ref": "#/components/schemas/handler.ErrorDetail", + "example": { + "deprecated": true, + "deprecated_field": "tenant_id", + "deprecated_since": "2.0.1", + "error_code": "VALIDATION_ERROR", + "message": "Request validation failed", + "preferred_field": "database", + "retry_after_seconds": 1, + "retryable": true + } + }, + "error": { + "$ref": "#/components/schemas/handler.apiError", + "description": "Error message, empty string on success.", + "example": { + "code": "DATABASE_NOT_FOUND", + "message": "Database not found" + } + }, + "meta": { + "$ref": "#/components/schemas/handler.ErrorMeta", + "example": { + "latency_ms": 12.3, + "request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d" + } + }, + "success": { + "description": "Whether the request succeeded.", + "example": false, + "type": "boolean" + } + }, + "title": "HandlerErrorEnvelopeSourcesMemoryDeleteResponse", + "type": "object" + }, + "handler.ErrorMeta": { + "properties": { + "api_version": { + "description": "Version of the API that served the request, for example `2.0.1`.", + "type": "string" + }, + "latency_ms": { + "description": "Server-side processing time in milliseconds.", + "example": 12.3, + "type": "number" + }, + "request_id": { + "description": "Unique identifier for this request, useful for support and tracing.", + "example": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d", + "type": "string" + } + }, + "title": "HandlerErrorMeta", + "type": "object" + }, + "handler.ErrorResponse": { + "properties": { + "data": { + "description": "Always `null` on this error response.", + "type": "null" + }, + "detail": { + "$ref": "#/components/schemas/handler.ErrorDetail", + "description": "Structured error detail with code, message, and deprecation hints.", + "example": { + "deprecated": true, + "deprecated_field": "tenant_id", + "deprecated_since": "2.0.1", + "error_code": "VALIDATION_ERROR", + "message": "Request validation failed", + "preferred_field": "database", + "retry_after_seconds": 1, + "retryable": true + } + }, + "error": { + "$ref": "#/components/schemas/handler.apiError", + "description": "Error message, empty string on success.", + "example": { + "code": "DATABASE_NOT_FOUND", + "message": "Database not found" + } + }, + "meta": { + "$ref": "#/components/schemas/handler.ErrorMeta", + "example": { + "latency_ms": 12.3, + "request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d" + } + }, + "success": { + "description": "Whether the request succeeded.", + "example": false, + "type": "boolean" + } + }, + "title": "HandlerErrorResponse", + "type": "object" + }, + "handler.ResponseWarning": { + "properties": { + "code": { + "description": "Code identifies the warning type, such as acl_ignored_by_connector_enforcement.", + "example": "acl_ignored_by_connector_enforcement", + "type": "string" + }, + "collections": { + "description": "Collections the warning is about, such as the collections a multi-collection query skipped because they are being deleted.", + "example": [ + "team_docs", + "engineering" + ], + "items": { + "type": "string" + }, + "type": "array", + "uniqueItems": false + }, + "message": { + "description": "Human-readable explanation of the warning.", + "example": "This connector enforces ACL, so the request's acl was ignored.", + "type": "string" + } + }, + "title": "HandlerResponseWarning", + "type": "object" + }, + "handler.apiError": { + "properties": { + "code": { + "description": "Machine-readable error code (e.g. `DATABASE_NOT_FOUND`).", + "example": "DATABASE_NOT_FOUND", + "type": "string" + }, + "details": { + "additionalProperties": { + "type": "string" + }, + "description": "Extra facts about the error, as string pairs. Omitted when there are none.", + "type": "object" + }, + "message": { + "description": "Human-readable description of the error.", + "example": "Database not found", + "type": "string" + }, + "param": { + "description": "The request field that caused the error. Omitted when no single field is at fault.", + "type": "string" + } + }, + "title": "HandlerApiError", + "type": "object" + }, + "handler.catalogConnector": { + "properties": { + "acl_description": { + "description": "One-line summary of which provider permissions are captured as document access rules.", + "type": "string" + }, + "acl_supported": { + "description": "True when the provider captures ACLs and supports per-connector enforcement.", + "example": true, + "type": "boolean" + }, + "category": { + "description": "Display grouping for the provider, such as `Communication`.", + "type": "string" + }, + "is_alpha": { + "description": "True when the connector is in alpha.", + "example": true, + "type": "boolean" + }, + "is_beta": { + "description": "True when the connector is in beta.", + "example": true, + "type": "boolean" + }, + "moveit_support": { + "description": "Which sync engine serves the provider. Informational: you connect every provider the same way, and `credential_schema` already reflects it.", + "example": true, + "type": "boolean" + }, + "provider": { + "description": "External provider being synced (e.g. `slack`, `github`, `linear`, `notion`, `gmail`).", + "example": "slack", + "type": "string" + }, + "rank": { + "description": "Catalog display order; lower ranks appear first. `null` when unranked.", + "type": [ + "integer", + "null" + ] + }, + "supported": { + "description": "Whether the provider can be connected. Only supported providers are listed, so this is always `true`.", + "example": true, + "type": "boolean" + }, + "webhook_support": { + "description": "True when the provider's data arrives by inbound webhook instead of scheduled polling. `credential_schema` already describes what to send.", + "example": true, + "type": "boolean" + } + }, + "title": "HandlerCatalogConnector", + "type": "object" + }, + "handler.configureReq": { + "properties": { + "full_visibility_roles": { + "description": "HubSpot only. HubSpot roles whose members can see every record; requires the `all` resource. Omit to keep the setting, send `[]` to clear it. Unknown roles fail the request.", + "items": { + "type": "string" + }, + "type": "array", + "uniqueItems": false + }, + "lookback_days": { + "description": "Days of history the first sync fetches. Default `30`. Above `30`, some providers fetch older history in background chunks and the response reports `backfill: true`.", + "example": 30, + "type": "integer" + }, + "resources": { + "description": "Resources to activate for this connector, each one entry from the Discover endpoint.", + "example": [ + { + "additional_metadata": { + "author": "ada", + "doc_version": 3 + }, + "collection": "team_docs", + "database": "acme_corp", + "metadata": { + "department": "finance", + "priority": 7 + }, + "name": "general", + "resource_id": "C0123456789", + "resource_type": "channel" + } + ], + "items": { + "$ref": "#/components/schemas/handler.resourceMapping" + }, + "type": "array", + "uniqueItems": false }, "table_configs": { "description": "Per-table replication settings for table-syncing connectors (currently BigQuery), applied from the first sync. Other connectors return `400`.", @@ -4146,7 +4695,7 @@ "type": "string" }, "page_acl_warning": { - "description": "Set when page-level restrictions in this resource (for example Confluence pages) could not be resolved, so those pages are readable by everyone. Clears after a clean full sync.", + "description": "Set when pages or files in this resource have permissions that could not be read: they are readable by everyone, or hidden from everyone on a connector that enforces ACLs in fail-closed mode.", "type": "string" }, "page_acl_warning_at": { @@ -4442,6 +4991,11 @@ "type": "array", "uniqueItems": false }, + "acl_inherit": { + "description": "Set to `true` to remove the context's own ACL and use its connector resource permissions again. Rejected without connector resource attribution. Do not send `acl` too.", + "example": true, + "type": "boolean" + }, "additional_metadata": { "additionalProperties": {}, "description": "Free-form values merged into the context's `additional_metadata`. At most 1 KiB as compact JSON.", @@ -4885,6 +5439,9 @@ }, "type": "object" }, + "calendar_binding": { + "$ref": "#/components/schemas/github_com_hydradb_hydradb-application_internal_connectors_providers_gmail.CalendarBinding" + }, "collection_override": { "description": "Routes objects synced from this resource into a specific collection. Empty means the connector's collection.", "type": "string" @@ -5161,6 +5718,9 @@ }, "type": "object" }, + "calendar_binding": { + "$ref": "#/components/schemas/github_com_hydradb_hydradb-application_internal_connectors_providers_gmail.CalendarBinding" + }, "collection": { "description": "Routes objects synced from this resource into a specific collection. Overrides the connector-level `collection`; empty means the connector's collection.", "example": "team_docs", @@ -5752,7 +6312,7 @@ "$ref": "#/components/schemas/list.SourceFieldFilters" } ], - "description": "Match on built-in fields: `title` (case-insensitive prefix), `type`, `description`, `url`, `timestamp` and `app_*` fields. Pair `app_external_id` or `app_parent_id` with `app_provider`.", + "description": "Match on built-in fields: `title` (normalized prefix), `type`, `description`, `url`, `timestamp` and `app_*` fields. Pair `app_external_id` or `app_parent_id` with `app_provider`.", "example": { "app_external_id": "C0123456789", "app_kind": "slack", @@ -5802,7 +6362,7 @@ "type": "string" }, "title": { - "description": "Case-insensitive title prefix.", + "description": "Title prefix after normalization: Unicode NFKC, invisible and decorative characters removed, lowercase, spaces collapsed and trimmed, known final file extensions removed.", "example": "Project Phoenix Overview", "type": "string" }, @@ -6727,8 +7287,15 @@ "uniqueItems": false }, "additional_context": { - "description": "Optional context string prepended to the query to improve retrieval relevance.", - "example": "The user is a senior engineer onboarding to the platform.", + "deprecated": true, + "description": "Deprecated: use `additional_graph_context` for the retrieval hint.", + "example": "The user is on the billing page.", + "type": "string", + "x-deprecated": "true" + }, + "additional_graph_context": { + "description": "Short factual hint that guides retrieval, for example `the user is on the billing page`. It is not a filter.", + "example": "The user is on the billing page.", "type": "string" }, "alpha": { @@ -6798,6 +7365,13 @@ ], "x-preferred": true }, + "context": { + "deprecated": true, + "description": "Deprecated: use `additional_graph_context`. Used only when both other hint names are absent.", + "example": "Ada joined Acme Corp in 2024 as a staff engineer.", + "type": "string", + "x-deprecated": "true" + }, "database": { "description": "The database to query. Formerly `tenant_id`, which is still accepted.", "example": "acme_corp", @@ -6869,14 +7443,23 @@ "description": "Retrieval method to use for the query.", "example": "hybrid" }, - "query_forceful_relations": { + "query_explicit_relations": { "default": true, - "description": "In thinking mode, follow relations declared at ingestion and return their chunks in `additional_context`.", + "description": "Follow the deterministic source links declared at ingestion and return their linked contexts. Defaults to `true`; `false` skips them.", "example": true, "type": "boolean" }, + "query_forceful_relations": { + "default": true, + "deprecated": true, + "description": "Deprecated: use `query_explicit_relations`. The canonical switch takes precedence when both are sent.", + "example": true, + "type": "boolean", + "x-deprecated": "true" + }, "recency_bias": { - "description": "Recency boost for ranking, from `0.0` to `1.0`. Default `0.4`; `0` disables it. It never buries a clearly more relevant result.", + "default": 0.6, + "description": "Recency boost for ranking, from `0.0` to `1.0`. Default `0.6`; `0` disables it. It never buries a clearly more relevant result.", "example": 0.2, "type": "number" }, @@ -6957,7 +7540,7 @@ "x-deprecated": "true" }, "titles": { - "description": "Exact document titles to search within, matched case-insensitively and ORed. Intersected with `ids` when both are sent.", + "description": "Exact document titles to search within, ORed. Titles are normalized like `source_fields.title`, then matched exactly. Intersected with `ids` when both are sent.", "items": { "type": "string" }, @@ -6970,8 +7553,8 @@ "$ref": "#/components/schemas/search.SourceType" } ], - "default": "knowledge", - "description": "Context to search, `knowledge`, `memory` or `all`." + "default": "all", + "description": "Context to search, `knowledge`, `memory` or `all`. Omit it to search everything." } }, "title": "SearchQueryRequest", @@ -7126,6 +7709,7 @@ "type": "object" }, "search.TabularColumn": { + "description": "One result column: its name, SQL type and the JSON kind of its values in `records`.", "properties": { "kind": { "description": "JSON kind of the column's values in `records`: `integer`, `number`, `decimal` (a string, to keep precision), `boolean`, `date`, `time`, `timestamp` or `string`.", @@ -7157,6 +7741,7 @@ "type": "object" }, "search.TabularConstant": { + "description": "One literal the SQL took from the question or from a passage, with the chunk it came from.", "properties": { "chunk_id": { "description": "Chunk the value was taken from; absent when the question stated it.", @@ -7318,6 +7903,7 @@ "type": "object" }, "search.TabularError": { + "description": "Why the table query failed, with a stable code; the text answer stands.", "properties": { "code": { "description": "Stable code identifying why the table query failed.", @@ -7630,7 +8216,16 @@ "additionalProperties": { "$ref": "#/components/schemas/search.V2Chunk" }, - "description": "Map of chunk IDs to related content declared at ingestion.", + "deprecated": true, + "description": "Deprecated: use `additional_graph_context`. The same map of chunk IDs to linked contexts.", + "type": "object", + "x-deprecated": "true" + }, + "additional_graph_context": { + "additionalProperties": { + "$ref": "#/components/schemas/search.V2Chunk" + }, + "description": "Map of chunk IDs to linked contexts declared at ingestion. Separate from the request's factual hint of the same name.", "type": "object" }, "alias_expansions": { @@ -8911,6 +9506,718 @@ }, "openapi": "3.1.0", "paths": { + "/byog": { + "post": { + "description": "Run read-only Cypher against a managed graph. Every node pattern is scoped to the requested database and collection. Use POST /byog/query for a graph you manage yourself.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.BYOGRequest" + } + } + }, + "description": "Read-only Cypher request", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.Envelope-handler_BYOGQueryRows" + } + } + }, + "description": "OK" + }, + "400": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "401": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "403": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "404": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "413": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "429": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + } + }, + "security": [ + { + "BearerAuth": [] + } + ], + "summary": "Read a managed graph with Cypher", + "tags": [ + "byog" + ], + "x-fern-sdk-group-name": "byog", + "x-fern-sdk-method-name": "queryManaged" + } + }, + "/byog/collections": { + "delete": { + "description": "Delete one graph collection and all its nodes and relationships. Succeeds when the collection is already absent; the database must exist.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.BYOGCRUDCollectionRequest" + } + } + }, + "description": "Graph collection to delete", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.Envelope-handler_BYOGCollectionDeleted" + } + } + }, + "description": "OK" + }, + "400": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "401": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "403": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "404": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "409": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "413": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "429": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "503": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + } + }, + "security": [ + { + "BearerAuth": [] + } + ], + "summary": "Delete a graph collection", + "tags": [ + "byog" + ], + "x-fern-sdk-group-name": "byog", + "x-fern-sdk-method-name": "deleteCollection" + }, + "get": { + "description": "List the graph collections created by writes in a database. Returns an empty list when none exist, and 404 when the database does not exist.", + "parameters": [ + { + "description": "Database whose graph collections to list", + "example": "acme_corp", + "in": "query", + "name": "database", + "required": true, + "schema": { + "example": "acme_corp", + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.Envelope-handler_BYOGCollections" + } + } + }, + "description": "OK" + }, + "400": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "401": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "403": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "404": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "429": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "503": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + } + }, + "security": [ + { + "BearerAuth": [] + } + ], + "summary": "List graph collections", + "tags": [ + "byog" + ], + "x-fern-sdk-group-name": "byog", + "x-fern-sdk-method-name": "listCollections" + } + }, + "/byog/databases": { + "delete": { + "description": "Delete the database's graph collections. A database created through BYOG is deleted too; a managed database keeps its managed content. Retry a failed deletion to finish cleanup.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.BYOGCRUDDatabaseRequest" + } + } + }, + "description": "Database whose graph data to delete", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.Envelope-handler_BYOGDatabaseDeleted" + } + } + }, + "description": "OK" + }, + "400": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "401": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "403": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "404": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "409": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "413": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "429": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "503": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + } + }, + "security": [ + { + "BearerAuth": [] + } + ], + "summary": "Delete a graph database", + "tags": [ + "byog" + ], + "x-fern-sdk-group-name": "byog", + "x-fern-sdk-method-name": "deleteDatabase" + }, + "post": { + "description": "Create a database for a graph you manage yourself. The response reports whether it is ready or still provisioning. An existing name returns 409.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.BYOGCRUDDatabaseRequest" + } + } + }, + "description": "Database to create", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.Envelope-handler_BYOGDatabaseCreated" + } + } + }, + "description": "OK" + }, + "400": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "401": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "403": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "409": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "413": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "429": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + } + }, + "security": [ + { + "BearerAuth": [] + } + ], + "summary": "Create a graph database", + "tags": [ + "byog" + ], + "x-fern-sdk-group-name": "byog", + "x-fern-sdk-method-name": "createDatabase" + } + }, + "/byog/query": { + "post": { + "description": "Run Cypher reads, writes or supported schema statements against your graph. The database must already exist; a collection is created on its first write.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.BYOGCRUDQueryRequest" + } + } + }, + "description": "Cypher request", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.Envelope-handler_BYOGQueryRows" + } + } + }, + "description": "OK" + }, + "400": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "401": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "403": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "404": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "409": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "413": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "429": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "500": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + }, + "503": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/handler.ErrorResponse" + } + } + }, + "description": "Bad Request" + } + }, + "security": [ + { + "BearerAuth": [] + } + ], + "summary": "Query a graph you manage", + "tags": [ + "byog" + ], + "x-fern-sdk-group-name": "byog", + "x-fern-sdk-method-name": "query" + } + }, "/connectors": { "get": { "description": "List all connectors for the authenticated org, optionally filtered by provider.", diff --git a/api-reference/v2/sdks.mdx b/api-reference/v2/sdks.mdx index 90c58ea3..c1b65963 100644 --- a/api-reference/v2/sdks.mdx +++ b/api-reference/v2/sdks.mdx @@ -18,6 +18,8 @@ npm install @hydradb/sdk@^2.1.7 ``` +BYOG SDK examples require Python `hydradb-sdk` 2.1.8 and TypeScript `@hydradb/sdk` 2.1.9 or later. Until those versions are available in your package registry, use the cURL examples on the BYOG endpoint pages. + ## Client setup @@ -64,7 +66,7 @@ In TypeScript: ## Method reference -Methods are grouped under one namespace per API group: `client.context`, `client.databases`, `client.connectors`, `client.webhooks`, and `client.feedback`. `client.query()` and `client.list_providers()` sit on the client itself. The tables use the Python method names. TypeScript uses camelCase for multi-word ones (`list_resources()` is `listResources()`). +Methods are grouped under one namespace per API group: `client.context`, `client.databases`, `client.connectors`, `client.webhooks`, `client.feedback`, and `client.byog`. `client.query()` and `client.list_providers()` sit on the client itself. The tables use the Python method names. TypeScript uses camelCase for multi-word ones (`list_resources()` is `listResources()`). ### Context @@ -146,6 +148,17 @@ The legacy `/tenants/*` paths remain available as deprecated aliases of `/databa | `client.webhooks.set_signing_secret()` | `POST /webhooks/indexing/signing-secret` | | `client.webhooks.clear_signing_secret()` | `DELETE /webhooks/indexing/signing-secret` | +### Bring Your Own Graph + +| Python method | Endpoint | +| --- | --- | +| `client.byog.query_managed(...)` | [POST /byog](/api-reference/v2/endpoint/byog-query-managed) | +| `client.byog.query(...)` | [POST /byog/query](/api-reference/v2/endpoint/byog-query) | +| `client.byog.create_database(...)` | [POST /byog/databases](/api-reference/v2/endpoint/byog-create-database) | +| `client.byog.delete_database(...)` | [DELETE /byog/databases](/api-reference/v2/endpoint/byog-delete-database) | +| `client.byog.list_collections(...)` | [GET /byog/collections](/api-reference/v2/endpoint/byog-list-collections) | +| `client.byog.delete_collection(...)` | [DELETE /byog/collections](/api-reference/v2/endpoint/byog-delete-collection) | + ## Common calls These examples show the SDK call shape for each step of an integration, in both languages. The [Quickstart](/get-started/v2/quickstart) explains the flow end to end. diff --git a/cookbooks/v2/cursor.mdx b/cookbooks/v2/cursor.mdx index bd8bfa0a..a38e89bb 100644 --- a/cookbooks/v2/cursor.mdx +++ b/cookbooks/v2/cursor.mdx @@ -95,7 +95,7 @@ def search_code(question): context = { "chunks": data.get("chunks") or [], "graph_context": data.get("graph_context") or {}, - "additional_context": data.get("additional_context") or {}, + "additional_graph_context": data.get("additional_graph_context") or data.get("additional_context") or {}, } for chunk in context["chunks"]: chunk["path"] = (chunk.get("additional_metadata") or {}).get("path", chunk.get("source_title")) diff --git a/cookbooks/v2/personal-assistant.mdx b/cookbooks/v2/personal-assistant.mdx index dee6fc98..90ffa57b 100644 --- a/cookbooks/v2/personal-assistant.mdx +++ b/cookbooks/v2/personal-assistant.mdx @@ -146,5 +146,5 @@ The first answer suggests vegetarian options near King's Cross, not Shoreditch. ## Next steps -- [Context](/essentials/v2/context#ingesting-memory): `infer`, `custom_instructions`, and deleting a memory. +- [Context](/essentials/v2/context#ingesting-memory): `infer`, per-user scope, and deleting a memory. - [Build your own AI Chief of Staff](/cookbooks/v2/chief-of-staff): the same memory, applied to meetings and commitments. diff --git a/docs.json b/docs.json index b329bf8c..d9885bdd 100644 --- a/docs.json +++ b/docs.json @@ -74,17 +74,122 @@ "essentials/v2/bring-your-own-graph" ] }, - { - "group": "Tools and Integrations", - "public": true, - "pages": [ - "plugins/cli", - "plugins/mcp", - "plugins/ecosystem" - ] - }, - { - "group": "For Agents", + { + "group": "Tools and Integrations", + "public": true, + "pages": [ + "plugins/cli", + "plugins/mcp", + "plugins/ecosystem" + ] + }, + { + "group": "Connector providers", + "public": true, + "pages": [ + "essentials/v2/connector-providers", + "essentials/v2/connectors/affinity", + "essentials/v2/connectors/airtable", + "essentials/v2/connectors/amplitude", + "essentials/v2/connectors/asana", + "essentials/v2/connectors/attio", + "essentials/v2/connectors/avoma", + "essentials/v2/connectors/bamboohr", + "essentials/v2/connectors/bigquery", + "essentials/v2/connectors/bookstack", + "essentials/v2/connectors/box", + "essentials/v2/connectors/calendly", + "essentials/v2/connectors/chargebee", + "essentials/v2/connectors/clickup", + "essentials/v2/connectors/codat", + "essentials/v2/connectors/confluence", + "essentials/v2/connectors/contentful", + "essentials/v2/connectors/copper", + "essentials/v2/connectors/crossbeam", + "essentials/v2/connectors/datadog", + "essentials/v2/connectors/discord", + "essentials/v2/connectors/dropbox", + "essentials/v2/connectors/eloqua", + "essentials/v2/connectors/figma", + "essentials/v2/connectors/fireflies", + "essentials/v2/connectors/freshdesk", + "essentials/v2/connectors/github", + "essentials/v2/connectors/gitlab", + "essentials/v2/connectors/gmail", + "essentials/v2/connectors/gong", + "essentials/v2/connectors/googleads", + "essentials/v2/connectors/ga4", + "essentials/v2/connectors/google-calendar", + "essentials/v2/connectors/google-drive", + "essentials/v2/connectors/google-search-console", + "essentials/v2/connectors/google-sheets", + "essentials/v2/connectors/gorgias", + "essentials/v2/connectors/granola", + "essentials/v2/connectors/greenhouse", + "essentials/v2/connectors/guru", + "essentials/v2/connectors/helpscout", + "essentials/v2/connectors/hubspot", + "essentials/v2/connectors/intercom", + "essentials/v2/connectors/iterable", + "essentials/v2/connectors/jira", + "essentials/v2/connectors/klaviyo", + "essentials/v2/connectors/kustomer", + "essentials/v2/connectors/launchdarkly", + "essentials/v2/connectors/lever", + "essentials/v2/connectors/linear", + "essentials/v2/connectors/linkedin-ads", + "essentials/v2/connectors/loom", + "essentials/v2/connectors/mailchimp", + "essentials/v2/connectors/marketo", + "essentials/v2/connectors/dynamics", + "essentials/v2/connectors/microsoft-teams", + "essentials/v2/connectors/ms-graph", + "essentials/v2/connectors/mixpanel", + "essentials/v2/connectors/monday", + "essentials/v2/connectors/netsuite", + "essentials/v2/connectors/nextcloud", + "essentials/v2/connectors/notion", + "essentials/v2/connectors/okta", + "essentials/v2/connectors/outlook", + "essentials/v2/connectors/outreach", + "essentials/v2/connectors/pagerduty", + "essentials/v2/connectors/pardot", + "essentials/v2/connectors/pendo", + "essentials/v2/connectors/pipedrive", + "essentials/v2/connectors/posthog", + "essentials/v2/connectors/quickbooks", + "essentials/v2/connectors/recurly", + "essentials/v2/connectors/ringcentral", + "essentials/v2/connectors/salesforce", + "essentials/v2/connectors/segment", + "essentials/v2/connectors/sendgrid", + "essentials/v2/connectors/sentry", + "essentials/v2/connectors/servicenow", + "essentials/v2/connectors/sharepoint", + "essentials/v2/connectors/shortcut", + "essentials/v2/connectors/slack", + "essentials/v2/connectors/smartsheet", + "essentials/v2/connectors/stripe", + "essentials/v2/connectors/supabase", + "essentials/v2/connectors/coda", + "essentials/v2/connectors/surveymonkey", + "essentials/v2/connectors/tableau", + "essentials/v2/connectors/trello", + "essentials/v2/connectors/twilio", + "essentials/v2/connectors/twitter", + "essentials/v2/connectors/typeform", + "essentials/v2/connectors/uservoice", + "essentials/v2/connectors/workday-raas", + "essentials/v2/connectors/wrike", + "essentials/v2/connectors/xero", + "essentials/v2/connectors/zendesk", + "essentials/v2/connectors/zoho-crm", + "essentials/v2/connectors/zoom", + "essentials/v2/connectors/zuora" + ] + }, + { + "group": "For Agents", "public": true, "pages": [ "AGENTS" @@ -159,8 +264,8 @@ "api-reference/v2/endpoint/update-connector-resource" ] }, - { - "group": "Webhooks", + { + "group": "Webhooks", "public": true, "pages": [ "api-reference/v2/endpoint/webhooks-overview", @@ -172,9 +277,21 @@ "api-reference/v2/endpoint/get-webhook-delivery", "api-reference/v2/endpoint/retry-webhook-delivery", "api-reference/v2/endpoint/set-webhook-signing-secret", - "api-reference/v2/endpoint/disable-webhook-signing" - ] - } + "api-reference/v2/endpoint/disable-webhook-signing" + ] + }, + { + "group": "Bring Your Own Graph", + "public": true, + "pages": [ + "api-reference/v2/endpoint/byog-query-managed", + "api-reference/v2/endpoint/byog-create-database", + "api-reference/v2/endpoint/byog-query", + "api-reference/v2/endpoint/byog-list-collections", + "api-reference/v2/endpoint/byog-delete-collection", + "api-reference/v2/endpoint/byog-delete-database" + ] + } ] }, { diff --git a/essentials/v2/bring-your-own-graph.mdx b/essentials/v2/bring-your-own-graph.mdx index bcb322b9..00d54ec0 100644 --- a/essentials/v2/bring-your-own-graph.mdx +++ b/essentials/v2/bring-your-own-graph.mdx @@ -13,7 +13,7 @@ Create a database, write two nodes, and read them back: BASE=https://api.hydradb.com KEY="your-api-key" -# 1. Create a database (ready immediately) +# 1. Create a database (check the returned status before querying) curl -X POST "$BASE/byog/databases" \ -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ -d '{"database": "crm"}' @@ -58,9 +58,7 @@ do not exist, and `MATCH (n) RETURN n` returns only your own nodes. ### `POST /byog/databases`: create a database -A database groups your collections. Creating a database here makes it ready -immediately; a database created with the standard `POST /databases` can also -hold graph collections. Creating a name that already exists returns `409`. +A database groups your collections. Check the returned `status`: `ready` means you can query it now; `provisioning` means you need to wait for [Database Status](/api-reference/v2/endpoint/database-status) to report readiness. A database created with the standard `POST /databases` can also hold graph collections. Creating a name that already exists returns `409`. ```bash Request diff --git a/essentials/v2/connector-providers.mdx b/essentials/v2/connector-providers.mdx new file mode 100644 index 00000000..2401ea81 --- /dev/null +++ b/essentials/v2/connector-providers.mdx @@ -0,0 +1,111 @@ +--- +title: "Connector providers" +description: "See what each connector indexes before you connect an account." +--- + +Choose a provider to see the indexed object types and any provider-specific setup steps. These pages describe content capabilities; availability and credentials come from your deployment's [provider catalog](/api-reference/v2/endpoint/list-connector-providers). + +| Provider | Indexed object types (examples) | +| --- | --- | +| [Affinity](/essentials/v2/connectors/affinity) | `list_entries`, `notes` | +| [Airtable](/essentials/v2/connectors/airtable) | See provider page | +| [Amplitude](/essentials/v2/connectors/amplitude) | `events` | +| [Asana](/essentials/v2/connectors/asana) | `tasks`, `subtasks`, `stories`, and more | +| [attio](/essentials/v2/connectors/attio) | `records`, `list_entries`, `notes`, and more | +| [Avoma](/essentials/v2/connectors/avoma) | `meetings`, `scorecard_evaluations` | +| [BambooHR](/essentials/v2/connectors/bamboohr) | `employees`, `time_off_requests`, `whos_out` | +| [BigQuery](/essentials/v2/connectors/bigquery) | See provider page | +| [BookStack](/essentials/v2/connectors/bookstack) | `books`, `pages`, `chapters` | +| [Box](/essentials/v2/connectors/box) | `folder_items` | +| [Calendly](/essentials/v2/connectors/calendly) | `scheduled_events` | +| [Chargebee](/essentials/v2/connectors/chargebee) | `invoices`, `customers`, `subscriptions`, and more | +| [ClickUp](/essentials/v2/connectors/clickup) | `team`, `task`, `task_comment` | +| [Codat](/essentials/v2/connectors/codat) | `invoices`, `customers`, `bills`, and more | +| [Confluence](/essentials/v2/connectors/confluence) | `content`, `attachments` | +| [Contentful](/essentials/v2/connectors/contentful) | `entries`, `tasks` | +| [Copper](/essentials/v2/connectors/copper) | `opportunities`, `leads`, `tasks`, and more | +| [Crossbeam](/essentials/v2/connectors/crossbeam) | `account`, `lead`, `partner_account`, and more | +| [Datadog](/essentials/v2/connectors/datadog) | `aggregate_logs`, `metric_response_time`, `slo_history_us_prod`, and more | +| [Discord](/essentials/v2/connectors/discord) | `messages` | +| [Dropbox](/essentials/v2/connectors/dropbox) | `files` | +| [eloqua](/essentials/v2/connectors/eloqua) | `campaigns`, `emails`, `forms` | +| [Figma](/essentials/v2/connectors/figma) | `files` | +| [Fireflies](/essentials/v2/connectors/fireflies) | `transcripts` | +| [Freshdesk](/essentials/v2/connectors/freshdesk) | `tickets`, `conversations` | +| [GitHub](/essentials/v2/connectors/github) | `issues`, `issue_comments` | +| [GitLab](/essentials/v2/connectors/gitlab) | `issues`, `merge_requests`, `issue_notes`, and more | +| [Gmail](/essentials/v2/connectors/gmail) | `messages` | +| [Gong](/essentials/v2/connectors/gong) | `calls`, `answered_scorecards`, `library_calls` | +| [Google Ads](/essentials/v2/connectors/googleads) | `accessible_customers`, `customer_hierarchy`, `customer`, and more | +| [Google Analytics](/essentials/v2/connectors/ga4) | `website_overview`, `traffic_sources`, `locations`, and more | +| [Google Calendar](/essentials/v2/connectors/google-calendar) | `events` | +| [Google Drive](/essentials/v2/connectors/google-drive) | `files` | +| [Google Search Console](/essentials/v2/connectors/google-search-console) | `performance_report_query`, `performance_report_page`, `performance_report_date`, and more | +| [Google Sheets](/essentials/v2/connectors/google-sheets) | `spreadsheet_metadata`, `sheet_data` | +| [Gorgias](/essentials/v2/connectors/gorgias) | `tickets`, `messages` | +| [Granola](/essentials/v2/connectors/granola) | `notes` | +| [Greenhouse](/essentials/v2/connectors/greenhouse) | `candidates`, `applications`, `jobs`, and more | +| [Guru](/essentials/v2/connectors/guru) | `cards` | +| [Help Scout](/essentials/v2/connectors/helpscout) | `conversations`, `conversation_threads` | +| [HubSpot](/essentials/v2/connectors/hubspot) | `deals`, `tickets`, `contacts`, and more | +| [Intercom](/essentials/v2/connectors/intercom) | `conversations`, `conversation_parts`, `articles`, and more | +| [Iterable](/essentials/v2/connectors/iterable) | `campaigns`, `lists`, `templates` | +| [Jira](/essentials/v2/connectors/jira) | `issues`, `issue_comments`, `issue_worklogs` | +| [Klaviyo](/essentials/v2/connectors/klaviyo) | `campaigns`, `flows`, `lists`, and more | +| [Kustomer](/essentials/v2/connectors/kustomer) | `conversations`, `messages` | +| [LaunchDarkly](/essentials/v2/connectors/launchdarkly) | `feature_flags`, `audit_log`, `segments`, and more | +| [Lever](/essentials/v2/connectors/lever) | `opportunities`, `candidates`, `postings`, and more | +| [Linear](/essentials/v2/connectors/linear) | `Issues` | +| [LinkedIn Ads](/essentials/v2/connectors/linkedin-ads) | `accounts`, `account_users`, `ad_analytics_by_campaign`, and more | +| [Loom](/essentials/v2/connectors/loom) | `videos` | +| [Mailchimp](/essentials/v2/connectors/mailchimp) | `campaigns`, `lists`, `automations` | +| [Marketo](/essentials/v2/connectors/marketo) | `campaigns`, `programs`, `lists` | +| [Microsoft Dynamics 365](/essentials/v2/connectors/dynamics) | `accounts`, `contacts`, `leads`, and more | +| [Microsoft Teams](/essentials/v2/connectors/microsoft-teams) | `channel_messages`, `chat_messages` | +| [Microsoft Teams & Outlook](/essentials/v2/connectors/ms-graph) | `channel_messages`, `chat_messages`, `mail_messages` | +| [Mixpanel](/essentials/v2/connectors/mixpanel) | `export`, `funnels`, `revenue`, and more | +| [Monday.com](/essentials/v2/connectors/monday) | `items`, `assets` | +| [NetSuite](/essentials/v2/connectors/netsuite) | `Invoice`, `Customer`, `Accounts`, and more | +| [Nextcloud](/essentials/v2/connectors/nextcloud) | `files` | +| [Notion](/essentials/v2/connectors/notion) | `pages` | +| [Okta](/essentials/v2/connectors/okta) | `users`, `groups`, `applications`, and more | +| [Outlook](/essentials/v2/connectors/outlook) | `mail_messages` | +| [Outreach](/essentials/v2/connectors/outreach) | `opportunities`, `prospects`, `accounts`, and more | +| [PagerDuty](/essentials/v2/connectors/pagerduty) | `incidents`, `schedules`, `escalation_policies` | +| [Pardot](/essentials/v2/connectors/pardot) | `opportunities`, `prospects`, `prospect_accounts` | +| [Pendo](/essentials/v2/connectors/pendo) | `accounts`, `events`, `feature_events`, and more | +| [Pipedrive](/essentials/v2/connectors/pipedrive) | `deals`, `persons`, `organizations`, and more | +| [PostHog](/essentials/v2/connectors/posthog) | `persons`, `cohorts`, `feature_flags`, and more | +| [QuickBooks](/essentials/v2/connectors/quickbooks) | `Invoice`, `Customer`, `Payment`, and more | +| [Recurly](/essentials/v2/connectors/recurly) | `invoices`, `accounts`, `subscriptions`, and more | +| [RingCentral](/essentials/v2/connectors/ringcentral) | `messages`, `call_logs` | +| [Salesforce](/essentials/v2/connectors/salesforce) | `Opportunity`, `Lead`, `Account`, and more | +| [Segment](/essentials/v2/connectors/segment) | `source_api_calls_daily`, `workspace_api_calls_daily`, `events_volume_daily`, and more | +| [SendGrid](/essentials/v2/connectors/sendgrid) | `single_sends`, `lists`, `segments`, and more | +| [Sentry](/essentials/v2/connectors/sentry) | `issues`, `events`, `projects`, and more | +| [ServiceNow](/essentials/v2/connectors/servicenow) | `kb_knowledge`, `sc_cat_item`, `incident`, and more | +| [SharePoint](/essentials/v2/connectors/sharepoint) | `pages`, `driveItems`, `listItems` | +| [Shortcut](/essentials/v2/connectors/shortcut) | `stories`, `project_stories`, `epics` | +| [Slack](/essentials/v2/connectors/slack) | `conversation_history` | +| [Smartsheet](/essentials/v2/connectors/smartsheet) | See provider page | +| [Stripe](/essentials/v2/connectors/stripe) | `invoices`, `customers`, `subscriptions`, and more | +| [Supabase](/essentials/v2/connectors/supabase) | See provider page | +| [Superhuman](/essentials/v2/connectors/coda) | `docs`, `pages`, `page_contents`, and more | +| [SurveyMonkey](/essentials/v2/connectors/surveymonkey) | `survey_details`, `simplified_responses` | +| [Tableau](/essentials/v2/connectors/tableau) | `datasources`, `groups`, `projects`, and more | +| [Trello](/essentials/v2/connectors/trello) | `cards` | +| [Twilio](/essentials/v2/connectors/twilio) | `messages`, `calls`, `conferences`, and more | +| [twitter](/essentials/v2/connectors/twitter) | `posts`, `dms` | +| [Typeform](/essentials/v2/connectors/typeform) | `forms`, `responses`, `partial_responses` | +| [uservoice](/essentials/v2/connectors/uservoice) | `suggestions`, `comments` | +| [Workday RaaS](/essentials/v2/connectors/workday-raas) | `workers`, `employees` | +| [Wrike](/essentials/v2/connectors/wrike) | `tasks`, `comments` | +| [Xero](/essentials/v2/connectors/xero) | `invoices`, `contacts`, `payments`, and more | +| [Zendesk](/essentials/v2/connectors/zendesk) | `tickets`, `ticket_comments`, `satisfaction_ratings` | +| [Zoho CRM](/essentials/v2/connectors/zoho-crm) | `deals`, `leads`, `contacts`, and more | +| [Zoom](/essentials/v2/connectors/zoom) | `cloud_recordings`, `meetings`, `webinars` | +| [zuora](/essentials/v2/connectors/zuora) | `Invoice`, `Account`, `Subscription`, and more | + +## Related + +- [Connectors](/essentials/v2/connectors): shared setup and sync workflow diff --git a/essentials/v2/connectors.mdx b/essentials/v2/connectors.mdx index 8ffce2a1..8d3fc108 100644 --- a/essentials/v2/connectors.mdx +++ b/essentials/v2/connectors.mdx @@ -58,6 +58,8 @@ They are the same for every provider; only the credentials and resource types ch ### Step 1: Pick a provider +Browse [Connector providers](/essentials/v2/connector-providers) to see what each connector indexes and any provider-specific setup steps before creating a connection. + [`GET /connectors/providers`](/api-reference/v2/endpoint/list-connector-providers) lists the providers you can connect. Add `?id={provider}` to see the credentials that provider needs (`credential_schema`). @@ -299,7 +301,7 @@ curl -X POST 'https://api.hydradb.com/connectors/{id}/configure' \ | Property | Set in | Meaning | | --- | --- | --- | | `provider` | create | Which app, such as `slack`. | -| `provider_account_scope` | create | Which account this is, such as a Slack workspace id. It keeps sources from two accounts from overwriting each other. [Set it per provider](#6-connecting-several-accountsworkspaces-with-each-connector). | +| `provider_account_scope` | create | Which account this is, such as a Slack workspace id. It keeps sources from two accounts from overwriting each other. [Set it per provider](#6-connect-several-accounts-from-one-provider). | | `credentials` | create | The app's credentials, in the shape of its `credential_schema`. | | `custom_instructions` | create, configure | How to interpret synced documents. See [section 4](#4-custom-ingestion-instructions). | | `sync_interval_seconds` | create | How often it syncs. The default is 1 hour for most providers. | @@ -453,7 +455,7 @@ curl -X PATCH 'https://api.hydradb.com/context/confluence-page-9f62/metadata' \ -## 6. Connecting several accounts/workspaces with each connector +## 6. Connect several accounts from one provider Create one or multiple accounts per connector. Filter on `connector_id` to query one account. Read more about this under API references of each of the connectors offered. diff --git a/essentials/v2/connectors/affinity.mdx b/essentials/v2/connectors/affinity.mdx new file mode 100644 index 00000000..32005eab --- /dev/null +++ b/essentials/v2/connectors/affinity.mdx @@ -0,0 +1,28 @@ +--- +title: "Affinity" +description: "What HydraDB syncs from Affinity, and how to connect it." +--- + +Use the Affinity connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `list_entries` +- `notes` + +## Connect + +Use provider `affinity` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/airtable.mdx b/essentials/v2/connectors/airtable.mdx new file mode 100644 index 00000000..3629bbc9 --- /dev/null +++ b/essentials/v2/connectors/airtable.mdx @@ -0,0 +1,31 @@ +--- +title: "Airtable" +description: "What HydraDB syncs from Airtable, and how to connect it." +--- + +Use the Airtable connector to bring the following content into HydraDB. + +## What syncs + +The provider description does not enumerate fixed indexed object types. Use the setup notes below when available; the resource picker shows what your connection can select. + +## Connect + +1. Create an Airtable Personal Access Token with data.records:read and schema.bases:read, then grant that token access to every base you want to select. Correct scopes alone do not grant base access. Legacy API keys are retired. +2. Airtable Personal Access Tokens have no refresh flow. Rotate by creating a replacement with the same scopes and base grants, updating the connector, validating discovery and sync, and then revoking the old token. +3. Pick bases after connecting. Every table record becomes a custom searchable object; record-link fields become graph links, attachment filenames remain in record text, and supported attachment file contents are downloaded through short-lived claim-check pointers and indexed. Oversized or unsupported files remain metadata-only without blocking the record. +4. HydraDB does not currently import Airtable base/workspace collaborators as ACLs. Synced records are tenant-wide unless you configure a HydraDB resource ACL for the selected base. +5. Airtable has no reliable modified timestamp in record payloads, so the connector uses LAST_MODIFIED_TIME() server-side windows. Formula fields that depend on external state can change without a record modification event and may require a full resync. + +Use provider `airtable` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/amplitude.mdx b/essentials/v2/connectors/amplitude.mdx new file mode 100644 index 00000000..ac96b8a3 --- /dev/null +++ b/essentials/v2/connectors/amplitude.mdx @@ -0,0 +1,27 @@ +--- +title: "Amplitude" +description: "What HydraDB syncs from Amplitude, and how to connect it." +--- + +Use the Amplitude connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `events` + +## Connect + +Use provider `amplitude` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/asana.mdx b/essentials/v2/connectors/asana.mdx new file mode 100644 index 00000000..d3992955 --- /dev/null +++ b/essentials/v2/connectors/asana.mdx @@ -0,0 +1,36 @@ +--- +title: "Asana" +description: "What HydraDB syncs from Asana, and how to connect it." +--- + +Use the Asana connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `tasks` +- `subtasks` +- `stories` +- `projects` + +## Connect + +1. Create a personal access token in Asana's Developer Console under My apps → Personal access tokens. PATs inherit the creating user's visibility and have no scope picker, so use a dedicated integration user with access to every project you intend to select. +2. Asana PATs do not refresh automatically. Rotate by creating a replacement token, updating the connector, verifying a sync, and only then revoking the old token; removing the integration user immediately invalidates its token. +3. Pick the projects to sync after connecting. Tasks, subtasks, projects and comment stories become searchable; system-generated activity stories are skipped. The connector only reads Asana. +4. HydraDB uses Asana's privacy_setting to capture each selected project's read audience: public_to_workspace includes active, non-guest workspace members plus explicit project memberships; private includes explicit project memberships; deprecated private_to_team includes the project team's users plus explicit project memberships. Memberships can grant admins, editors, commenters, viewers or teams. If project attribution is missing, Asana omits or returns an unknown privacy setting, hides a member email, or a permission read is incomplete, HydraDB refuses a partial ACL and shows a resource-level warning under the current fail-open policy; the content remains workspace-readable unless a customer resource rule governs it. Use a dedicated integration user's personal access token that can read the selected project, its memberships, and member email addresses. +5. Asana quotas are per token (150 requests/minute on free domains and 1,500 on paid domains). Large comment/subtask histories fan out per task, so a dedicated token also keeps this connector from sharing quota with unrelated automations. + +Use provider `asana` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/attio.mdx b/essentials/v2/connectors/attio.mdx new file mode 100644 index 00000000..12b25389 --- /dev/null +++ b/essentials/v2/connectors/attio.mdx @@ -0,0 +1,39 @@ +--- +title: "attio" +description: "What HydraDB syncs from attio, and how to connect it." +--- + +Use the attio connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `records` +- `list_entries` +- `notes` +- `tasks` +- `comments` +- `list_entry_comments` +- `meetings` +- `call_transcripts` + +## Connect + +1. Connect with a workspace API key: Attio workspace settings → Developers → API keys. The key is static and does not expire, so this connection never needs reconnecting. +2. Grant the key the read scopes for records, objects, lists, list entries, notes, tasks, comments and users. A key missing a scope fails with a 403 that names it; granting them all up front is faster than finding out one at a time. +3. Pass the key as access_token. Objects (people, companies, deals, custom ones) and lists are picked in the resource-selection step after connecting; leaving the objects/lists credential fields empty is the normal path. +4. With permission-aware search on, a private list's entries are restricted to the workspace's admins and the members the list is shared with; a list shared with the whole workspace, and every record, note, task, comment and meeting, is readable by everyone in your workspace. Attio's API does not expose team grants, so a member who reaches a list only through a team does not see it here. The key needs the List Configuration: Read and User Management: Read scopes; without them the list is readable by everyone, with a warning, until you reconnect. + +Use provider `attio` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/avoma.mdx b/essentials/v2/connectors/avoma.mdx new file mode 100644 index 00000000..5c46245e --- /dev/null +++ b/essentials/v2/connectors/avoma.mdx @@ -0,0 +1,28 @@ +--- +title: "Avoma" +description: "What HydraDB syncs from Avoma, and how to connect it." +--- + +Use the Avoma connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `meetings` +- `scorecard_evaluations` + +## Connect + +Use provider `avoma` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/bamboohr.mdx b/essentials/v2/connectors/bamboohr.mdx new file mode 100644 index 00000000..7f5c955d --- /dev/null +++ b/essentials/v2/connectors/bamboohr.mdx @@ -0,0 +1,29 @@ +--- +title: "BambooHR" +description: "What HydraDB syncs from BambooHR, and how to connect it." +--- + +Use the BambooHR connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `employees` +- `time_off_requests` +- `whos_out` + +## Connect + +Use provider `bamboohr` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/bigquery.mdx b/essentials/v2/connectors/bigquery.mdx new file mode 100644 index 00000000..ff8120b0 --- /dev/null +++ b/essentials/v2/connectors/bigquery.mdx @@ -0,0 +1,35 @@ +--- +title: "BigQuery" +description: "What HydraDB syncs from BigQuery, and how to connect it." +--- + +Use the BigQuery connector to bring the following content into HydraDB. + +## What syncs + +The provider description does not enumerate fixed indexed object types. Use the setup notes below when available; the resource picker shows what your connection can select. + +## Connect + +1. Connect with a service-account key: paste the downloaded key file as credentials_json (grant the account the BigQuery Data Viewer and BigQuery Job User roles). client_email + private_key, or client_id + client_secret + refresh_token, also work. +2. Pick which tables to sync in the resource-selection step; each table's rows become searchable documents. +3. Replication is configured PER TABLE, alongside the selection: pass table_configs on POST /connectors/{id}/configure; the same request that selects the tables; with exactly one mode per table. The dashboard collects this on the table-selection screen. +4. Tables with a timestamp column that changes on every insert/update (updated_at, modified_ts, …): make it the sync cursor; table_configs: [{"table": "dataset.table", "replication_key": "updated_at"}]; and each sync reads only new and changed rows. +5. Append-only tables with no such column: use {"table": "dataset.table", "change_history": "appends"}. New rows stream from BigQuery's own change log; no schema change, no setup. +6. Tables that also receive UPDATEs but have no cursor column: use {"table": "dataset.table", "change_history": "changes"} instead, and run this once in BigQuery (no schema change, does not touch your data): ALTER TABLE dataset.table SET OPTIONS(enable_change_history=true). +7. Change-history backfill never blocks live syncing: changes are captured from the moment you connect, while existing rows backfill in the background in bounded slices per sync cycle. On a very large table the full backfill can take many cycles; expect it to be slow. To skip it, add "snapshot": "none" to that table's table_configs entry (only rows that change after connecting are indexed), or "snapshot": 10000 to cap the backfill at that many rows. +8. Fleet-wide fallbacks (optional, credential fields): a top-level "replication_key" applies that cursor to every synced table that has the column; "change_history" ("appends" | "changes") covers tables that still have no cursor. Per-table table_configs override both. +9. A table with no cursor and no change_history re-reads in full every sync cycle; fine for small reference tables, expensive for large ones. The dashboard requires a mode per table; API/SDK consumers should always send table_configs (or the fleet-wide fields). + +Use provider `bigquery` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/bookstack.mdx b/essentials/v2/connectors/bookstack.mdx new file mode 100644 index 00000000..e7752ef6 --- /dev/null +++ b/essentials/v2/connectors/bookstack.mdx @@ -0,0 +1,29 @@ +--- +title: "BookStack" +description: "What HydraDB syncs from BookStack, and how to connect it." +--- + +Use the BookStack connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `books` +- `pages` +- `chapters` + +## Connect + +Use provider `bookstack` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/box.mdx b/essentials/v2/connectors/box.mdx new file mode 100644 index 00000000..aba47a82 --- /dev/null +++ b/essentials/v2/connectors/box.mdx @@ -0,0 +1,27 @@ +--- +title: "Box" +description: "What HydraDB syncs from Box, and how to connect it." +--- + +Use the Box connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `folder_items` + +## Connect + +Use provider `box` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/calendly.mdx b/essentials/v2/connectors/calendly.mdx new file mode 100644 index 00000000..e7615bb1 --- /dev/null +++ b/essentials/v2/connectors/calendly.mdx @@ -0,0 +1,27 @@ +--- +title: "Calendly" +description: "What HydraDB syncs from Calendly, and how to connect it." +--- + +Use the Calendly connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `scheduled_events` + +## Connect + +Use provider `calendly` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/chargebee.mdx b/essentials/v2/connectors/chargebee.mdx new file mode 100644 index 00000000..979a3d8c --- /dev/null +++ b/essentials/v2/connectors/chargebee.mdx @@ -0,0 +1,30 @@ +--- +title: "Chargebee" +description: "What HydraDB syncs from Chargebee, and how to connect it." +--- + +Use the Chargebee connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `invoices` +- `customers` +- `subscriptions` +- `transactions` + +## Connect + +Use provider `chargebee` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/clickup.mdx b/essentials/v2/connectors/clickup.mdx new file mode 100644 index 00000000..8021c64a --- /dev/null +++ b/essentials/v2/connectors/clickup.mdx @@ -0,0 +1,34 @@ +--- +title: "ClickUp" +description: "What HydraDB syncs from ClickUp, and how to connect it." +--- + +Use the ClickUp connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `team` +- `task` +- `task_comment` + +## Connect + +1. Create a personal API token under avatar → Settings → Apps → API Token. ClickUp personal tokens have no scope picker and inherit the user; use a dedicated account that can open every Workspace you intend to select. +2. ClickUp personal tokens have no refresh flow. Rotate by generating a replacement, updating the connector, verifying discovery and sync, and then revoking the old token; an OAuth installation must use ClickUp's refresh-token lifecycle instead. +3. Pick Workspaces after connecting. Tasks and subtasks are indexed with descriptions, status, assignees, priority, tags and list/folder context. Task comments are indexed as first-class comment documents with human author and parent-task context. ClickUp limits personal and OAuth tokens per Workspace plan, starting at 100 requests/minute on Free, Unlimited and Business. +4. HydraDB does not currently reproduce ClickUp guest or private Space/List/Task visibility. Synced tasks and comments are tenant-wide under the current fail-open policy, carry a persistent rbac_warning, and can be restricted with a HydraDB resource ACL for the selected Workspace. + +Use provider `clickup` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/coda.mdx b/essentials/v2/connectors/coda.mdx new file mode 100644 index 00000000..b03b6e50 --- /dev/null +++ b/essentials/v2/connectors/coda.mdx @@ -0,0 +1,30 @@ +--- +title: "Superhuman" +description: "What HydraDB syncs from Superhuman, and how to connect it." +--- + +Use the Superhuman connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `docs` +- `pages` +- `page_contents` +- `rows` + +## Connect + +Use provider `coda` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/codat.mdx b/essentials/v2/connectors/codat.mdx new file mode 100644 index 00000000..126f4272 --- /dev/null +++ b/essentials/v2/connectors/codat.mdx @@ -0,0 +1,30 @@ +--- +title: "Codat" +description: "What HydraDB syncs from Codat, and how to connect it." +--- + +Use the Codat connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `invoices` +- `customers` +- `bills` +- `payments` + +## Connect + +Use provider `codat` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/confluence.mdx b/essentials/v2/connectors/confluence.mdx new file mode 100644 index 00000000..bf2ae591 --- /dev/null +++ b/essentials/v2/connectors/confluence.mdx @@ -0,0 +1,28 @@ +--- +title: "Confluence" +description: "What HydraDB syncs from Confluence, and how to connect it." +--- + +Use the Confluence connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `content` +- `attachments` + +## Connect + +Use provider `confluence` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/contentful.mdx b/essentials/v2/connectors/contentful.mdx new file mode 100644 index 00000000..5f026588 --- /dev/null +++ b/essentials/v2/connectors/contentful.mdx @@ -0,0 +1,28 @@ +--- +title: "Contentful" +description: "What HydraDB syncs from Contentful, and how to connect it." +--- + +Use the Contentful connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `entries` +- `tasks` + +## Connect + +Use provider `contentful` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/copper.mdx b/essentials/v2/connectors/copper.mdx new file mode 100644 index 00000000..1f96878d --- /dev/null +++ b/essentials/v2/connectors/copper.mdx @@ -0,0 +1,33 @@ +--- +title: "Copper" +description: "What HydraDB syncs from Copper, and how to connect it." +--- + +Use the Copper connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `opportunities` +- `leads` +- `tasks` +- `projects` +- `people` +- `companies` +- `activities_search` + +## Connect + +Use provider `copper` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/crossbeam.mdx b/essentials/v2/connectors/crossbeam.mdx new file mode 100644 index 00000000..ad52bf5f --- /dev/null +++ b/essentials/v2/connectors/crossbeam.mdx @@ -0,0 +1,30 @@ +--- +title: "Crossbeam" +description: "What HydraDB syncs from Crossbeam, and how to connect it." +--- + +Use the Crossbeam connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `account` +- `lead` +- `partner_account` +- `partner_lead` + +## Connect + +Use provider `crossbeam` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/datadog.mdx b/essentials/v2/connectors/datadog.mdx new file mode 100644 index 00000000..e723fcaf --- /dev/null +++ b/essentials/v2/connectors/datadog.mdx @@ -0,0 +1,46 @@ +--- +title: "Datadog" +description: "What HydraDB syncs from Datadog, and how to connect it." +--- + +Use the Datadog connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `aggregate_logs` +- `metric_response_time` +- `slo_history_us_prod` +- `slo_history_eu_prod` +- `slo_history_ca_prod` +- `monitors` +- `dashboards` +- `slos` +- `notebooks` +- `incidents` + +## Connect + +1. Datadog needs TWO keys and they do different jobs. Create an API key under Organization Settings → API Keys, and an application key under Organization Settings → Application Keys. The API key identifies the org; the application key carries the scopes, so it is the one that decides what syncs. +2. An application key is created UNSCOPED and the create dialog has no scope picker; the key list will show it as "Not Scoped", meaning it inherits everything its owner can do. You have to open the key afterwards and Edit it to apply scopes, so a key made the obvious way is a full-permission key. +3. Grant exactly these and nothing more: timeseries_query, slos_read, logs_read_data, monitors_read, dashboards_read, notebooks_read and incident_read. Datadog's own description of logs_read_data claims reading logs also needs "Logs Read Index Data"; tested against a live org it does not, so do not grant the extra one. +4. A missing scope does not fail loudly. Datadog answers an unauthorized request with a bare 403 that names no permission, an unknown metric with a 200 and an empty series, and a log query against an org with no indexes with "No valid indexes specified"; so an under-scoped key looks exactly like an empty account. +5. Both keys are site-specific. If your org is not on US1, set the site field (for example us5.datadoghq.com or datadoghq.eu) or every call fails against the wrong region. +6. Datadog has nothing to browse, so the resource step offers a single "All data" row; select it to continue. It syncs the whole org: monitors are indexed with their message text, which is where runbooks live, along with dashboards, SLO definitions, notebooks and declared incidents. +7. Incidents Datadog marks PRIVATE are indexed too, and their restriction is carried over: Datadog scopes a private incident to its participants, and we record it as visible to nobody, so an access-scoped search never returns it. Each indexed incident also records its own visibility in its text, so you can tell which is which. +8. That mirroring only takes effect once access-scoped search is enabled for this connector on our side, which is a per-provider setting rather than something the scopes control. Until it is on, a private incident behaves the way it did before and is searchable by everyone in your HydraDB tenant. Ask us to turn it on, or skip just the incident_read scope if that trade is not acceptable: every other stream syncs without it. +9. The metric query, log query and SLO id fields are optional additions, each selecting one extra time series to index. Leaving them blank costs you those series and nothing else; everything above syncs without them. + +Use provider `datadog` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/discord.mdx b/essentials/v2/connectors/discord.mdx new file mode 100644 index 00000000..66302637 --- /dev/null +++ b/essentials/v2/connectors/discord.mdx @@ -0,0 +1,34 @@ +--- +title: "Discord" +description: "What HydraDB syncs from Discord, and how to connect it." +--- + +Use the Discord connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `messages` + +## Connect + +1. Create a Discord application and bot in the Developer Portal, reset/copy the bot token, and invite it to each server with OAuth2 scope bot. Grant View Channels and Read Message History on every selected channel; the connector is read-only and never sends messages. +2. Enable Message Content Intent under Developer Portal → Bot → Privileged Gateway Intents. The connector verifies the application flag and refuses to sync when it is absent instead of silently indexing empty content fields. +3. Pick the Discord servers to sync. Every readable message in their text and announcement channels, active threads, public archived threads, and joined private archived threads becomes a message source. User, role and channel mentions are rewritten to human display names; attachments contribute filenames but their bytes are not downloaded. +4. Discord bot tokens have no granular API scope picker and do not expire automatically. Rotate a leaked token in the Developer Portal. Discord enforces rate-limit buckets and the connector honors Retry-After before retrying. +5. Discord exposes no guild-member email addresses, so provider roles and channel overwrites cannot be mapped safely to HydraDB login emails. Under the current fail-open RBAC policy Discord sources are tenant-public with a persistent warning unless a customer HydraDB resource ACL is configured. +6. The REST history API exposes existing messages and edits but not deletion events. A deleted Discord message can remain indexed until the connector is rebuilt from a fresh snapshot; real-time deletion capture requires the Discord Gateway and is intentionally not claimed by this pull connector. + +Use provider `discord` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/dropbox.mdx b/essentials/v2/connectors/dropbox.mdx new file mode 100644 index 00000000..eac1e6c8 --- /dev/null +++ b/essentials/v2/connectors/dropbox.mdx @@ -0,0 +1,27 @@ +--- +title: "Dropbox" +description: "What HydraDB syncs from Dropbox, and how to connect it." +--- + +Use the Dropbox connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `files` + +## Connect + +Use provider `dropbox` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/dynamics.mdx b/essentials/v2/connectors/dynamics.mdx new file mode 100644 index 00000000..f5221b19 --- /dev/null +++ b/essentials/v2/connectors/dynamics.mdx @@ -0,0 +1,30 @@ +--- +title: "Microsoft Dynamics 365" +description: "What HydraDB syncs from Microsoft Dynamics 365, and how to connect it." +--- + +Use the Microsoft Dynamics 365 connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `accounts` +- `contacts` +- `leads` +- `opportunities` + +## Connect + +Use provider `dynamics` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/eloqua.mdx b/essentials/v2/connectors/eloqua.mdx new file mode 100644 index 00000000..81164835 --- /dev/null +++ b/essentials/v2/connectors/eloqua.mdx @@ -0,0 +1,29 @@ +--- +title: "eloqua" +description: "What HydraDB syncs from eloqua, and how to connect it." +--- + +Use the eloqua connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `campaigns` +- `emails` +- `forms` + +## Connect + +Use provider `eloqua` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/figma.mdx b/essentials/v2/connectors/figma.mdx new file mode 100644 index 00000000..c73f7ea6 --- /dev/null +++ b/essentials/v2/connectors/figma.mdx @@ -0,0 +1,27 @@ +--- +title: "Figma" +description: "What HydraDB syncs from Figma, and how to connect it." +--- + +Use the Figma connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `files` + +## Connect + +Use provider `figma` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/fireflies.mdx b/essentials/v2/connectors/fireflies.mdx new file mode 100644 index 00000000..fc9d6e17 --- /dev/null +++ b/essentials/v2/connectors/fireflies.mdx @@ -0,0 +1,27 @@ +--- +title: "Fireflies" +description: "What HydraDB syncs from Fireflies, and how to connect it." +--- + +Use the Fireflies connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `transcripts` + +## Connect + +Use provider `fireflies` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/freshdesk.mdx b/essentials/v2/connectors/freshdesk.mdx new file mode 100644 index 00000000..7fb8256f --- /dev/null +++ b/essentials/v2/connectors/freshdesk.mdx @@ -0,0 +1,33 @@ +--- +title: "Freshdesk" +description: "What HydraDB syncs from Freshdesk, and how to connect it." +--- + +Use the Freshdesk connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `tickets` +- `conversations` + +## Connect + +1. Copy an agent API key from Freshdesk Profile settings and enter only the helpdesk subdomain: for acme.freshdesk.com, enter acme. The key has no scope picker and reads according to that agent's Global, Group or Restricted ticket scope. +2. Freshdesk API keys do not refresh automatically and are tied to the agent. Rotate by resetting or replacing the key, updating the connector, and validating a sync before disabling the prior agent credential. +3. Tickets and public replies become searchable and link back to the agent portal. Private agent notes are off by default because Freshdesk's per-agent visibility is not yet reproduced in HydraDB; when explicitly enabled they are indexed tenant-wide with an RBAC warning, so enable include_private_notes only when every tenant member may read them. +4. Freshdesk rate limits are account-wide and plan-dependent. The connector honors Retry-After on 429 responses; other apps in the same helpdesk consume the same quota. + +Use provider `freshdesk` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/ga4.mdx b/essentials/v2/connectors/ga4.mdx new file mode 100644 index 00000000..ae563a9e --- /dev/null +++ b/essentials/v2/connectors/ga4.mdx @@ -0,0 +1,35 @@ +--- +title: "Google Analytics" +description: "What HydraDB syncs from Google Analytics, and how to connect it." +--- + +Use the Google Analytics connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `website_overview` +- `traffic_sources` +- `locations` +- `four_weekly_active_users` +- `weekly_active_users` +- `daily_active_users` +- `devices` +- `transactions` +- `pages` + +## Connect + +Use provider `ga4` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/github.mdx b/essentials/v2/connectors/github.mdx new file mode 100644 index 00000000..f1d04709 --- /dev/null +++ b/essentials/v2/connectors/github.mdx @@ -0,0 +1,28 @@ +--- +title: "GitHub" +description: "What HydraDB syncs from GitHub, and how to connect it." +--- + +Use the GitHub connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `issues` +- `issue_comments` + +## Connect + +Use provider `github` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/gitlab.mdx b/essentials/v2/connectors/gitlab.mdx new file mode 100644 index 00000000..6c9d71e2 --- /dev/null +++ b/essentials/v2/connectors/gitlab.mdx @@ -0,0 +1,34 @@ +--- +title: "GitLab" +description: "What HydraDB syncs from GitLab, and how to connect it." +--- + +Use the GitLab connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `issues` +- `merge_requests` +- `issue_notes` +- `mr_notes` +- `repository_files` +- `commits` +- `releases` +- `projects` + +## Connect + +Use provider `gitlab` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/gmail.mdx b/essentials/v2/connectors/gmail.mdx new file mode 100644 index 00000000..7e28766f --- /dev/null +++ b/essentials/v2/connectors/gmail.mdx @@ -0,0 +1,27 @@ +--- +title: "Gmail" +description: "What HydraDB syncs from Gmail, and how to connect it." +--- + +Use the Gmail connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `messages` + +## Connect + +Use provider `gmail` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/gong.mdx b/essentials/v2/connectors/gong.mdx new file mode 100644 index 00000000..0207d8ff --- /dev/null +++ b/essentials/v2/connectors/gong.mdx @@ -0,0 +1,38 @@ +--- +title: "Gong" +description: "What HydraDB syncs from Gong, and how to connect it." +--- + +Use the Gong connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `calls` +- `answered_scorecards` +- `library_calls` + +## Connect + +1. Connect with a Gong API key pair: in Gong's Admin center open Settings → Ecosystem → API → API keys → Get API key. Only a Gong technical administrator can create one. Copy the Access Key and the Access Key Secret (the secret is shown once) and pass them as access_key and access_key_secret. +2. When creating the key, leave the TTL empty: a key minted with an expiry stops the connector on that date and every sync after it fails with 401 until a new key is pasted. Leave Trusted IPs empty too, unless you add HydraDB's egress addresses; a list that excludes them fails every request with 403. +3. The same page shows your company's API base URL. If it is not https://api.gong.io (Gong assigns some companies their own host, e.g. https://us-12345.api.gong.io), pass it as api_base_url; only *.api.gong.io hosts are accepted. +4. Gong API keys are company-wide and have no scope picker, so there is nothing to under- or over-grant. The connector reads calls (metadata, CRM context, AI brief, outline, highlights, key points, outcome, public comments, transcript), users, workspaces, the call library and coaching scorecards; it never writes to Gong and never downloads media. +5. Pick the Gong workspaces to sync in the resource-selection step; most companies have one. Each recorded call becomes one document whose body is the transcript plus Gong's summary content; each completed coaching scorecard review becomes a document linked to its call; each call filed in a public library folder becomes a document carrying the curator's note. +6. Calls Gong marks private, and coaching reviews whose visibility is not PUBLIC, are skipped by default (Gong shows them only to their owner, participants or managers). Set include_private_calls to true to index them as well. +7. Gong publishes no modified-since filter and finishes transcripts, briefs and comments after the call itself appears, so every sync re-reads the last transcript_settle_hours (default 24) of calls and re-indexes the ones whose content changed. Raise it to catch later comments, lower it (or 0) to save requests on a very high-volume account: Gong allows 10,000 API calls per company per day, shared with every other integration you run. Because of that cap, a Gong connector syncs at most every 30 minutes (the default is hourly). +8. Not synced, because Gong's API does not expose them: emails and digital interactions, Gong Engage flows and tasks, forecasts, and deleted calls (a call removed in Gong stays indexed until the connector is re-synced from scratch). + +Use provider `gong` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/google-calendar.mdx b/essentials/v2/connectors/google-calendar.mdx new file mode 100644 index 00000000..5ee7de2b --- /dev/null +++ b/essentials/v2/connectors/google-calendar.mdx @@ -0,0 +1,27 @@ +--- +title: "Google Calendar" +description: "What HydraDB syncs from Google Calendar, and how to connect it." +--- + +Use the Google Calendar connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `events` + +## Connect + +Use provider `google_calendar` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/google-drive.mdx b/essentials/v2/connectors/google-drive.mdx new file mode 100644 index 00000000..d80996df --- /dev/null +++ b/essentials/v2/connectors/google-drive.mdx @@ -0,0 +1,27 @@ +--- +title: "Google Drive" +description: "What HydraDB syncs from Google Drive, and how to connect it." +--- + +Use the Google Drive connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `files` + +## Connect + +Use provider `google_drive` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/google-search-console.mdx b/essentials/v2/connectors/google-search-console.mdx new file mode 100644 index 00000000..699daab0 --- /dev/null +++ b/essentials/v2/connectors/google-search-console.mdx @@ -0,0 +1,32 @@ +--- +title: "Google Search Console" +description: "What HydraDB syncs from Google Search Console, and how to connect it." +--- + +Use the Google Search Console connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `performance_report_query` +- `performance_report_page` +- `performance_report_date` +- `performance_report_country` +- `performance_report_device` +- `performance_report_keys` + +## Connect + +Use provider `google_search_console` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/google-sheets.mdx b/essentials/v2/connectors/google-sheets.mdx new file mode 100644 index 00000000..f2adc1e4 --- /dev/null +++ b/essentials/v2/connectors/google-sheets.mdx @@ -0,0 +1,28 @@ +--- +title: "Google Sheets" +description: "What HydraDB syncs from Google Sheets, and how to connect it." +--- + +Use the Google Sheets connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `spreadsheet_metadata` +- `sheet_data` + +## Connect + +Use provider `google_sheets` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/googleads.mdx b/essentials/v2/connectors/googleads.mdx new file mode 100644 index 00000000..da5b0894 --- /dev/null +++ b/essentials/v2/connectors/googleads.mdx @@ -0,0 +1,55 @@ +--- +title: "Google Ads" +description: "What HydraDB syncs from Google Ads, and how to connect it." +--- + +Use the Google Ads connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `accessible_customers` +- `customer_hierarchy` +- `customer` +- `customer_label` +- `label` +- `campaign_history` +- `campaign_budget` +- `campaign_criterion` +- `campaign_label` +- `campaign_performance` +- `campaign_performance_by_age_range_and_device` +- `campaign_performance_by_gender_and_device` +- `campaign_performance_by_location` +- `adgroups` +- `ad_groups_performance` +- `ad_group_ad` +- `ad_group_ad_label` +- `ad_group_criterion` +- `ad_group_label` +- `ad_listing_group_criterion` +- `audience` +- `user_interest` +- `geo_performance` +- `geo_target_constant` +- `keyword_view` +- `managed_placement_view` +- `search_term_view` +- `video` +- `click_view_report` + +## Connect + +Use provider `googleads` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/gorgias.mdx b/essentials/v2/connectors/gorgias.mdx new file mode 100644 index 00000000..952516be --- /dev/null +++ b/essentials/v2/connectors/gorgias.mdx @@ -0,0 +1,28 @@ +--- +title: "Gorgias" +description: "What HydraDB syncs from Gorgias, and how to connect it." +--- + +Use the Gorgias connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `tickets` +- `messages` + +## Connect + +Use provider `gorgias` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/granola.mdx b/essentials/v2/connectors/granola.mdx new file mode 100644 index 00000000..65c4ad03 --- /dev/null +++ b/essentials/v2/connectors/granola.mdx @@ -0,0 +1,27 @@ +--- +title: "Granola" +description: "What HydraDB syncs from Granola, and how to connect it." +--- + +Use the Granola connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `notes` + +## Connect + +Use provider `granola` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/greenhouse.mdx b/essentials/v2/connectors/greenhouse.mdx new file mode 100644 index 00000000..c1aa0d1e --- /dev/null +++ b/essentials/v2/connectors/greenhouse.mdx @@ -0,0 +1,31 @@ +--- +title: "Greenhouse" +description: "What HydraDB syncs from Greenhouse, and how to connect it." +--- + +Use the Greenhouse connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `candidates` +- `applications` +- `jobs` +- `interviews` +- `offers` + +## Connect + +Use provider `greenhouse` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/guru.mdx b/essentials/v2/connectors/guru.mdx new file mode 100644 index 00000000..9d907dd8 --- /dev/null +++ b/essentials/v2/connectors/guru.mdx @@ -0,0 +1,32 @@ +--- +title: "Guru" +description: "What HydraDB syncs from Guru, and how to connect it." +--- + +Use the Guru connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `cards` + +## Connect + +1. Connect with a Guru API token: in Guru open Manage → Apps & Integrations → API Access and click Generate User Token (Admins, and roles with the Manage Apps & Integrations permission, can generate one, including on behalf of another user). A user token pairs the Guru username, usually the email, with the token (pass them as email and api_token) and reads exactly what that user can read; there is no scope picker. A collection token pairs the collection ID with the token (pass them as collection_id and api_token) and is read-only, scoped to that one collection; the connector then offers only that collection. Set exactly one of email or collection_id. +2. Pick the collections to sync in the resource-selection step; each card becomes one searchable document carrying its collection, folders, tags, verification state, verifiers, owner and comment count. Comment threads and replies are separate searchable comment documents linked to their card with comment_on and to their parent thread with reply_to, not embedded into the card. Each sync picks up cards edited, re-verified or commented on since the last one. +3. With permission-aware search on, each collection is restricted to the members of the Guru groups that can open it. Reading that needs the user token of a Guru Admin or of the collection's owner. With a collection token, or a member's token Guru refuses, the collection stays readable by everyone in this workspace and the connector shows a warning naming the token to use, until you reconnect with one or set an access rule on the resource. +4. Restricted (PRIVATE) cards are skipped by default: Guru shows them only to their author and the people they are shared with. Set include_private_cards to index them too; each is then indexed with exactly that audience (author and live collaborators, groups expanded to their members), enforced while permission-aware search is on. A card whose audience cannot be read completely is still indexed, with its collection's access. + +Use provider `guru` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/helpscout.mdx b/essentials/v2/connectors/helpscout.mdx new file mode 100644 index 00000000..b9bb6dcf --- /dev/null +++ b/essentials/v2/connectors/helpscout.mdx @@ -0,0 +1,28 @@ +--- +title: "Help Scout" +description: "What HydraDB syncs from Help Scout, and how to connect it." +--- + +Use the Help Scout connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `conversations` +- `conversation_threads` + +## Connect + +Use provider `helpscout` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/hubspot.mdx b/essentials/v2/connectors/hubspot.mdx new file mode 100644 index 00000000..3827f94b --- /dev/null +++ b/essentials/v2/connectors/hubspot.mdx @@ -0,0 +1,35 @@ +--- +title: "HubSpot" +description: "What HydraDB syncs from HubSpot, and how to connect it." +--- + +Use the HubSpot connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `deals` +- `tickets` +- `contacts` +- `companies` +- `notes` +- `emails` +- `calls` +- `meetings` +- `tasks` + +## Connect + +Use provider `hubspot` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/intercom.mdx b/essentials/v2/connectors/intercom.mdx new file mode 100644 index 00000000..8732cc47 --- /dev/null +++ b/essentials/v2/connectors/intercom.mdx @@ -0,0 +1,37 @@ +--- +title: "Intercom" +description: "What HydraDB syncs from Intercom, and how to connect it." +--- + +Use the Intercom connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `conversations` +- `conversation_parts` +- `articles` +- `tickets` + +## Connect + +1. Use an Intercom private-app access token or OAuth token with Read conversations, Read and list users and companies, Read admins, Read and List articles, and Read tickets. The connector only reads. +2. Rotate a private-app token by replacing the connector secret and validating a sync before revoking the old token. OAuth installations must preserve refresh tokens and reauthorize if requested scopes or teammate visibility change. +3. Use the token of a teammate set to All conversations. Since July 2026, an OAuth token can read only conversations visible to the teammate who authorized it. Regenerate the token after changing that setting, or the index silently narrows. +4. Private teammate notes are excluded by default. When acl_supported is enabled for Intercom, each assigned conversation, conversation part and ticket is readable by its assignee and the members of its assigned team. Intercom's API does not expose which teammates can see all conversations, so this is a lower bound: such a teammate who is not the assignee or on the team is denied, never over-granted. +5. Unassigned conversations and tickets carry no ACL of their own and follow their resource. The workspace resource is public unless you set a HydraDB resource ACL on it. Help Center articles are unrestricted. An assignee or team that cannot be resolved makes no claim and carries an rbac_warning: the object then follows its resource, which is public for the workspace resource. +6. Intercom applies app/workspace rate limits and paginated-search limits that can vary by endpoint and plan. The connector honors 429 backoff; high-volume workspaces should avoid overlapping full syncs with other bulk exports. + +Use provider `intercom` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/iterable.mdx b/essentials/v2/connectors/iterable.mdx new file mode 100644 index 00000000..105ab99a --- /dev/null +++ b/essentials/v2/connectors/iterable.mdx @@ -0,0 +1,29 @@ +--- +title: "Iterable" +description: "What HydraDB syncs from Iterable, and how to connect it." +--- + +Use the Iterable connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `campaigns` +- `lists` +- `templates` + +## Connect + +Use provider `iterable` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/jira.mdx b/essentials/v2/connectors/jira.mdx new file mode 100644 index 00000000..04770949 --- /dev/null +++ b/essentials/v2/connectors/jira.mdx @@ -0,0 +1,29 @@ +--- +title: "Jira" +description: "What HydraDB syncs from Jira, and how to connect it." +--- + +Use the Jira connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `issues` +- `issue_comments` +- `issue_worklogs` + +## Connect + +Use provider `jira` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/klaviyo.mdx b/essentials/v2/connectors/klaviyo.mdx new file mode 100644 index 00000000..26578ce8 --- /dev/null +++ b/essentials/v2/connectors/klaviyo.mdx @@ -0,0 +1,32 @@ +--- +title: "Klaviyo" +description: "What HydraDB syncs from Klaviyo, and how to connect it." +--- + +Use the Klaviyo connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `campaigns` +- `flows` +- `lists` +- `segments` +- `templates` +- `profiles` + +## Connect + +Use provider `klaviyo` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/kustomer.mdx b/essentials/v2/connectors/kustomer.mdx new file mode 100644 index 00000000..5bb9738a --- /dev/null +++ b/essentials/v2/connectors/kustomer.mdx @@ -0,0 +1,28 @@ +--- +title: "Kustomer" +description: "What HydraDB syncs from Kustomer, and how to connect it." +--- + +Use the Kustomer connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `conversations` +- `messages` + +## Connect + +Use provider `kustomer` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/launchdarkly.mdx b/essentials/v2/connectors/launchdarkly.mdx new file mode 100644 index 00000000..66b24aac --- /dev/null +++ b/essentials/v2/connectors/launchdarkly.mdx @@ -0,0 +1,42 @@ +--- +title: "LaunchDarkly" +description: "What HydraDB syncs from LaunchDarkly, and how to connect it." +--- + +Use the LaunchDarkly connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `feature_flags` +- `audit_log` +- `segments` +- `environments` +- `members` +- `teams` + +## Connect + +1. Create the token in LaunchDarkly under Account settings → Authorization → Access tokens → Create token. LaunchDarkly has no scope checkboxes: a token carries a ROLE, and the role is the whole decision. +2. Set Role to Reader, which is the default. Reader is all this connector needs; verified against the API, every endpoint it calls answers 200 with a read-only token. Writer or Admin add only write access, so they buy you nothing and let a leaked token turn your flags on and off. +3. Tick "This is a service token". A personal token inherits the role of whoever minted it and stops working the moment that person is deactivated, which is the most common way this connection breaks. The token is shown once; copy it before closing the dialog. +4. After connecting, pick the projects to sync. Everything project-scoped follows that choice: the project's flags, its environments, and its segments. +5. Some data is account-wide and is always synced, whatever you pick: the audit log, account members and teams. Members and teams are what let a flag's maintainer resolve to a person or a group rather than a raw id. +6. Flags are indexed with their real targeting, per environment; on/off state, the default variation or percentage rollout, individual targets, prerequisite flags and each rule, including which segment a rule matches. Segments are indexed alongside, so "who is this flag on for" is answerable end to end. +7. Two things are deliberately never indexed. An environment's SDK key and mobile key are dropped before they leave the tap, because they are live credentials for your own environment. So are a member's MFA state and whether they have a password. +8. A brand-new LaunchDarkly organization has one empty default project and no flags, so a correctly configured connector on a new org indexes almost nothing. That is the org being empty, not the token being wrong. +9. With permission-aware search on, each project is restricted to the members who can view it in LaunchDarkly: their base role, custom roles (preset roles included), team roles and permission grants are evaluated the way LaunchDarkly does. Flags, segments and environments follow their project, and so does each audit log entry about one project; members, teams and account-level audit entries are not restricted. Invited members who have not joined yet are not included. The token's role must read projects, members, teams and custom roles (the built-in Reader can). A role this evaluation cannot read exactly makes every project readable by everyone in your workspace, with a warning on the connector naming it. + +Use provider `launchdarkly` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/lever.mdx b/essentials/v2/connectors/lever.mdx new file mode 100644 index 00000000..a7487961 --- /dev/null +++ b/essentials/v2/connectors/lever.mdx @@ -0,0 +1,32 @@ +--- +title: "Lever" +description: "What HydraDB syncs from Lever, and how to connect it." +--- + +Use the Lever connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `opportunities` +- `candidates` +- `postings` +- `contacts` +- `candidate_applications` +- `candidate_referrals` + +## Connect + +Use provider `lever` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/linear.mdx b/essentials/v2/connectors/linear.mdx new file mode 100644 index 00000000..e66c0470 --- /dev/null +++ b/essentials/v2/connectors/linear.mdx @@ -0,0 +1,27 @@ +--- +title: "Linear" +description: "What HydraDB syncs from Linear, and how to connect it." +--- + +Use the Linear connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `Issues` + +## Connect + +Use provider `linear` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/linkedin-ads.mdx b/essentials/v2/connectors/linkedin-ads.mdx new file mode 100644 index 00000000..83a955cd --- /dev/null +++ b/essentials/v2/connectors/linkedin-ads.mdx @@ -0,0 +1,34 @@ +--- +title: "LinkedIn Ads" +description: "What HydraDB syncs from LinkedIn Ads, and how to connect it." +--- + +Use the LinkedIn Ads connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `accounts` +- `account_users` +- `ad_analytics_by_campaign` +- `ad_analytics_by_creative` +- `campaigns` +- `campaign_groups` +- `creatives` +- `video_ads` + +## Connect + +Use provider `linkedin_ads` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/loom.mdx b/essentials/v2/connectors/loom.mdx new file mode 100644 index 00000000..8334def9 --- /dev/null +++ b/essentials/v2/connectors/loom.mdx @@ -0,0 +1,27 @@ +--- +title: "Loom" +description: "What HydraDB syncs from Loom, and how to connect it." +--- + +Use the Loom connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `videos` + +## Connect + +Use provider `loom` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/mailchimp.mdx b/essentials/v2/connectors/mailchimp.mdx new file mode 100644 index 00000000..cf595552 --- /dev/null +++ b/essentials/v2/connectors/mailchimp.mdx @@ -0,0 +1,29 @@ +--- +title: "Mailchimp" +description: "What HydraDB syncs from Mailchimp, and how to connect it." +--- + +Use the Mailchimp connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `campaigns` +- `lists` +- `automations` + +## Connect + +Use provider `mailchimp` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/marketo.mdx b/essentials/v2/connectors/marketo.mdx new file mode 100644 index 00000000..aafe898e --- /dev/null +++ b/essentials/v2/connectors/marketo.mdx @@ -0,0 +1,29 @@ +--- +title: "Marketo" +description: "What HydraDB syncs from Marketo, and how to connect it." +--- + +Use the Marketo connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `campaigns` +- `programs` +- `lists` + +## Connect + +Use provider `marketo` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/microsoft-teams.mdx b/essentials/v2/connectors/microsoft-teams.mdx new file mode 100644 index 00000000..0974936a --- /dev/null +++ b/essentials/v2/connectors/microsoft-teams.mdx @@ -0,0 +1,37 @@ +--- +title: "Microsoft Teams" +description: "What HydraDB syncs from Microsoft Teams, and how to connect it." +--- + +Use the Microsoft Teams connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `channel_messages` +- `chat_messages` + +## Connect + +1. Connect with an Azure AD app registration (app-only, client credentials): in the Azure portal open Microsoft Entra ID → App registrations → New registration (any name, no redirect URI). Copy the Directory (tenant) ID as tenant and the Application (client) ID as client_id, then under Certificates & secrets create a client secret and paste its Value (shown once) as client_secret. +2. Under API permissions → Add a permission → Microsoft Graph → Application permissions (not Delegated) add Team.ReadBasic.All, Channel.ReadBasic.All, ChannelMessage.Read.All, TeamMember.Read.All, ChannelMember.Read.All and User.ReadBasic.All, plus Chat.Read.All to offer people's Teams chats, then click Grant admin consent (a Global or Application Administrator). The connect step reads the token's roles; without Chat.Read.All no chats appear in the picker. +3. Reading channel and chat messages with application permissions is a Microsoft Teams protected API: after consent, submit https://aka.ms/teamsgraph/requestaccess with the Application (client) ID and tenant ID (Microsoft usually answers within a week). Until it is approved every Teams sync fails with 403 even though the permission shows as granted; the picker works regardless. +4. Pick the teams and the people whose Teams chats to sync in the resource-selection step. A team syncs its standard channels (root posts and replies each become a message document, replies linked to their root); a chat user syncs the 1:1, group and meeting chats they take part in. Chats are opted in per person on purpose: they are the most private surface Graph exposes. +5. Every message carries who may see it in Microsoft 365: the team's members for a standard channel, the channel's members (plus the teams it is shared with) for a private or shared channel, and the participants for a chat. With acl_supported on for the provider, permission-aware search shows each message only to those people. A complete roster is authoritative; when Microsoft omits, truncates or refuses a roster, the message remains tenant-public under the current fail-open policy and carries a persistent rbac_warning instead of applying a partial allow-list. +6. Private and shared channels are skipped by default (Teams shows them only to their members); set include_private_channels to true to index them, restricted to their members. +7. Each sync reads only what changed: Graph orders a channel's posts by the last activity of the whole thread, so an old post that gets a new reply is picked up. Edits re-index the message. A message deleted in Teams after it was indexed is replaced by a hidden stub on the next sync. +8. Rotate the client secret before it expires (Azure defaults to 6-24 months): an expired secret stops every sync with a message naming the fix. Pasting a new secret value re-enables the connector. + +Use provider `microsoft_teams` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/mixpanel.mdx b/essentials/v2/connectors/mixpanel.mdx new file mode 100644 index 00000000..f22d8606 --- /dev/null +++ b/essentials/v2/connectors/mixpanel.mdx @@ -0,0 +1,31 @@ +--- +title: "Mixpanel" +description: "What HydraDB syncs from Mixpanel, and how to connect it." +--- + +Use the Mixpanel connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `export` +- `funnels` +- `revenue` +- `cohorts` +- `annotations` + +## Connect + +Use provider `mixpanel` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/monday.mdx b/essentials/v2/connectors/monday.mdx new file mode 100644 index 00000000..e60c7d9f --- /dev/null +++ b/essentials/v2/connectors/monday.mdx @@ -0,0 +1,36 @@ +--- +title: "Monday.com" +description: "What HydraDB syncs from Monday.com, and how to connect it." +--- + +Use the Monday.com connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `items` +- `assets` + +## Connect + +1. Paste a Monday personal API token from Profile → Developers → My Access Tokens, or an OAuth token whose app has boards:read. A personal token inherits the user's board visibility; private boards the user cannot open will not appear in the picker. +2. A Monday personal token does not use an OAuth refresh flow. Rotate it by updating and validating the connector before revoking the prior token; OAuth installations must keep their provider refresh flow active. +3. Pick boards after connecting. Each active item becomes a searchable task containing its name and rendered column values, with board-relation columns represented as graph links. Archived/deleted items are not enumerable through Monday's board items_page API and can remain indexed until a full resync. +4. When Monday permission capture is disabled, selected board content is readable by everyone in the workspace with a persistent warning unless you set a resource access rule. Ask your administrator to enable Monday permission capture before relying on board restrictions. +5. When capture is enabled, board readers are captured from owners, subscribers, and subscribed teams. Main/public boards follow account membership; public boards in closed workspaces follow workspace membership. The token must read boards, users, teams, and workspaces (boards:read, users:read, teams:read, workspaces:read). +6. If a guest, team member, or workspace reader cannot be resolved to a complete user/email roster, resource ACL capture fails open with a persistent warning rather than storing a partial allow-list. Do not interpret board permissions as read access; those values govern editing. +7. Monday enforces GraphQL complexity budgets and daily API call limits that vary by token and account plan. The connector paginates and retries rate limits, but very large boards can require a longer sync interval. + +Use provider `monday` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/ms-graph.mdx b/essentials/v2/connectors/ms-graph.mdx new file mode 100644 index 00000000..0e20b0c8 --- /dev/null +++ b/essentials/v2/connectors/ms-graph.mdx @@ -0,0 +1,39 @@ +--- +title: "Microsoft Teams & Outlook" +description: "What HydraDB syncs from Microsoft Teams & Outlook, and how to connect it." +--- + +Use the Microsoft Teams & Outlook connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `channel_messages` +- `chat_messages` +- `mail_messages` + +## Connect + +1. Connect with an Azure AD app registration (app-only, client credentials): in the Azure portal open Microsoft Entra ID → App registrations → New registration (any name, no redirect URI). Copy the Directory (tenant) ID as tenant and the Application (client) ID as client_id, then under Certificates & secrets create a client secret and paste its Value (shown once) as client_secret. +2. Under API permissions → Add a permission → Microsoft Graph → Application permissions (not Delegated) add Team.ReadBasic.All, Channel.ReadBasic.All, ChannelMessage.Read.All, TeamMember.Read.All and ChannelMember.Read.All for Teams channels, User.ReadBasic.All plus Mail.Read for Outlook, and Chat.Read.All to offer people's Teams chats, then click Grant admin consent (a Global or Application Administrator). The connect step reads the token's roles and names any permission that is missing; a family whose permissions are absent simply does not appear in the picker. +3. Reading channel and chat messages with application permissions is a Microsoft Teams protected API: after consent, submit https://aka.ms/teamsgraph/requestaccess with the Application (client) ID and tenant ID (Microsoft usually answers within a week). Until it is approved every Teams sync fails with 403 even though the permission shows as granted; the picker and Outlook work regardless. +4. Pick the teams, the mailboxes and the people whose Teams chats to sync in the resource-selection step. A team syncs its standard channels (root posts and replies each become a message document, replies linked to their root); a mailbox syncs every message received in the history window outside Drafts, Junk Email, Deleted Items, Outbox and Conversation History, with text bodies and attachment names; a chat user syncs the 1:1, group and meeting chats they take part in. Chats are opted in per person on purpose: they are the most private surface Graph exposes. +5. Every message carries who may see it in Microsoft 365: the team's members for a standard channel, the channel's members (plus the teams it is shared with) for a private or shared channel, the participants for a chat, and the mailbox owner for mail. With acl_supported on for the provider, permission-aware search shows each message only to those people. A complete roster is authoritative; when Microsoft omits, truncates or refuses a roster, the message remains tenant-public under the current fail-open policy and carries a persistent rbac_warning instead of applying a partial allow-list. +6. Mail.Read grants the app every mailbox in the tenant. To limit it to the mailboxes you select, create an Exchange application access policy (New-ApplicationAccessPolicy -AppId `` -PolicyScopeGroupId `` -AccessRight RestrictAccess); a selected mailbox outside the policy fails the sync with a message naming the policy rather than syncing silently empty. Leave Mail.Read out entirely for a Teams-only connector. +7. Private and shared channels are skipped by default (Teams shows them only to their members); set include_private_channels to true to index them, restricted to their members. +8. Each sync reads only what changed: Graph orders a channel's posts by the last activity of the whole thread, so an old post that gets a new reply is picked up, and mail is filtered server-side on lastModifiedDateTime. Edits re-index the message. A message deleted in Teams, and mail moved to Deleted Items or Junk Email after it was indexed, is replaced by a hidden stub on the next sync; mail purged from Deleted Items leaves no trace until a full re-sync. +9. Rotate the client secret before it expires (Azure defaults to 6-24 months): an expired secret stops every sync with a message naming the fix. Pasting a new secret value re-enables the connector. + +Use provider `ms_graph` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/netsuite.mdx b/essentials/v2/connectors/netsuite.mdx new file mode 100644 index 00000000..f1b49c0d --- /dev/null +++ b/essentials/v2/connectors/netsuite.mdx @@ -0,0 +1,30 @@ +--- +title: "NetSuite" +description: "What HydraDB syncs from NetSuite, and how to connect it." +--- + +Use the NetSuite connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `Invoice` +- `Customer` +- `Accounts` +- `VendorBills` + +## Connect + +Use provider `netsuite` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/nextcloud.mdx b/essentials/v2/connectors/nextcloud.mdx new file mode 100644 index 00000000..185840e9 --- /dev/null +++ b/essentials/v2/connectors/nextcloud.mdx @@ -0,0 +1,27 @@ +--- +title: "Nextcloud" +description: "What HydraDB syncs from Nextcloud, and how to connect it." +--- + +Use the Nextcloud connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `files` + +## Connect + +Use provider `nextcloud` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/notion.mdx b/essentials/v2/connectors/notion.mdx new file mode 100644 index 00000000..192c69b6 --- /dev/null +++ b/essentials/v2/connectors/notion.mdx @@ -0,0 +1,27 @@ +--- +title: "Notion" +description: "What HydraDB syncs from Notion, and how to connect it." +--- + +Use the Notion connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `pages` + +## Connect + +Use provider `notion` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/okta.mdx b/essentials/v2/connectors/okta.mdx new file mode 100644 index 00000000..c7213f2f --- /dev/null +++ b/essentials/v2/connectors/okta.mdx @@ -0,0 +1,37 @@ +--- +title: "Okta" +description: "What HydraDB syncs from Okta, and how to connect it." +--- + +Use the Okta connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `users` +- `groups` +- `applications` +- `system_logs` + +## Connect + +1. Create an API token: Okta admin console → Security → API → Tokens → Create Token. There is no scope picker and no role selector on that dialog; the token silently inherits the role of whoever creates it. +2. That inheritance is the thing to get right. To get a least-privilege token you must be signed in AS a Read-only Administrator when you mint it; minting as a Super Admin gives you a Super Admin token with nothing in the UI saying so. Check the Role column in the token list afterwards to confirm what you actually created. +3. The create form has a required dropdown, "API calls made with this token must originate from". Leaving it unset fails with only "We found some errors" and no indication of which field. Choose Any IP unless you have defined an Okta network zone covering HydraDB's egress addresses. +4. Set the org URL to your own org host, keeping the /api/v1/ path and the trailing slash: `https://.okta.com/api/v1/` . The -admin host answers the API too, so either hostname works; the path and trailing slash are the part that matters. +5. Two expiry traps. The token is bound to its creating user, so deactivating that person breaks the sync with 403s. And Okta expires a token after 30 days of no use, while the admin session itself is short-lived; so mint it and paste it in one sitting. +6. Nothing is picked after connecting: Okta syncs the whole org. Users, groups, applications and system log events are indexed, with group membership, app assignments and MFA enrolment folded into the user, group and application records. + +Use provider `okta` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/outlook.mdx b/essentials/v2/connectors/outlook.mdx new file mode 100644 index 00000000..4709b65e --- /dev/null +++ b/essentials/v2/connectors/outlook.mdx @@ -0,0 +1,35 @@ +--- +title: "Outlook" +description: "What HydraDB syncs from Outlook, and how to connect it." +--- + +Use the Outlook connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `mail_messages` + +## Connect + +1. Connect with an Azure AD app registration (app-only, client credentials): in the Azure portal open Microsoft Entra ID → App registrations → New registration (any name, no redirect URI). Copy the Directory (tenant) ID as tenant and the Application (client) ID as client_id, then under Certificates & secrets create a client secret and paste its Value (shown once) as client_secret. +2. Under API permissions → Add a permission → Microsoft Graph → Application permissions (not Delegated) add User.ReadBasic.All and Mail.Read, then click Grant admin consent (a Global or Application Administrator). The connect step fails with a message naming them when either is missing. +3. Pick the mailboxes to sync in the resource-selection step. A mailbox syncs every message received in the history window outside Drafts, Junk Email, Deleted Items, Outbox and Conversation History, with text bodies and attachment names. +4. Every email carries who may see it in Microsoft 365: the mailbox owner. With acl_supported on for the provider, permission-aware search shows each email only to that person; when the owner cannot be resolved the email remains tenant-public under the current fail-open policy and carries a persistent rbac_warning. +5. Mail.Read grants the app every mailbox in the tenant. To limit it to the mailboxes you select, create an Exchange application access policy (New-ApplicationAccessPolicy -AppId `` -PolicyScopeGroupId `` -AccessRight RestrictAccess); a selected mailbox outside the policy fails the sync with a message naming the policy rather than syncing silently empty. +6. Each sync reads only what changed: mail is filtered server-side on lastModifiedDateTime. Mail moved to Deleted Items or Junk Email after it was indexed is replaced by a hidden stub on the next sync; mail purged from Deleted Items leaves no trace until a full re-sync. +7. Rotate the client secret before it expires (Azure defaults to 6-24 months): an expired secret stops every sync with a message naming the fix. Pasting a new secret value re-enables the connector. + +Use provider `outlook` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/outreach.mdx b/essentials/v2/connectors/outreach.mdx new file mode 100644 index 00000000..4ce79923 --- /dev/null +++ b/essentials/v2/connectors/outreach.mdx @@ -0,0 +1,30 @@ +--- +title: "Outreach" +description: "What HydraDB syncs from Outreach, and how to connect it." +--- + +Use the Outreach connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `opportunities` +- `prospects` +- `accounts` +- `tasks` + +## Connect + +Use provider `outreach` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/pagerduty.mdx b/essentials/v2/connectors/pagerduty.mdx new file mode 100644 index 00000000..45ffb1a9 --- /dev/null +++ b/essentials/v2/connectors/pagerduty.mdx @@ -0,0 +1,36 @@ +--- +title: "PagerDuty" +description: "What HydraDB syncs from PagerDuty, and how to connect it." +--- + +Use the PagerDuty connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `incidents` +- `schedules` +- `escalation_policies` + +## Connect + +1. Create a READ-ONLY REST API key: PagerDuty → Integrations → API Access Keys → Create New API Key, and tick Read-only. This connector never writes, and a full-access key would let a leaked token trigger or resolve real incidents. +2. Set the email field to the account the key belongs to. PagerDuty sends it as the From header and rejects calls where it does not match a real user, so a mistyped address fails every request rather than some of them. +3. Mint the key at the ACCOUNT level, not scoped to a single user. A user-scoped key cannot list services, so discovery returns nothing and there is no way to choose what to sync; an empty picker is what that mistake looks like. +4. Services are picked after connecting. Incidents are scoped to the services you select, including their alerts, notes and status updates; schedules and escalation policies are account-wide and always synced, which is what makes "who is on call" answerable. +5. Incident notes and status updates are indexed by default because they are where the human response text lives. Turn off fetch_incident_prose if you would rather not index them, or to cut the per-incident request count on a very large account. Disabling excludes the note text; the fact that a note was added stays visible in the incident timeline. +6. With permission-aware search on, each service is readable by PagerDuty owners and admins, and by everyone else only from inside one of its teams (a service on no team is readable by every role that reads public services). Schedules and escalation policies carry the same rule over their own teams and are refreshed every sync. PagerDuty's API does not say whether a team is private, so a Manager, Responder or Observer outside a team does not see its services here even when the team is public. The read-only key must be able to read users, teams, services, schedules and escalation policies; when it cannot, the service is readable by everyone in your workspace, with a warning on the connector, until you reconnect or set an access rule on it. + +Use provider `pagerduty` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/pardot.mdx b/essentials/v2/connectors/pardot.mdx new file mode 100644 index 00000000..17b0ab97 --- /dev/null +++ b/essentials/v2/connectors/pardot.mdx @@ -0,0 +1,29 @@ +--- +title: "Pardot" +description: "What HydraDB syncs from Pardot, and how to connect it." +--- + +Use the Pardot connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `opportunities` +- `prospects` +- `prospect_accounts` + +## Connect + +Use provider `pardot` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/pendo.mdx b/essentials/v2/connectors/pendo.mdx new file mode 100644 index 00000000..b2c70a56 --- /dev/null +++ b/essentials/v2/connectors/pendo.mdx @@ -0,0 +1,41 @@ +--- +title: "Pendo" +description: "What HydraDB syncs from Pendo, and how to connect it." +--- + +Use the Pendo connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `accounts` +- `events` +- `feature_events` +- `features` +- `guide_events` +- `guides` +- `metadata_accounts` +- `metadata_visitors` +- `page_events` +- `pages` +- `poll_events` +- `track_events` +- `track_types` +- `visitor_history` +- `visitors` + +## Connect + +Use provider `pendo` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/pipedrive.mdx b/essentials/v2/connectors/pipedrive.mdx new file mode 100644 index 00000000..b61bd600 --- /dev/null +++ b/essentials/v2/connectors/pipedrive.mdx @@ -0,0 +1,34 @@ +--- +title: "Pipedrive" +description: "What HydraDB syncs from Pipedrive, and how to connect it." +--- + +Use the Pipedrive connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `deals` +- `persons` +- `organizations` +- `notes` +- `activities` +- `leads` +- `projects` +- `tasks` + +## Connect + +Use provider `pipedrive` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/posthog.mdx b/essentials/v2/connectors/posthog.mdx new file mode 100644 index 00000000..ff98e84e --- /dev/null +++ b/essentials/v2/connectors/posthog.mdx @@ -0,0 +1,30 @@ +--- +title: "PostHog" +description: "What HydraDB syncs from PostHog, and how to connect it." +--- + +Use the PostHog connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `persons` +- `cohorts` +- `feature_flags` +- `annotations` + +## Connect + +Use provider `posthog` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/quickbooks.mdx b/essentials/v2/connectors/quickbooks.mdx new file mode 100644 index 00000000..8fdb2a15 --- /dev/null +++ b/essentials/v2/connectors/quickbooks.mdx @@ -0,0 +1,31 @@ +--- +title: "QuickBooks" +description: "What HydraDB syncs from QuickBooks, and how to connect it." +--- + +Use the QuickBooks connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `Invoice` +- `Customer` +- `Payment` +- `Bill` +- `Attachable` + +## Connect + +Use provider `quickbooks` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/recurly.mdx b/essentials/v2/connectors/recurly.mdx new file mode 100644 index 00000000..7fe6e609 --- /dev/null +++ b/essentials/v2/connectors/recurly.mdx @@ -0,0 +1,30 @@ +--- +title: "Recurly" +description: "What HydraDB syncs from Recurly, and how to connect it." +--- + +Use the Recurly connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `invoices` +- `accounts` +- `subscriptions` +- `transactions` + +## Connect + +Use provider `recurly` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/ringcentral.mdx b/essentials/v2/connectors/ringcentral.mdx new file mode 100644 index 00000000..8ad3d3ed --- /dev/null +++ b/essentials/v2/connectors/ringcentral.mdx @@ -0,0 +1,28 @@ +--- +title: "RingCentral" +description: "What HydraDB syncs from RingCentral, and how to connect it." +--- + +Use the RingCentral connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `messages` +- `call_logs` + +## Connect + +Use provider `ringcentral` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/salesforce.mdx b/essentials/v2/connectors/salesforce.mdx new file mode 100644 index 00000000..05a59285 --- /dev/null +++ b/essentials/v2/connectors/salesforce.mdx @@ -0,0 +1,30 @@ +--- +title: "Salesforce" +description: "What HydraDB syncs from Salesforce, and how to connect it." +--- + +Use the Salesforce connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `Opportunity` +- `Lead` +- `Account` +- `Contact` + +## Connect + +Use provider `salesforce` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/segment.mdx b/essentials/v2/connectors/segment.mdx new file mode 100644 index 00000000..ea4e6837 --- /dev/null +++ b/essentials/v2/connectors/segment.mdx @@ -0,0 +1,31 @@ +--- +title: "Segment" +description: "What HydraDB syncs from Segment, and how to connect it." +--- + +Use the Segment connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `source_api_calls_daily` +- `workspace_api_calls_daily` +- `events_volume_daily` +- `source_mtu_usage_daily` +- `workspace_mtu_usage_daily` + +## Connect + +Use provider `segment` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/sendgrid.mdx b/essentials/v2/connectors/sendgrid.mdx new file mode 100644 index 00000000..a227d413 --- /dev/null +++ b/essentials/v2/connectors/sendgrid.mdx @@ -0,0 +1,30 @@ +--- +title: "SendGrid" +description: "What HydraDB syncs from SendGrid, and how to connect it." +--- + +Use the SendGrid connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `single_sends` +- `lists` +- `segments` +- `templates` + +## Connect + +Use provider `sendgrid` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/sentry.mdx b/essentials/v2/connectors/sentry.mdx new file mode 100644 index 00000000..11fab084 --- /dev/null +++ b/essentials/v2/connectors/sentry.mdx @@ -0,0 +1,31 @@ +--- +title: "Sentry" +description: "What HydraDB syncs from Sentry, and how to connect it." +--- + +Use the Sentry connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `issues` +- `events` +- `projects` +- `teams` +- `users` + +## Connect + +Use provider `sentry` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/servicenow.mdx b/essentials/v2/connectors/servicenow.mdx new file mode 100644 index 00000000..525cc16c --- /dev/null +++ b/essentials/v2/connectors/servicenow.mdx @@ -0,0 +1,34 @@ +--- +title: "ServiceNow" +description: "What HydraDB syncs from ServiceNow, and how to connect it." +--- + +Use the ServiceNow connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `kb_knowledge` +- `sc_cat_item` +- `incident` +- `problem` +- `change_request` +- `sc_request` +- `sc_req_item` +- `sc_task` + +## Connect + +Use provider `servicenow` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/sharepoint.mdx b/essentials/v2/connectors/sharepoint.mdx new file mode 100644 index 00000000..81af5ab0 --- /dev/null +++ b/essentials/v2/connectors/sharepoint.mdx @@ -0,0 +1,36 @@ +--- +title: "SharePoint" +description: "What HydraDB syncs from SharePoint, and how to connect it." +--- + +Use the SharePoint connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `pages` +- `driveItems` +- `listItems` + +## Connect + +1. Register a Microsoft Entra app for app-only client credentials. Copy the Directory (tenant) ID, Application (client) ID, and a client-secret Value into tenant, client_id, and client_secret; the Secret ID is not the secret value. +2. Grant Microsoft Graph APPLICATION permissions Sites.Read.All and Files.Read.All, then grant tenant-wide admin consent. Sites.Read.All is required for site discovery, document libraries, and site pages; Files.Read.All is required for drive delta metadata and file-content download. Delegated permissions do not satisfy this connector. +3. Pick the SharePoint sites to sync. Site pages and document-library files become searchable with human site, library, path, author, and MIME metadata; IDs remain provenance and stable identity rather than reader-facing labels. +4. Lists on a selected site are indexed too: every row of every visible list becomes one document holding its column values under their display names. Document libraries, hidden lists and SharePoint's own system lists are skipped, and list row attachments are not downloaded. +5. Native SharePoint item and site permissions are not yet reproduced. Content stays tenant-public under the current fail-open policy and every source carries rbac_warning; configure a customer resource ACL for sites that must be restricted. +6. File changes use Graph drive delta and page changes use lastModifiedDateTime windows. Provider deletion signals are not fully converged into hard index deletion yet; this documented current limitation does not block initial or incremental ingestion. + +Use provider `sharepoint` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/shortcut.mdx b/essentials/v2/connectors/shortcut.mdx new file mode 100644 index 00000000..51f86408 --- /dev/null +++ b/essentials/v2/connectors/shortcut.mdx @@ -0,0 +1,29 @@ +--- +title: "Shortcut" +description: "What HydraDB syncs from Shortcut, and how to connect it." +--- + +Use the Shortcut connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `stories` +- `project_stories` +- `epics` + +## Connect + +Use provider `shortcut` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/slack.mdx b/essentials/v2/connectors/slack.mdx new file mode 100644 index 00000000..4b82b52a --- /dev/null +++ b/essentials/v2/connectors/slack.mdx @@ -0,0 +1,27 @@ +--- +title: "Slack" +description: "What HydraDB syncs from Slack, and how to connect it." +--- + +Use the Slack connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `conversation_history` + +## Connect + +Use provider `slack` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/smartsheet.mdx b/essentials/v2/connectors/smartsheet.mdx new file mode 100644 index 00000000..fd6b61e8 --- /dev/null +++ b/essentials/v2/connectors/smartsheet.mdx @@ -0,0 +1,25 @@ +--- +title: "Smartsheet" +description: "What HydraDB syncs from Smartsheet, and how to connect it." +--- + +Use the Smartsheet connector to bring the following content into HydraDB. + +## What syncs + +The provider description does not enumerate fixed indexed object types. Use the setup notes below when available; the resource picker shows what your connection can select. + +## Connect + +Use provider `smartsheet` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/stripe.mdx b/essentials/v2/connectors/stripe.mdx new file mode 100644 index 00000000..fb7100a6 --- /dev/null +++ b/essentials/v2/connectors/stripe.mdx @@ -0,0 +1,30 @@ +--- +title: "Stripe" +description: "What HydraDB syncs from Stripe, and how to connect it." +--- + +Use the Stripe connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `invoices` +- `customers` +- `subscriptions` +- `charges` + +## Connect + +Use provider `stripe` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/supabase.mdx b/essentials/v2/connectors/supabase.mdx new file mode 100644 index 00000000..40aef842 --- /dev/null +++ b/essentials/v2/connectors/supabase.mdx @@ -0,0 +1,31 @@ +--- +title: "Supabase" +description: "What HydraDB syncs from Supabase, and how to connect it." +--- + +Use the Supabase connector to bring the following content into HydraDB. + +## What syncs + +Selected table row changes arrive through database webhooks. There is no history backfill. + +## Connect + +1. List the tables you want indexed, one per line, as schema.table, for example public.customers. Always include the schema. +2. In your Supabase project, install the Database Webhooks integration if it is not already installed. +3. Establish the connection in the HydraDB dashboard, then select the tables you want to sync. +4. Run the SQL command generated by the dashboard in the Supabase SQL editor to add a trigger for each table. Replace the API key placeholder with your HydraDB API key. +5. Only changes made after connecting are reflected. Existing rows are sent when they are updated; there is no historical backfill. + +Follow the Supabase connection flow in the dashboard. This is a push connector; the webhook triggers, not a polling credential, deliver changes. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/surveymonkey.mdx b/essentials/v2/connectors/surveymonkey.mdx new file mode 100644 index 00000000..6f0168d1 --- /dev/null +++ b/essentials/v2/connectors/surveymonkey.mdx @@ -0,0 +1,33 @@ +--- +title: "SurveyMonkey" +description: "What HydraDB syncs from SurveyMonkey, and how to connect it." +--- + +Use the SurveyMonkey connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `survey_details` +- `simplified_responses` + +## Connect + +1. Use a SurveyMonkey app access token with View Surveys (surveys_read) and View Response Details (responses_read_detail). A draft app token expires after 90 days unless the app is deployed. +2. Before a draft token expires, replace it in the connector and validate discovery and sync; deployed OAuth apps must retain their refresh-token flow and reauthorize when scopes change. +3. Pick surveys after connecting. The full questionnaire and human-readable response answers are indexed; collectors and contacts are not. Basic accounts expose at most 25 detailed responses per survey through the API, while paid plans allow the complete response history. +4. HydraDB does not currently import SurveyMonkey team sharing as ACLs. Survey questions and responses are tenant-wide unless you configure a HydraDB resource ACL for the selected survey. + +Use provider `surveymonkey` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/tableau.mdx b/essentials/v2/connectors/tableau.mdx new file mode 100644 index 00000000..ccd81e1b --- /dev/null +++ b/essentials/v2/connectors/tableau.mdx @@ -0,0 +1,40 @@ +--- +title: "Tableau" +description: "What HydraDB syncs from Tableau, and how to connect it." +--- + +Use the Tableau connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `datasources` +- `groups` +- `projects` +- `schedules` +- `tasks` +- `users` +- `workbooks` +- `workbooks_metadata` +- `published_datasources_metadata` +- `embedded_datasources_metadata` +- `custom_sql_locations_metadata` +- `users_metadata` +- `calculated_fields_metadata` +- `column_lineage_metadata` + +## Connect + +Use provider `tableau` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/trello.mdx b/essentials/v2/connectors/trello.mdx new file mode 100644 index 00000000..06e2f88a --- /dev/null +++ b/essentials/v2/connectors/trello.mdx @@ -0,0 +1,27 @@ +--- +title: "Trello" +description: "What HydraDB syncs from Trello, and how to connect it." +--- + +Use the Trello connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `cards` + +## Connect + +Use provider `trello` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/twilio.mdx b/essentials/v2/connectors/twilio.mdx new file mode 100644 index 00000000..9f60a844 --- /dev/null +++ b/essentials/v2/connectors/twilio.mdx @@ -0,0 +1,30 @@ +--- +title: "Twilio" +description: "What HydraDB syncs from Twilio, and how to connect it." +--- + +Use the Twilio connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `messages` +- `calls` +- `conferences` +- `alerts` + +## Connect + +Use provider `twilio` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/twitter.mdx b/essentials/v2/connectors/twitter.mdx new file mode 100644 index 00000000..ca0b27d1 --- /dev/null +++ b/essentials/v2/connectors/twitter.mdx @@ -0,0 +1,37 @@ +--- +title: "twitter" +description: "What HydraDB syncs from twitter, and how to connect it." +--- + +Use the twitter connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `posts` +- `dms` + +## Connect + +1. You bring your own X developer app: X bills API reads per record to the app owner ($0.005/post, $0.010/user read), so the connector never fronts a shared app. +2. Posts only (recommended): in the X developer portal open Projects & Apps → your app, and complete 'User authentication settings' once if it is empty; that is what creates the app's OAuth 2.0 client. Then on the Keys and tokens page, in the 'OAuth 2.0 Client ID and Client Secret' section, copy the Client ID and Generate the Client Secret (X shows it only once); pass them as client_id and client_secret. Do NOT use the API Key and API Key Secret listed above them: those are OAuth 1.0a keys and will not work. The connector mints its own app-only token from them on every sync; nothing expires, so this connection never needs reconnecting. Add the handles to follow (any public account). +3. Direct messages additionally need an OAuth2 user-context token; X serves DMs to no other auth scheme. First set the app's permissions to 'Read and write and Direct message' (User authentication settings): that setting is what allows the dm.read scope to be granted at all, and changing it later invalidates tokens already issued. Set the app type to the confidential-client option (Web App, Automated App or Bot) so the app has a client secret; both the app-only mint and token refresh require one. +4. Then, for your own account, generate the token pair straight from the portal: the Keys and tokens page has an OAuth 2.0 token generator; pick the scopes (dm.read tweet.read users.read offline.access) and it returns the access token and refresh token together. offline.access is the scope that produces the refresh token. To read a DIFFERENT account's inbox, that account must instead complete the authorization-code flow against your app once, since the portal only issues tokens for the logged-in account. +5. Pass the resulting tokens as access_token AND refresh_token, alongside client_id and client_secret. The access token expires after ~2 hours; the refresh token is what lets the platform renew it indefinitely. A DM connector without refresh_token stops syncing when the access token expires. +6. DM ingest is an explicit opt-in: even with a user token, the inbox appears as its own resource in the selection step and is never synced unless selected. +7. History limits are X's, not ours: the DM API serves only the most recent 30 days of events, so a DM backfill reaches back at most 30 days (the dashboard caps the history window accordingly); post timelines reach roughly the 3,200 most recent posts per account. +8. Spend guards: max_posts_per_account_per_sync (default 500) and max_dms_per_sync (default 1000) cap billed reads per sync and log a warning when hit; sync_profiles is off by default because a user read costs double a post read. + +Use provider `twitter` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/typeform.mdx b/essentials/v2/connectors/typeform.mdx new file mode 100644 index 00000000..469fb185 --- /dev/null +++ b/essentials/v2/connectors/typeform.mdx @@ -0,0 +1,29 @@ +--- +title: "Typeform" +description: "What HydraDB syncs from Typeform, and how to connect it." +--- + +Use the Typeform connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `forms` +- `responses` +- `partial_responses` + +## Connect + +Use provider `typeform` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/uservoice.mdx b/essentials/v2/connectors/uservoice.mdx new file mode 100644 index 00000000..5ec5d243 --- /dev/null +++ b/essentials/v2/connectors/uservoice.mdx @@ -0,0 +1,28 @@ +--- +title: "uservoice" +description: "What HydraDB syncs from uservoice, and how to connect it." +--- + +Use the uservoice connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `suggestions` +- `comments` + +## Connect + +Use provider `uservoice` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/workday-raas.mdx b/essentials/v2/connectors/workday-raas.mdx new file mode 100644 index 00000000..581a9549 --- /dev/null +++ b/essentials/v2/connectors/workday-raas.mdx @@ -0,0 +1,28 @@ +--- +title: "Workday RaaS" +description: "What HydraDB syncs from Workday RaaS, and how to connect it." +--- + +Use the Workday RaaS connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `workers` +- `employees` + +## Connect + +Use provider `workday_raas` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/wrike.mdx b/essentials/v2/connectors/wrike.mdx new file mode 100644 index 00000000..2085aec0 --- /dev/null +++ b/essentials/v2/connectors/wrike.mdx @@ -0,0 +1,28 @@ +--- +title: "Wrike" +description: "What HydraDB syncs from Wrike, and how to connect it." +--- + +Use the Wrike connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `tasks` +- `comments` + +## Connect + +Use provider `wrike` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/xero.mdx b/essentials/v2/connectors/xero.mdx new file mode 100644 index 00000000..de3f5df4 --- /dev/null +++ b/essentials/v2/connectors/xero.mdx @@ -0,0 +1,33 @@ +--- +title: "Xero" +description: "What HydraDB syncs from Xero, and how to connect it." +--- + +Use the Xero connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `invoices` +- `contacts` +- `payments` +- `bank_transactions` +- `invoice_attachments` +- `contact_attachments` +- `bank_transaction_attachments` + +## Connect + +Use provider `xero` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/zendesk.mdx b/essentials/v2/connectors/zendesk.mdx new file mode 100644 index 00000000..9ba10274 --- /dev/null +++ b/essentials/v2/connectors/zendesk.mdx @@ -0,0 +1,29 @@ +--- +title: "Zendesk" +description: "What HydraDB syncs from Zendesk, and how to connect it." +--- + +Use the Zendesk connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `tickets` +- `ticket_comments` +- `satisfaction_ratings` + +## Connect + +Use provider `zendesk` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/zoho-crm.mdx b/essentials/v2/connectors/zoho-crm.mdx new file mode 100644 index 00000000..4c476315 --- /dev/null +++ b/essentials/v2/connectors/zoho-crm.mdx @@ -0,0 +1,31 @@ +--- +title: "Zoho CRM" +description: "What HydraDB syncs from Zoho CRM, and how to connect it." +--- + +Use the Zoho CRM connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `deals` +- `leads` +- `contacts` +- `accounts` +- `notes` + +## Connect + +Use provider `zoho-crm` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/zoom.mdx b/essentials/v2/connectors/zoom.mdx new file mode 100644 index 00000000..9e1c560e --- /dev/null +++ b/essentials/v2/connectors/zoom.mdx @@ -0,0 +1,29 @@ +--- +title: "Zoom" +description: "What HydraDB syncs from Zoom, and how to connect it." +--- + +Use the Zoom connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `cloud_recordings` +- `meetings` +- `webinars` + +## Connect + +Use provider `zoom` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/zuora.mdx b/essentials/v2/connectors/zuora.mdx new file mode 100644 index 00000000..d388a6f4 --- /dev/null +++ b/essentials/v2/connectors/zuora.mdx @@ -0,0 +1,30 @@ +--- +title: "zuora" +description: "What HydraDB syncs from zuora, and how to connect it." +--- + +Use the zuora connector to bring the following content into HydraDB. + +## What syncs + +The provider description lists these indexed object types: + +- `Invoice` +- `Account` +- `Subscription` +- `Payment` + +## Connect + +Use provider `zuora` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +## Common mistakes + +- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. +- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. + +## Related + +- [Connector providers](/essentials/v2/connector-providers) +- [Connectors](/essentials/v2/connectors): setup, sync, and access control +- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/context.mdx b/essentials/v2/context.mdx index e7de0d17..d2ee48a8 100644 --- a/essentials/v2/context.mdx +++ b/essentials/v2/context.mdx @@ -27,7 +27,7 @@ import { Field } from "/snippets/field.jsx"; Description - HydraDB is built to organize all of your information into the types in the following columns automatically, so you don't have to choose. When you have a deterministic requirement, set the ingestion type yourself. + The CLI and MCP use an auto selector to choose the request layout for your input. This is client-side selection, not a backend content classifier. Choose knowledge or memory explicitly when you need a specific type. All the data your agent should be able to access: docs, emails, chats, transcripts, code, and sheets. You can directly ingest context or use connectors API to programmatically ingest data from your apps (RBAC aware). What your agent has learned about a user and their preferences, used to personalize search on each query. Agent decisions or traces: a record of every agent run, successful or failed, so future agents have a procedural memory of what works and what doesn't. @@ -48,10 +48,10 @@ import { Field } from "/snippets/field.jsx"; Ingestion - Incoming content is routed automatically. Set `type` only when you need deterministic routing. + CLI/MCP: auto selection by default. The public multipart API defaults to `type=knowledge`; send `type=memory` with legacy memory items. `auto` is not an API wire value. `type=knowledge` `type=memory` - `type=traces` + Not a public ingestion type. Store trace text as knowledge or memories. Evolves temporally @@ -77,7 +77,7 @@ There are two ways to ingest knowledge/context | `id` | Your stable ID for the file, and the upsert key. Send the same `id` later to replace the file, or use it to check status and delete. Leave it out to have one generated; the response returns it either way. | | `metadata` | Values you filter on at query time, such as `document_type`. Declare the keys in the database's [metadata schema](/essentials/v2/metadata). Up to 16 KiB as compact JSON. | | `additional_metadata` | Free-form values for display and bookkeeping. Filterable only when nested under `additional_metadata` in `metadata_filters`. Up to 1 KiB as compact JSON. | -| `relations` | Other sources this file belongs with, as `{ "ids": [...] }`. See [Link documents that belong together](#link-sources-explicitlypragmaticallydeterministically). | +| `relations` | Other sources this file belongs with, as `{ "ids": [...] }`. See [Link sources deterministically](#link-sources-deterministically). | ### Spreadsheets become queryable tables @@ -91,8 +91,10 @@ Replacing the file with the same `id` replaces the table too; the previous versi HydraDB does not capture memories on its own: your application saves one when a user states a preference, makes a decision in a specific way, finishes a task, or corrects the agent. +Give each user their own collection, such as `user_john_123`, and send it on every ingest, status check, and query. Your backend picks the collection from the signed-in session, never from untrusted client input; the collection name itself does not authenticate anyone. + 1. **Let HydraDB infer**: `infer` controls whether HydraDB extracts memories and preferences from what you send. - 1. `infer: true`(default): Extracts the preferences, trait, or fact from messy or indirect evidence. + 1. `infer: true` (default): Extracts the preferences, trait, or fact from messy or indirect evidence. This also applies when `infer` is omitted from a legacy `memories` item. 2. `infer: false`: Stores and indexes exactly what you send. No preprocessing step. 2. **Ingest memory**: It can be via `text` or `user_assistant_pairs`, not both. - `text`: Any prose, such as observations, facts, meeting notes, or semi-structured records. Set `is_markdown: true` for Markdown content so HydraDB keeps its structure when chunking and embedding. @@ -215,12 +217,12 @@ To remove one, call [`DELETE /context`](/api-reference/v2/endpoint/delete-source -## Link sources explicitly/pragmatically/deterministically +## Link sources deterministically -You can declare links and relations between sources using `explicit_relations` that you want to explicitly link together. HydraDB returns these explicitly linked sources in the `additional_context` field of the response, alongside the primary response. +Deterministic relations are links you declare between knowledge sources at ingestion. When a query matches one of those sources, HydraDB returns the linked sources in the response map `data.additional_graph_context`, alongside the primary chunks. The legacy response alias `data.additional_context` contains the same map. This is separate from the relations in the context graph HydraDB builds on its own. On a file, set `relations.ids` on its `document_metadata` item. `relations.ids` is what makes the linked text come back with query results. -`query_explicit_relations` defaults to `true`; set it to `false` to skip the linked sources. +`query_explicit_relations` defaults to `true`; set it to `false` to skip the linked sources. Linked-source retrieval runs only in `thinking` mode. This describes deterministic source links, not a new ingestion field: keep using `relations.ids`. diff --git a/essentials/v2/metadata-2.mdx b/essentials/v2/metadata-2.mdx index 6e3a8885..af1653ea 100644 --- a/essentials/v2/metadata-2.mdx +++ b/essentials/v2/metadata-2.mdx @@ -238,7 +238,7 @@ Three requests: create the database with a metadata schema, ingest a source that | `metadata` on the item | Values for the declared fields. | | `database_metadata_schema` | The fields a source's `metadata` may carry, each with a `name` and a `data_type`. The [schema field reference](#schema-field-reference) lists every option and limit. | | `enable_dense_embedding`, `enable_sparse_embedding` | Make a `VARCHAR` field searchable as text: dense adds semantic search, sparse adds keyword (BM25) search. To search it, put the concept in `query`, not in `metadata_filters`. | -| `additional_metadata` on the item | Free-form fields with no schema. [The two layers](#2-the-two-layers) compares the two, and [Size limits](#4-size-limits) gives the per-item cap on each. | +| `additional_metadata` on the item | Free-form fields with no schema. [Metadata and additional metadata](#metadata-and-additional-metadata) compares the two, and [Size limits](#4-size-limits) gives the per-item cap on each. | | `metadata_filters` | Hard constraints applied before ranking. Every key must match. [Filter operators](#3-filter-operators) covers the forms. | A valid filter that matches no source returns an empty result. HydraDB does not widen it into an unfiltered search. @@ -628,7 +628,7 @@ Limits: | A filter on an `additional_metadata` key returns nothing | The key was sent top-level, so it was matched against `metadata`, or it was sent with an operator object | Nest it with a bare value: `metadata_filters: { additional_metadata: { author: "alice" } }`. See [Filter operators](#3-filter-operators). | | A query returns nothing after you add filters | The combined constraints exclude everything; keys are ANDed | Start with the minimum hard constraints, add filters one at a time, and re-check counts. | | A range or fuzzy filter does not work | Only `equals`, `contains`, and `contains_any` are supported | Move the constraint into the `query` text, or post-process in your application. | -| An `additional_metadata` filter is slow | It could not be resolved up front, so it is checked [after retrieval](#2-the-two-layers) | Move the hot field into `metadata` and declare it in the schema. | +| An `additional_metadata` filter is slow | It could not be resolved up front, so it is checked [after retrieval](#metadata-and-additional-metadata) | Move the hot field into `metadata` and declare it in the schema. | | A schema change does not take effect, or you need a searchable field after creation | The schema is [additive only](#5-add-schema-fields-later), and added fields cannot take embedding flags | Create a new database with the corrected schema and re-ingest. There is no in-place migration for existing fields. | | A metadata edit returns `400` | Unknown key, wrong type, oversized payload, too-deep nesting, reserved key, missing `collection`, `null` on a searchable field, `acl` combined with `acl_inherit: true`, or inheritance without connector resource attribution | Check the schema, the [size limits](#4-size-limits), and the [edit rules](#6-update-metadata-without-re-ingesting); send a valid metadata edit or one ACL action. For a searchable field, set a non-null value or re-ingest. | diff --git a/essentials/v2/query.mdx b/essentials/v2/query.mdx index 1594cbc9..168b0a31 100644 --- a/essentials/v2/query.mdx +++ b/essentials/v2/query.mdx @@ -21,7 +21,6 @@ The following sample request searches the `acme_corp` database. database="acme_corp", collection="company_docs", query="How do I rotate API keys?", - type="all", mode="thinking", max_results=10, ) @@ -35,7 +34,6 @@ The following sample request searches the `acme_corp` database. database: "acme_corp", collection: "company_docs", query: "How do I rotate API keys?", - type: "knowledge", maxResults: 5, }); @@ -54,7 +52,6 @@ The following sample request searches the `acme_corp` database. "database": "acme_corp", "collection": "company_docs", "query": "How do I rotate API keys?", - "type": "knowledge", "max_results": 5 }' ``` @@ -82,7 +79,7 @@ The following sample request searches the `acme_corp` database. "chunk_relations": [], "chunk_id_to_group_ids": {} }, - "additional_context": {} + "additional_graph_context": {} }, "error": null, "meta": { @@ -125,7 +122,7 @@ The following sample request searches the `acme_corp` database. `type` - By default everything is searched, unless you specify.

`"knowledge"` for just documents; `"memory"` for just preferences; `"trace"` for agent traces + Defaults to `"all"`, searching knowledge and memories together. Set `"knowledge"` for documents or `"memory"` for saved preferences. @@ -134,7 +131,7 @@ The following sample request searches the `acme_corp` database. - `data.llm_prompt`**:** the query and the entire response to the query in one markdown file, complete with citations, that your agents can easily read. - `data.chunks`**:** the matching chunks from the graph, ranked by relevance, each with its source `id`, `chunk_content`, `source_title`, `relevancy_score`, and `metadata`. -- **`data.graph_context`** and `data.additional_context`**:** relationships and linkages, covered in [section 5](#5-understanding-relationships-in-your-context). +- **`data.graph_context`** and **`data.additional_graph_context`:** extracted relationships and deterministically linked sources, covered in [section 5](#5-understanding-relationships-in-your-context). - `data.tabular_data`**:** `null` for a document question. Present in thinking mode when the collection holds spreadsheets and the question is about them: a computed answer (`status: "ok"`) with `columns`, `records`, `sources` and `citations`, or a decline (`status: "not_applicable"`) when the question is not about the tables. See [Ask questions over spreadsheets](#ask-questions-over-spreadsheets). ### Ask questions over spreadsheets @@ -196,9 +193,9 @@ Table answers run in thinking mode only; `"fast"` returns the ranked chunks with ## 3. Tune the ranking - `alpha`**:** the balance between semantic/meaning (`1.0`) and keywords (`0.0`) in a hybrid query. Default `0.8`, which `"auto"` -- **`recency_bias`:** how much newer context is favored, from `0.0` to `1.0`. Default `0.4` +- **`recency_bias`:** how much newer context is favored, from `0.0` to `1.0`. Default `0.6` - **`max_results`:** drop to `5` for tight context windows; raise to `20` when you rerank downstream. -- `additional_graph_context`**:** a short factual related hint, that sharpens the response for your agents. +- **`additional_graph_context`:** a request-time string hint, such as `"user is on the billing page"`, that sharpens retrieval. It is not a filter. This is separate from the response map `data.additional_graph_context` containing linked sources. ## 4. Choose what to search @@ -262,7 +259,7 @@ Table answers run in thinking mode only; `"fast"` returns the ranked chunks with ## 5. Understanding relationships in your context - `graph_context`**:** the relationships HydraDB extracted from your context during ingestion, such as "Payments team owns billing service", in `data.graph_context`. -- `query_explicit_relations`**:** Links you declared explicitly during ingestion are returned in `data.additional_context`. Explicit relations are returned thinking mode only. +- **`query_explicit_relations`:** defaults to `true`. Links you declared deterministically during ingestion are returned in `data.additional_graph_context` in thinking mode only. Send `false` to skip linked sources. The legacy response alias `data.additional_context` contains the same map. - **`query_apps`:** for content synced by [connectors](/essentials/v2/connectors), an extra lane that rebuilds Slack threads, follows ticket and parent links, and matches exact ids and people. It still searches everything else, and has no effect on memories. @@ -378,9 +375,9 @@ console.log(completion.choices[0].message.content); | `metadata_filters` does not narrow results | Filter key is in the wrong namespace, the value does not match exactly, or the top-level field was not declared in the metadata schema | Top-level keys match `metadata`; free-form per-source fields must be nested under `additional_metadata`. Declare hot filter keys in `database_metadata_schema` before production ingest. | | Memories missing from a `type: "knowledge"` query | Wrong store selected | Use `type: "memory"` or `type: "all"`. | | Knowledge missing from a `type: "all"` query | The documents live in a different collection from the one you sent | List both collections in `collections`. | -| Recency does not seem to matter | `recency_bias` was sent as `0`, or the default `0.4` tilt is too mild | Raise it toward `1.0`. | +| Recency does not seem to matter | `recency_bias` was sent as `0`, or the default `0.6` tilt is too mild | Raise it toward `1.0`. | | `operator: "phrase"` returns `400` | `query_by` not set to `"text"` | `"and"` and `"phrase"` only apply to BM25 text queries: switch `query_by` to `"text"`. | -| `query_explicit_relations` ignored | Request runs in `mode: "fast"` (or `auto` routed to fast) | Forceful relations are fetched only in thinking mode. Set `mode: "thinking"`. | +| `query_explicit_relations` ignored | Request runs in `mode: "fast"` (or `auto` routed to fast) | Deterministically linked sources are fetched only in thinking mode. Set `mode: "thinking"`. | | `graph_context: false` ignored | Request runs in thinking mode (`mode: "thinking"`, or `auto` routed to thinking) | Thinking always includes the graph slice; `false` takes effect only in fast mode. Set `mode: "fast"` to drop it. | | Expected a deterministic `fast` or `thinking` pipeline, got auto-routed instead | `mode` was omitted | Omitting `mode` means `"auto"`. Set `mode` explicitly to `"fast"` or `"thinking"`. | | No `tabular_data` for a question about a spreadsheet | Request ran in `mode: "fast"` (or `auto` routed to fast) | Table answers run in thinking mode only. Set `mode: "thinking"`. | diff --git a/llms.txt b/llms.txt index 2b287858..072fb5eb 100644 --- a/llms.txt +++ b/llms.txt @@ -236,7 +236,7 @@ Explicit relations are links you declare between sources at ingest: - Use `ids`. - Declare `relations` on `document_metadata[]` items. They link knowledge sources; memory items do not take `relations`. -- A query pulls the related chunks into `data.additional_context` only in `mode: "thinking"` with `query_explicit_relations: true` (the default). +- A query pulls the related chunks into `data.additional_graph_context` only in `mode: "thinking"` with `query_explicit_relations: true` (the default). The legacy response alias `data.additional_context` contains the same map. ### Access control @@ -655,8 +655,7 @@ Memory item fields: | `text` | raw text or Markdown; required unless `user_assistant_pairs` provided | | `user_assistant_pairs` | dialogue pairs `{ user, assistant }`; useful for implied preferences | | `is_markdown` | preserve Markdown structure during chunking | -| `infer` | `true`: the input is raw signal and HydraDB extracts the durable preference or fact. `false`: the memory is already structured and is stored verbatim | -| `custom_instructions` | guide inference when `infer: true` | +| `infer` | defaults to `true`, including omitted `infer` on legacy `memories` items: HydraDB extracts the durable preference or fact. Explicit `false` stores the memory verbatim | | `user_name` | helps inference | | `metadata` | schema-aligned fields, as an object (do not stringify it again inside `memories`). `tenant_metadata` is not read on memory items. | | `additional_metadata` | free-form fields; keep as objects | @@ -768,16 +767,16 @@ Rules: | `collection` | string/null | the collection the context was saved in; default collection if omitted | | `collections` | list of collection IDs, or an object of weights | query up to 100 collections at once; every listed collection must exist. Send weights, such as `{"user_alex": 2, "company_docs": 1}`, to rank one collection over another | | `query` | string | required | -| `type` | `knowledge`, `memory`, `all` | store selector for knowledge, memories, or both | +| `type` | `knowledge`, `memory`, `all` | defaults to `all`, searching knowledge and memories; choose a type to narrow it | | `acl` | list of principals | who is asking; see [Send `acl` on user queries](#send-acl-on-user-queries) | | `query_by` | `hybrid`, `text` | default `hybrid` (semantic + BM25); `text` is BM25 keyword/phrase search | | `operator` | `or`, `and`, `phrase` | only for `query_by: "text"` | | `mode` | `fast`, `thinking`, `auto` | applies to hybrid; omitted means `auto`, which picks fast or thinking per query (thinking when unsure). `fast` is low latency. `thinking` adds query expansion, reranking, richer graph traversal, and explicit-relation expansion; it improves quality but adds latency | | `max_results` | integer/null | default 10; max 250 | | `alpha` | `0.0` to `1.0`, or `auto` | hybrid weight; `1.0` semantic, `0.0` BM25 | -| `recency_bias` | `0.0` to `1.0` | boost newer content; omitted means `0.4`, send `0` to disable | +| `recency_bias` | `0.0` to `1.0` | boost newer content; omitted means `0.6`, send `0` to disable | | `graph_context` | boolean | default true; include graph slice; `false` only takes effect in fast mode, thinking always includes it | -| `query_explicit_relations` | boolean | default true; returns explicitly related chunks in `data.additional_context`; only effective in `thinking` mode | +| `query_explicit_relations` | boolean | default true; returns explicitly related chunks in `data.additional_graph_context`; only effective in `thinking` mode | | `additional_graph_context` | string | short factual hint that sharpens retrieval; not a hard filter | | `metadata_filters` | object | deterministic filters before/around ranking | | `query_apps` | boolean | app-aware retrieval lane for content synced by connectors; still searches the full selected knowledge scope; defaults to `true` on `/query`, send `false` to disable | @@ -881,7 +880,7 @@ The successful `data` object / SDK return is a `RetrievalResult`: "chunk_relations": [], "chunk_id_to_group_ids": {} }, - "additional_context": {}, + "additional_graph_context": {}, "llm_prompt": "..." } ``` @@ -900,7 +899,7 @@ Use `chunks` as the primary LLM context. Preserve server order, which is the ran - Include a grounding instruction: answer only from the provided context, and say when the context is insufficient. - Start with `max_results: 10`; reduce it for tight context windows. - Use graph context only when it helps the question. -- Use `data.additional_context` to attach explicitly related chunks by `chunk_uuid` / `extra_context_ids`. +- Use `data.additional_graph_context` to attach explicitly related chunks by `chunk_uuid` / `extra_context_ids`. It is a response map, separate from the request's `additional_graph_context` string hint. The legacy `data.additional_context` response alias contains the same map. - For personalized answers, `type: "all"` is simplest: one result set already merges knowledge and memories. Python: diff --git a/plugins/cli.mdx b/plugins/cli.mdx index 110ba97c..c7059663 100644 --- a/plugins/cli.mdx +++ b/plugins/cli.mdx @@ -32,18 +32,15 @@ The CLI is open source. [Raise an issue](https://github.com/hydra-db/hydradb-cli - Create an API key from the [HydraDB dashboard](https://dashboard.hydradb.com/keys) - - Create or copy your database ID from the [HydraDB dashboard](https://dashboard.hydradb.com/databases) ```bash - hydradb login --database my-db + hydradb login ``` - You are prompted for your API key. Both the key and database are saved to `~/.hydradb/config.json` (file permissions `0600`). You can pass the key explicitly: + Enter your API key at the masked prompt. The key is saved to `~/.hydradb/config.json` with file permissions `0600` (readable and writable only by your account). No database is required to authenticate. - ```bash - hydradb login --api-key "$HYDRADB_API_KEY" --database my-db - ``` + Scripts and agents can skip login: inject `HYDRADB_API_KEY` through your environment or secret manager. This avoids saving the key to the CLI config or exposing it as a command-line argument in process listings. Set `HYDRADB_DATABASE` separately when a command needs a database. ```bash @@ -53,16 +50,18 @@ The CLI is open source. [Raise an issue](https://github.com/hydra-db/hydradb-cli | Overview of variables | Description | Default | | --- | --- | --- | | `HYDRADB_API_KEY` | Your HydraDB API key | _Required_ | - | `HYDRADB_DATABASE` | Your HydraDB database identifier | _Required_ | + | `HYDRADB_DATABASE` | Default database for scoped commands; not required for login or listing databases | - | | `HYDRADB_COLLECTION` | Collection within the database | - | | `HYDRADB_BASE_URL` | API base URL | `https://api.hydradb.com` | | `HYDRADB_OUTPUT` | Default output format (`human` or `json`) | `human` | - + ```bash - hydradb config show + hydradb database list hydradb config set database my-db ``` + + Or create a database with `hydradb database create my-db`, then select it with `hydradb config set database my-db`. Authentication and database selection are separate. @@ -81,14 +80,13 @@ Or set it per command, before the subcommand: hydradb -o json list --database my-db ``` -Warnings and errors always go to stderr, so `--output json` stdout stays a clean -document you can pipe straight into `jq`. +Human-readable scope notices and diagnostics go to stderr. JSON stdout stays one document you can pipe into `jq`: context commands include the effective `scope`, and API warnings stay in `warnings` (or `response_warnings` if the payload already uses that name). Inspect the returned scope when using defaults or switching databases; a null collection means the API selected the collection without reporting its name. --- ## Commands -Every command that reads or writes context takes `--database` to choose the database, and `--collection` to scope to a collection within it. Both fall back to your configured defaults, so the examples below can omit them once `hydradb login` has run. +Every command that reads or writes context takes `--database` to choose the database and `--collection` to scope to a collection within it. Both fall back to your configured defaults, so you can omit them after selecting a scope, not merely after login. If a scoped command has no database, its error explains how to list databases and pass or configure one. ### Context @@ -104,11 +102,10 @@ Every command that reads or writes context takes `--database` to choose the data #### Ingesting -`ingest` auto categorizes context by default while saving it. Pass `--kind knowledge` for knowledge text, or -give it file paths: files are always knowledge sources. +`ingest` uses the client's auto selector by default to choose a request layout, not a backend content classifier. Pass `--type knowledge` or `--type memory` to choose explicitly, or give it file paths: files are always knowledge sources. The CLI's auto selector is not an API `type` value. ```bash -# Store a memory +# Route text automatically hydradb ingest --text "The user prefers dark mode and uses VS Code" --database my-db # Store knowledge text @@ -123,13 +120,13 @@ cat notes.txt | hydradb ingest --database my-db | Option | Description | |---|---| -| `--type` | intelligent routing by default or set the type yourself | +| `--type` | Client-side auto selection by default, or choose `knowledge` or `memory` explicitly | | `--text`, `-t` | Text to ingest. Use `-` to read from stdin | | `--infer` / `--no-infer` | Extract insights and build the context graph (default on) | | `--title` | Optional title | | `--source-id` | Client-assigned source identifier | | `--user-name` | User name (for memory only) | -| `--markdown` | Treat text as markdown (memory only) | +| `--markdown` | Treat memory or knowledge text as Markdown | | `--upsert` / `--no-upsert` | Update existing sources with the same `source_id` (default on) | @@ -160,9 +157,10 @@ hydradb query "PostgreSQL migration" --operator and --database my-db | `--max-results`, `-n` | Maximum results, 1 to 50 (default `10`) | | `--mode`, `-m` | Retrieval mode: `fast` or `thinking`. Omit it and the API picks one per query (`auto`) | | `--alpha` | Hybrid search weight (`0.0` keyword to `1.0` semantic). Omitted means the API default, `0.8` | -| `--recency-bias` | Preference for newer content (`0.0` to `1.0`). Omitted means a mild `0.4` tilt. Pass `0` to turn it off | +| `--recency-bias` | Preference for newer content (`0.0` to `1.0`). Omitted means `0.6`. Pass `0` to turn it off | | `--graph-context` / `--no-graph-context` | Include context graph relations. On by default. `--no-graph-context` only takes effect in `fast` mode | -| `--additional_graph_context` | Additional context to guide retrieval | +| `--query-explicit-relations` / `--no-query-explicit-relations` | Include or skip deterministically linked sources in thinking mode. On by default | +| `--additional-graph-context` | A factual string hint to guide retrieval, not a filter. `--additional_graph_context` is also accepted | #### Inspecting @@ -177,10 +175,10 @@ hydradb inspect 39e8872d-1c4a-4f0b-9c1e-7d2a5b8e4f10 --database my-db hydradb verify 39e8872d-1c4a-4f0b-9c1e-7d2a5b8e4f10 --database my-db # Delete (prompts unless --yes) -hydradb delete 39e8872d-1c4a-4f0b-9c1e-7d2a5b8e4f10 --kind knowledge --database my-db --yes +hydradb delete 39e8872d-1c4a-4f0b-9c1e-7d2a5b8e4f10 --type knowledge --database my-db --yes ``` -`list` accepts `--type`, `--page` and `--page-size` (1 to 100). `inspect` accepts `--mode content` (default), `url`, or `both`. `delete` defaults to `--kind knowledge`, so pass `--kind memory` to remove a memory. +`list` accepts `--type`, `--page` and `--page-size` (1 to 100). `inspect` accepts `--mode content` (default), `url`, or `both`. `delete` defaults to `--type knowledge`, so pass `--type memory` to remove a memory. ### Database management @@ -204,6 +202,16 @@ hydradb delete 39e8872d-1c4a-4f0b-9c1e-7d2a5b8e4f10 --kind knowledge --database | `hydradb config show` | Show current CLI configuration | | `hydradb config set KEY VALUE` | Save a setting. See [Persistent configuration](#persistent-configuration) for the keys | +### Persistent configuration + +Use `hydradb config set` for `database`, `collection`, or `base_url`, and `hydradb config show` to inspect the resolved configuration. Environment variables override saved settings; per-command scope flags override both. Set the output format with `HYDRADB_OUTPUT` or `--output`. Use the masked login prompt or `HYDRADB_API_KEY` for credentials. + +### Deprecated aliases + +`--kind` is the older alias for `--type` on context commands. New scripts should use `--type`. Existing `--tenant-id` and `--sub-tenant-id` scope flags remain aliases for `--database` and `--collection`. + +For query hints, `--additional-graph-context` takes precedence over the older `--additional-context` and `--context` flags, including when the canonical hint is empty. For linked-source retrieval, `--query-explicit-relations` / `--no-query-explicit-relations` take precedence over the older `--follow-forceful-relations` and `--query-forceful-relations` pairs. Explicit `false` is preserved. Conflicting `--type` and `--kind` values are rejected rather than guessed. + ## Scripting and automation Use `--output json` to pipe results into `jq`, Python, or other tools: @@ -213,7 +221,7 @@ Use `--output json` to pipe results into `jq`, Python, or other tools: hydradb -o json list --database my-db | jq '.sources[].id' # Query and extract just the matched text -hydradb -o json query "user preferences" --kind memory --database my-db \ +hydradb -o json query "user preferences" --type memory --database my-db \ | jq '.chunks[].chunk_content' # Batch upload: ingest accepts many files in one invocation diff --git a/plugins/mcp.mdx b/plugins/mcp.mdx index a5c30671..bc3febb8 100644 --- a/plugins/mcp.mdx +++ b/plugins/mcp.mdx @@ -92,7 +92,8 @@ the easiest: add one URL to your AI app and approve it in the browser. - Create an API key from the [HydraDB dashboard](https://dashboard.hydradb.com/keys) - - Create or copy your database ID from the [HydraDB dashboard](https://dashboard.hydradb.com/databases) + + No database is required to connect with an API key. Choose one after authentication. @@ -101,7 +102,7 @@ the easiest: add one URL to your AI app and approve it in the browser. Point your client at `https://mcp.hydradb.com` and pass your credentials as headers. The key names differ by client: VS Code uses the `servers` schema with an explicit `type`, the others use - `mcpServers`. See [authentication](#authenticating-to-the-remote-server) + `mcpServers`. See [API key headers](#api-key-headers) for every header. @@ -112,8 +113,7 @@ the easiest: add one URL to your AI app and approve it in the browser. "hydradb": { "url": "https://mcp.hydradb.com", "headers": { - "Authorization": "Bearer YOUR_HYDRADB_API_KEY", - "X-HydraDB-Database": "your-database" + "Authorization": "Bearer YOUR_HYDRADB_API_KEY" } } } @@ -131,8 +131,7 @@ the easiest: add one URL to your AI app and approve it in the browser. "type": "http", "url": "https://mcp.hydradb.com", "headers": { - "Authorization": "Bearer YOUR_HYDRADB_API_KEY", - "X-HydraDB-Database": "your-database" + "Authorization": "Bearer YOUR_HYDRADB_API_KEY" } } } @@ -155,8 +154,7 @@ the easiest: add one URL to your AI app and approve it in the browser. "command": "npx", "args": ["-y", "@hydradb/mcp@^1.1.0"], "env": { - "HYDRADB_API_KEY": "your-api-key", - "HYDRADB_DATABASE": "your-database" + "HYDRADB_API_KEY": "your-api-key" } } } @@ -174,8 +172,7 @@ the easiest: add one URL to your AI app and approve it in the browser. "command": "npx", "args": ["-y", "@hydradb/mcp@^1.1.0"], "env": { - "HYDRADB_API_KEY": "your-api-key", - "HYDRADB_DATABASE": "your-database" + "HYDRADB_API_KEY": "your-api-key" } } } @@ -193,8 +190,7 @@ the easiest: add one URL to your AI app and approve it in the browser. "command": "npx", "args": ["-y", "@hydradb/mcp@^1.1.0"], "env": { - "HYDRADB_API_KEY": "your-api-key", - "HYDRADB_DATABASE": "your-database" + "HYDRADB_API_KEY": "your-api-key" } } } @@ -213,8 +209,7 @@ the easiest: add one URL to your AI app and approve it in the browser. "command": "npx", "args": ["-y", "@hydradb/mcp@^1.1.0"], "env": { - "HYDRADB_API_KEY": "your-api-key", - "HYDRADB_DATABASE": "your-database" + "HYDRADB_API_KEY": "your-api-key" } } } @@ -227,8 +222,8 @@ the easiest: add one URL to your AI app and approve it in the browser. - Swap `YOUR_HYDRADB_API_KEY` / `your-api-key` and `your-database` for the - values from Step 1, then restart your editor or client so it picks up + Swap `YOUR_HYDRADB_API_KEY` / `your-api-key` for your API key, + then restart your editor or client so it picks up the new MCP server. @@ -241,12 +236,18 @@ the easiest: add one URL to your AI app and approve it in the browser. ## Configuration +### Choose a database after authentication + +Ask your agent to call `hydradb_databases` to list the databases your connection can use, or `hydradb_database_create` to create one. Pass `database` in each scoped tool call, or configure a default below. Database-management tools do not require a default database. An OAuth connection remains limited to the scope you approved. + +Tool responses include a `scope_notice` and a human-readable Scope notice, so your agent can check the effective database and collection when it uses a connection default or switches scope per call. A null collection does not name a collection: the response may list multiple `collections` for automatic search, or leave the API-selected collection name unreported. Backend warnings are retained in the response; if a bounded result cannot include them all, `warnings_omitted` reports that. An OAuth request outside its approved scope is rejected before an API call is made. + ### Some environment variables | Variable | Description | Default | | -------------------- | ------------------------------------------ | ------------------------- | | `HYDRADB_API_KEY` | Your HydraDB API key | *Required* | -| `HYDRADB_DATABASE` | The database to read and write | *Required* | +| `HYDRADB_DATABASE` | Default database; scoped tools can instead receive `database` in their arguments | *(unset)* | | `HYDRADB_COLLECTION` | Collection within the database | *(default collection)* | | `HYDRADB_BASE_URL` | API base URL override | `https://api.hydradb.com` | | `HYDRADB_LOG_LEVEL` | Log level: `DEBUG`, `INFO`, `WARN`, `ERROR` | `ERROR` | @@ -278,13 +279,12 @@ context between them: ### API key headers A request that authenticates nobody is refused with `401`, and that refusal is -what starts the sign-in flow for clients that support it. A request that carries -an API key but names no database is refused with `400`. +what starts the sign-in flow for clients that support it. An API key alone is enough to connect and list databases. A scoped tool call without a database returns an actionable error explaining how to select one. | Header | Maps to | Required | | --- | --- | --- | | `Authorization` | Your HydraDB API key as a `Bearer` token (`X-HydraDB-Api-Key` is also accepted), or an OAuth access token | Yes | -| `X-HydraDB-Database` | Database. API-key requests only; not read for an OAuth token, whose scope comes from what you approved | With an API key | +| `X-HydraDB-Database` | Optional default database. API-key requests only; not read for an OAuth token, whose scope comes from what you approved | No | | `X-HydraDB-Collection` | Collection. If omitted, the API uses the default collection | No | | `X-HydraDB-Graph-Database` | Default graph database for the Cypher tools; defaults to the request's database | No | | `X-HydraDB-Graph-Collection` | Default graph collection; defaults to `default` | No | @@ -292,10 +292,7 @@ an API key but names no database is refused with `400`. ## Self-hosting the HTTP server To run the remote server yourself instead of using `mcp.hydradb.com`, use -the npm binary or the Docker image. Set `HYDRADB_API_KEY` and `HYDRADB_DATABASE` -in the environment for a single-tenant server (clients then send no credentials), -or leave them unset for a multi-tenant one where every client authenticates with -its own headers. +the npm binary or the Docker image. Inject `HYDRADB_API_KEY` into the environment for a single-tenant server (clients then send no credentials). `HYDRADB_DATABASE` is an optional default; scoped tool calls can select a database later. For a multi-tenant server, leave the key unset so every client authenticates with its own headers. The defaults are loopback-only. When you expose the server publicly, bind `0.0.0.0` deliberately, set `ALLOWED_HOSTS` to your hostname, list any browser origins in `ALLOWED_ORIGINS`, and terminate TLS in front of it. For a shared, public server, leave `HYDRADB_API_KEY` unset so every caller must authenticate with their own key rather than sharing yours. @@ -306,9 +303,10 @@ its own headers. ```bash npm install -g @hydradb/mcp # Single-tenant: the server holds one account - HYDRADB_API_KEY=your-key HYDRADB_DATABASE=your-database hydradb-mcp-http + HYDRADB_DATABASE=your-database hydradb-mcp-http # Multi-tenant: clients authenticate per request - BIND_ADDRESS=0.0.0.0 ALLOWED_HOSTS=mcp.hydradb.com hydradb-mcp-http + env -u HYDRADB_API_KEY -u HYDRADB_DATABASE \ + BIND_ADDRESS=0.0.0.0 ALLOWED_HOSTS=mcp.hydradb.com hydradb-mcp-http ``` @@ -316,7 +314,7 @@ its own headers. ```bash docker build -t hydradb-mcp https://github.com/hydra-db/hydradb-mcp.git docker run -p 8080:8080 \ - -e HYDRADB_API_KEY=your-key -e HYDRADB_DATABASE=your-database \ + -e HYDRADB_API_KEY -e HYDRADB_DATABASE \ hydradb-mcp ``` diff --git a/scripts/connector_capabilities.json b/scripts/connector_capabilities.json new file mode 100644 index 00000000..da5a462c --- /dev/null +++ b/scripts/connector_capabilities.json @@ -0,0 +1,1163 @@ +{ + "provenance": { + "application": { + "repo": "hydra-db/hydradb-application", + "commit": "d76958b515105f9b60ce76d36df670d2dc5ee924", + "source": "application/internal/connectors/lance/provider_info.go: ProviderInfoFor" + }, + "dashboard": { + "repo": "hydra-db/dashboard-2.0", + "commit": "f611226e4c790747140bb47d552aa9785097162d", + "source": "next-app/src/lib/providers.ts: PROVIDERS, CATALOG_ALIAS and Supabase tokenHowTo" + }, + "export_entries": 100, + "export_sha256": "30e1205d312195291e10adc4358b928e30e03be7eb120691474376b8104aadff", + "aliases": { + "googleanalytics": "ga4", + "zoho": "zoho-crm" + }, + "notes": [ + "Indexed object types and setup notes are from public ProviderInfoFor output, not dashboard marketing summaries.", + "Supabase has no normalizer provider description; push-only behavior and setup are sourced from the dashboard provider tokenHowTo.", + "An empty indexed_object_types list is preserved and does not imply that no content syncs." + ] + }, + "providers": [ + { + "provider": "github", + "name": "GitHub", + "indexed_object_types": [ + "issues", + "issue_comments" + ] + }, + { + "provider": "linear", + "name": "Linear", + "indexed_object_types": [ + "Issues" + ] + }, + { + "provider": "gitlab", + "name": "GitLab", + "indexed_object_types": [ + "issues", + "merge_requests", + "issue_notes", + "mr_notes", + "repository_files", + "commits", + "releases", + "projects" + ] + }, + { + "provider": "sentry", + "name": "Sentry", + "indexed_object_types": [ + "issues", + "events", + "projects", + "teams", + "users" + ] + }, + { + "provider": "pagerduty", + "name": "PagerDuty", + "indexed_object_types": [ + "incidents", + "schedules", + "escalation_policies" + ], + "setup_guide": [ + "Create a READ-ONLY REST API key: PagerDuty → Integrations → API Access Keys → Create New API Key, and tick Read-only. This connector never writes, and a full-access key would let a leaked token trigger or resolve real incidents.", + "Set the email field to the account the key belongs to. PagerDuty sends it as the From header and rejects calls where it does not match a real user, so a mistyped address fails every request rather than some of them.", + "Mint the key at the ACCOUNT level, not scoped to a single user. A user-scoped key cannot list services, so discovery returns nothing and there is no way to choose what to sync — an empty picker is what that mistake looks like.", + "Services are picked after connecting. Incidents are scoped to the services you select, including their alerts, notes and status updates; schedules and escalation policies are account-wide and always synced, which is what makes \"who is on call\" answerable.", + "Incident notes and status updates are indexed by default because they are where the human response text lives. Turn off fetch_incident_prose if you would rather not index them, or to cut the per-incident request count on a very large account. Disabling excludes the note text; the fact that a note was added stays visible in the incident timeline.", + "With permission-aware search on, each service is readable by PagerDuty owners and admins, and by everyone else only from inside one of its teams (a service on no team is readable by every role that reads public services). Schedules and escalation policies carry the same rule over their own teams and are refreshed every sync. PagerDuty's API does not say whether a team is private, so a Manager, Responder or Observer outside a team does not see its services here even when the team is public. The read-only key must be able to read users, teams, services, schedules and escalation policies; when it cannot, the service is readable by everyone in your workspace, with a warning on the connector, until you reconnect or set an access rule on it." + ] + }, + { + "provider": "datadog", + "name": "Datadog", + "indexed_object_types": [ + "aggregate_logs", + "metric_response_time", + "slo_history_us_prod", + "slo_history_eu_prod", + "slo_history_ca_prod", + "monitors", + "dashboards", + "slos", + "notebooks", + "incidents" + ], + "setup_guide": [ + "Datadog needs TWO keys and they do different jobs. Create an API key under Organization Settings → API Keys, and an application key under Organization Settings → Application Keys. The API key identifies the org; the application key carries the scopes, so it is the one that decides what syncs.", + "An application key is created UNSCOPED and the create dialog has no scope picker — the key list will show it as \"Not Scoped\", meaning it inherits everything its owner can do. You have to open the key afterwards and Edit it to apply scopes, so a key made the obvious way is a full-permission key.", + "Grant exactly these and nothing more: timeseries_query, slos_read, logs_read_data, monitors_read, dashboards_read, notebooks_read and incident_read. Datadog's own description of logs_read_data claims reading logs also needs \"Logs Read Index Data\"; tested against a live org it does not, so do not grant the extra one.", + "A missing scope does not fail loudly. Datadog answers an unauthorized request with a bare 403 that names no permission, an unknown metric with a 200 and an empty series, and a log query against an org with no indexes with \"No valid indexes specified\" — so an under-scoped key looks exactly like an empty account.", + "Both keys are site-specific. If your org is not on US1, set the site field (for example us5.datadoghq.com or datadoghq.eu) or every call fails against the wrong region.", + "Datadog has nothing to browse, so the resource step offers a single \"All data\" row — select it to continue. It syncs the whole org: monitors are indexed with their message text, which is where runbooks live, along with dashboards, SLO definitions, notebooks and declared incidents.", + "Incidents Datadog marks PRIVATE are indexed too, and their restriction is carried over: Datadog scopes a private incident to its participants, and we record it as visible to nobody, so an access-scoped search never returns it. Each indexed incident also records its own visibility in its text, so you can tell which is which.", + "That mirroring only takes effect once access-scoped search is enabled for this connector on our side, which is a per-provider setting rather than something the scopes control. Until it is on, a private incident behaves the way it did before and is searchable by everyone in your HydraDB tenant. Ask us to turn it on, or skip just the incident_read scope if that trade is not acceptable: every other stream syncs without it.", + "The metric query, log query and SLO id fields are optional additions, each selecting one extra time series to index. Leaving them blank costs you those series and nothing else — everything above syncs without them." + ] + }, + { + "provider": "jira", + "name": "Jira", + "indexed_object_types": [ + "issues", + "issue_comments", + "issue_worklogs" + ] + }, + { + "provider": "asana", + "name": "Asana", + "indexed_object_types": [ + "tasks", + "subtasks", + "stories", + "projects" + ], + "setup_guide": [ + "Create a personal access token in Asana's Developer Console under My apps → Personal access tokens. PATs inherit the creating user's visibility and have no scope picker, so use a dedicated integration user with access to every project you intend to select.", + "Asana PATs do not refresh automatically. Rotate by creating a replacement token, updating the connector, verifying a sync, and only then revoking the old token; removing the integration user immediately invalidates its token.", + "Pick the projects to sync after connecting. Tasks, subtasks, projects and comment stories become searchable; system-generated activity stories are skipped. The connector only reads Asana.", + "HydraDB uses Asana's privacy_setting to capture each selected project's read audience: public_to_workspace includes active, non-guest workspace members plus explicit project memberships; private includes explicit project memberships; deprecated private_to_team includes the project team's users plus explicit project memberships. Memberships can grant admins, editors, commenters, viewers or teams. If project attribution is missing, Asana omits or returns an unknown privacy setting, hides a member email, or a permission read is incomplete, HydraDB refuses a partial ACL and shows a resource-level warning under the current fail-open policy; the content remains workspace-readable unless a customer resource rule governs it. Use a dedicated integration user's personal access token that can read the selected project, its memberships, and member email addresses.", + "Asana quotas are per token (150 requests/minute on free domains and 1,500 on paid domains). Large comment/subtask histories fan out per task, so a dedicated token also keeps this connector from sharing quota with unrelated automations." + ] + }, + { + "provider": "monday", + "name": "Monday.com", + "indexed_object_types": [ + "items", + "assets" + ], + "setup_guide": [ + "Paste a Monday personal API token from Profile → Developers → My Access Tokens, or an OAuth token whose app has boards:read. A personal token inherits the user's board visibility; private boards the user cannot open will not appear in the picker.", + "A Monday personal token does not use an OAuth refresh flow. Rotate it by updating and validating the connector before revoking the prior token; OAuth installations must keep their provider refresh flow active.", + "Pick boards after connecting. Each active item becomes a searchable task containing its name and rendered column values, with board-relation columns represented as graph links. Archived/deleted items are not enumerable through Monday's board items_page API and can remain indexed until a full resync.", + "When Monday permission capture is disabled, selected board content is readable by everyone in the workspace with a persistent warning unless you set a resource access rule. Ask your administrator to enable Monday permission capture before relying on board restrictions.", + "When capture is enabled, board readers are captured from owners, subscribers, and subscribed teams. Main/public boards follow account membership; public boards in closed workspaces follow workspace membership. The token must read boards, users, teams, and workspaces (boards:read, users:read, teams:read, workspaces:read).", + "If a guest, team member, or workspace reader cannot be resolved to a complete user/email roster, resource ACL capture fails open with a persistent warning rather than storing a partial allow-list. Do not interpret board permissions as read access; those values govern editing.", + "Monday enforces GraphQL complexity budgets and daily API call limits that vary by token and account plan. The connector paginates and retries rate limits, but very large boards can require a longer sync interval." + ] + }, + { + "provider": "trello", + "name": "Trello", + "indexed_object_types": [ + "cards" + ] + }, + { + "provider": "smartsheet", + "name": "Smartsheet", + "indexed_object_types": [] + }, + { + "provider": "wrike", + "name": "Wrike", + "indexed_object_types": [ + "tasks", + "comments" + ] + }, + { + "provider": "clickup", + "name": "ClickUp", + "indexed_object_types": [ + "team", + "task", + "task_comment" + ], + "setup_guide": [ + "Create a personal API token under avatar → Settings → Apps → API Token. ClickUp personal tokens have no scope picker and inherit the user; use a dedicated account that can open every Workspace you intend to select.", + "ClickUp personal tokens have no refresh flow. Rotate by generating a replacement, updating the connector, verifying discovery and sync, and then revoking the old token; an OAuth installation must use ClickUp's refresh-token lifecycle instead.", + "Pick Workspaces after connecting. Tasks and subtasks are indexed with descriptions, status, assignees, priority, tags and list/folder context. Task comments are indexed as first-class comment documents with human author and parent-task context. ClickUp limits personal and OAuth tokens per Workspace plan, starting at 100 requests/minute on Free, Unlimited and Business.", + "HydraDB does not currently reproduce ClickUp guest or private Space/List/Task visibility. Synced tasks and comments are tenant-wide under the current fail-open policy, carry a persistent rbac_warning, and can be restricted with a HydraDB resource ACL for the selected Workspace." + ] + }, + { + "provider": "shortcut", + "name": "Shortcut", + "indexed_object_types": [ + "stories", + "project_stories", + "epics" + ] + }, + { + "provider": "notion", + "name": "Notion", + "indexed_object_types": [ + "pages" + ] + }, + { + "provider": "airtable", + "name": "Airtable", + "indexed_object_types": [], + "setup_guide": [ + "Create an Airtable Personal Access Token with data.records:read and schema.bases:read, then grant that token access to every base you want to select. Correct scopes alone do not grant base access. Legacy API keys are retired.", + "Airtable Personal Access Tokens have no refresh flow. Rotate by creating a replacement with the same scopes and base grants, updating the connector, validating discovery and sync, and then revoking the old token.", + "Pick bases after connecting. Every table record becomes a custom searchable object; record-link fields become graph links, attachment filenames remain in record text, and supported attachment file contents are downloaded through short-lived claim-check pointers and indexed. Oversized or unsupported files remain metadata-only without blocking the record.", + "HydraDB does not currently import Airtable base/workspace collaborators as ACLs. Synced records are tenant-wide unless you configure a HydraDB resource ACL for the selected base.", + "Airtable has no reliable modified timestamp in record payloads, so the connector uses LAST_MODIFIED_TIME() server-side windows. Formula fields that depend on external state can change without a record modification event and may require a full resync." + ] + }, + { + "provider": "confluence", + "name": "Confluence", + "indexed_object_types": [ + "content", + "attachments" + ] + }, + { + "provider": "coda", + "name": "Superhuman", + "indexed_object_types": [ + "docs", + "pages", + "page_contents", + "rows" + ] + }, + { + "provider": "contentful", + "name": "Contentful", + "indexed_object_types": [ + "entries", + "tasks" + ] + }, + { + "provider": "bookstack", + "name": "BookStack", + "indexed_object_types": [ + "books", + "pages", + "chapters" + ] + }, + { + "provider": "nextcloud", + "name": "Nextcloud", + "indexed_object_types": [ + "files" + ] + }, + { + "provider": "sharepoint", + "name": "SharePoint", + "indexed_object_types": [ + "pages", + "driveItems", + "listItems" + ], + "setup_guide": [ + "Register a Microsoft Entra app for app-only client credentials. Copy the Directory (tenant) ID, Application (client) ID, and a client-secret Value into tenant, client_id, and client_secret; the Secret ID is not the secret value.", + "Grant Microsoft Graph APPLICATION permissions Sites.Read.All and Files.Read.All, then grant tenant-wide admin consent. Sites.Read.All is required for site discovery, document libraries, and site pages; Files.Read.All is required for drive delta metadata and file-content download. Delegated permissions do not satisfy this connector.", + "Pick the SharePoint sites to sync. Site pages and document-library files become searchable with human site, library, path, author, and MIME metadata; IDs remain provenance and stable identity rather than reader-facing labels.", + "Lists on a selected site are indexed too: every row of every visible list becomes one document holding its column values under their display names. Document libraries, hidden lists and SharePoint's own system lists are skipped, and list row attachments are not downloaded.", + "Native SharePoint item and site permissions are not yet reproduced. Content stays tenant-public under the current fail-open policy and every source carries rbac_warning; configure a customer resource ACL for sites that must be restricted.", + "File changes use Graph drive delta and page changes use lastModifiedDateTime windows. Provider deletion signals are not fully converged into hard index deletion yet; this documented current limitation does not block initial or incremental ingestion." + ] + }, + { + "provider": "salesforce", + "name": "Salesforce", + "indexed_object_types": [ + "Opportunity", + "Lead", + "Account", + "Contact" + ] + }, + { + "provider": "hubspot", + "name": "HubSpot", + "indexed_object_types": [ + "deals", + "tickets", + "contacts", + "companies", + "notes", + "emails", + "calls", + "meetings", + "tasks" + ] + }, + { + "provider": "pipedrive", + "name": "Pipedrive", + "indexed_object_types": [ + "deals", + "persons", + "organizations", + "notes", + "activities", + "leads", + "projects", + "tasks" + ] + }, + { + "provider": "zendesk", + "name": "Zendesk", + "indexed_object_types": [ + "tickets", + "ticket_comments", + "satisfaction_ratings" + ] + }, + { + "provider": "gorgias", + "name": "Gorgias", + "indexed_object_types": [ + "tickets", + "messages" + ] + }, + { + "provider": "helpscout", + "name": "Help Scout", + "indexed_object_types": [ + "conversations", + "conversation_threads" + ] + }, + { + "provider": "intercom", + "name": "Intercom", + "indexed_object_types": [ + "conversations", + "conversation_parts", + "articles", + "tickets" + ], + "setup_guide": [ + "Use an Intercom private-app access token or OAuth token with Read conversations, Read and list users and companies, Read admins, Read and List articles, and Read tickets. The connector only reads.", + "Rotate a private-app token by replacing the connector secret and validating a sync before revoking the old token. OAuth installations must preserve refresh tokens and reauthorize if requested scopes or teammate visibility change.", + "Use the token of a teammate set to All conversations. Since July 2026, an OAuth token can read only conversations visible to the teammate who authorized it. Regenerate the token after changing that setting, or the index silently narrows.", + "Private teammate notes are excluded by default. When acl_supported is enabled for Intercom, each assigned conversation, conversation part and ticket is readable by its assignee and the members of its assigned team. Intercom's API does not expose which teammates can see all conversations, so this is a lower bound: such a teammate who is not the assignee or on the team is denied, never over-granted.", + "Unassigned conversations and tickets carry no ACL of their own and follow their resource. The workspace resource is public unless you set a HydraDB resource ACL on it. Help Center articles are unrestricted. An assignee or team that cannot be resolved makes no claim and carries an rbac_warning: the object then follows its resource, which is public for the workspace resource.", + "Intercom applies app/workspace rate limits and paginated-search limits that can vary by endpoint and plan. The connector honors 429 backoff; high-volume workspaces should avoid overlapping full syncs with other bulk exports." + ] + }, + { + "provider": "freshdesk", + "name": "Freshdesk", + "indexed_object_types": [ + "tickets", + "conversations" + ], + "setup_guide": [ + "Copy an agent API key from Freshdesk Profile settings and enter only the helpdesk subdomain: for acme.freshdesk.com, enter acme. The key has no scope picker and reads according to that agent's Global, Group or Restricted ticket scope.", + "Freshdesk API keys do not refresh automatically and are tied to the agent. Rotate by resetting or replacing the key, updating the connector, and validating a sync before disabling the prior agent credential.", + "Tickets and public replies become searchable and link back to the agent portal. Private agent notes are off by default because Freshdesk's per-agent visibility is not yet reproduced in HydraDB; when explicitly enabled they are indexed tenant-wide with an RBAC warning, so enable include_private_notes only when every tenant member may read them.", + "Freshdesk rate limits are account-wide and plan-dependent. The connector honors Retry-After on 429 responses; other apps in the same helpdesk consume the same quota." + ] + }, + { + "provider": "affinity", + "name": "Affinity", + "indexed_object_types": [ + "list_entries", + "notes" + ] + }, + { + "provider": "copper", + "name": "Copper", + "indexed_object_types": [ + "opportunities", + "leads", + "tasks", + "projects", + "people", + "companies", + "activities_search" + ] + }, + { + "provider": "kustomer", + "name": "Kustomer", + "indexed_object_types": [ + "conversations", + "messages" + ] + }, + { + "provider": "slack", + "name": "Slack", + "indexed_object_types": [ + "conversation_history" + ] + }, + { + "provider": "discord", + "name": "Discord", + "indexed_object_types": [ + "messages" + ], + "setup_guide": [ + "Create a Discord application and bot in the Developer Portal, reset/copy the bot token, and invite it to each server with OAuth2 scope bot. Grant View Channels and Read Message History on every selected channel; the connector is read-only and never sends messages.", + "Enable Message Content Intent under Developer Portal → Bot → Privileged Gateway Intents. The connector verifies the application flag and refuses to sync when it is absent instead of silently indexing empty content fields.", + "Pick the Discord servers to sync. Every readable message in their text and announcement channels, active threads, public archived threads, and joined private archived threads becomes a message source. User, role and channel mentions are rewritten to human display names; attachments contribute filenames but their bytes are not downloaded.", + "Discord bot tokens have no granular API scope picker and do not expire automatically. Rotate a leaked token in the Developer Portal. Discord enforces rate-limit buckets and the connector honors Retry-After before retrying.", + "Discord exposes no guild-member email addresses, so provider roles and channel overwrites cannot be mapped safely to HydraDB login emails. Under the current fail-open RBAC policy Discord sources are tenant-public with a persistent warning unless a customer HydraDB resource ACL is configured.", + "The REST history API exposes existing messages and edits but not deletion events. A deleted Discord message can remain indexed until the connector is rebuilt from a fresh snapshot; real-time deletion capture requires the Discord Gateway and is intentionally not claimed by this pull connector." + ] + }, + { + "provider": "gmail", + "name": "Gmail", + "indexed_object_types": [ + "messages" + ] + }, + { + "provider": "google_calendar", + "name": "Google Calendar", + "indexed_object_types": [ + "events" + ] + }, + { + "provider": "ms_graph", + "name": "Microsoft Teams & Outlook", + "indexed_object_types": [ + "channel_messages", + "chat_messages", + "mail_messages" + ], + "setup_guide": [ + "Connect with an Azure AD app registration (app-only, client credentials): in the Azure portal open Microsoft Entra ID → App registrations → New registration (any name, no redirect URI). Copy the Directory (tenant) ID as tenant and the Application (client) ID as client_id, then under Certificates & secrets create a client secret and paste its Value (shown once) as client_secret.", + "Under API permissions → Add a permission → Microsoft Graph → Application permissions (not Delegated) add Team.ReadBasic.All, Channel.ReadBasic.All, ChannelMessage.Read.All, TeamMember.Read.All and ChannelMember.Read.All for Teams channels, User.ReadBasic.All plus Mail.Read for Outlook, and Chat.Read.All to offer people's Teams chats, then click Grant admin consent (a Global or Application Administrator). The connect step reads the token's roles and names any permission that is missing; a family whose permissions are absent simply does not appear in the picker.", + "Reading channel and chat messages with application permissions is a Microsoft Teams protected API: after consent, submit https://aka.ms/teamsgraph/requestaccess with the Application (client) ID and tenant ID (Microsoft usually answers within a week). Until it is approved every Teams sync fails with 403 even though the permission shows as granted; the picker and Outlook work regardless.", + "Pick the teams, the mailboxes and the people whose Teams chats to sync in the resource-selection step. A team syncs its standard channels (root posts and replies each become a message document, replies linked to their root); a mailbox syncs every message received in the history window outside Drafts, Junk Email, Deleted Items, Outbox and Conversation History, with text bodies and attachment names; a chat user syncs the 1:1, group and meeting chats they take part in. Chats are opted in per person on purpose: they are the most private surface Graph exposes.", + "Every message carries who may see it in Microsoft 365: the team's members for a standard channel, the channel's members (plus the teams it is shared with) for a private or shared channel, the participants for a chat, and the mailbox owner for mail. With acl_supported on for the provider, permission-aware search shows each message only to those people. A complete roster is authoritative; when Microsoft omits, truncates or refuses a roster, the message remains tenant-public under the current fail-open policy and carries a persistent rbac_warning instead of applying a partial allow-list.", + "Mail.Read grants the app every mailbox in the tenant. To limit it to the mailboxes you select, create an Exchange application access policy (New-ApplicationAccessPolicy -AppId -PolicyScopeGroupId -AccessRight RestrictAccess); a selected mailbox outside the policy fails the sync with a message naming the policy rather than syncing silently empty. Leave Mail.Read out entirely for a Teams-only connector.", + "Private and shared channels are skipped by default (Teams shows them only to their members); set include_private_channels to true to index them, restricted to their members.", + "Each sync reads only what changed: Graph orders a channel's posts by the last activity of the whole thread, so an old post that gets a new reply is picked up, and mail is filtered server-side on lastModifiedDateTime. Edits re-index the message. A message deleted in Teams, and mail moved to Deleted Items or Junk Email after it was indexed, is replaced by a hidden stub on the next sync; mail purged from Deleted Items leaves no trace until a full re-sync.", + "Rotate the client secret before it expires (Azure defaults to 6-24 months): an expired secret stops every sync with a message naming the fix. Pasting a new secret value re-enables the connector." + ] + }, + { + "provider": "outlook", + "name": "Outlook", + "indexed_object_types": [ + "mail_messages" + ], + "setup_guide": [ + "Connect with an Azure AD app registration (app-only, client credentials): in the Azure portal open Microsoft Entra ID → App registrations → New registration (any name, no redirect URI). Copy the Directory (tenant) ID as tenant and the Application (client) ID as client_id, then under Certificates & secrets create a client secret and paste its Value (shown once) as client_secret.", + "Under API permissions → Add a permission → Microsoft Graph → Application permissions (not Delegated) add User.ReadBasic.All and Mail.Read, then click Grant admin consent (a Global or Application Administrator). The connect step fails with a message naming them when either is missing.", + "Pick the mailboxes to sync in the resource-selection step. A mailbox syncs every message received in the history window outside Drafts, Junk Email, Deleted Items, Outbox and Conversation History, with text bodies and attachment names.", + "Every email carries who may see it in Microsoft 365: the mailbox owner. With acl_supported on for the provider, permission-aware search shows each email only to that person; when the owner cannot be resolved the email remains tenant-public under the current fail-open policy and carries a persistent rbac_warning.", + "Mail.Read grants the app every mailbox in the tenant. To limit it to the mailboxes you select, create an Exchange application access policy (New-ApplicationAccessPolicy -AppId -PolicyScopeGroupId -AccessRight RestrictAccess); a selected mailbox outside the policy fails the sync with a message naming the policy rather than syncing silently empty.", + "Each sync reads only what changed: mail is filtered server-side on lastModifiedDateTime. Mail moved to Deleted Items or Junk Email after it was indexed is replaced by a hidden stub on the next sync; mail purged from Deleted Items leaves no trace until a full re-sync.", + "Rotate the client secret before it expires (Azure defaults to 6-24 months): an expired secret stops every sync with a message naming the fix. Pasting a new secret value re-enables the connector." + ] + }, + { + "provider": "microsoft_teams", + "name": "Microsoft Teams", + "indexed_object_types": [ + "channel_messages", + "chat_messages" + ], + "setup_guide": [ + "Connect with an Azure AD app registration (app-only, client credentials): in the Azure portal open Microsoft Entra ID → App registrations → New registration (any name, no redirect URI). Copy the Directory (tenant) ID as tenant and the Application (client) ID as client_id, then under Certificates & secrets create a client secret and paste its Value (shown once) as client_secret.", + "Under API permissions → Add a permission → Microsoft Graph → Application permissions (not Delegated) add Team.ReadBasic.All, Channel.ReadBasic.All, ChannelMessage.Read.All, TeamMember.Read.All, ChannelMember.Read.All and User.ReadBasic.All, plus Chat.Read.All to offer people's Teams chats, then click Grant admin consent (a Global or Application Administrator). The connect step reads the token's roles; without Chat.Read.All no chats appear in the picker.", + "Reading channel and chat messages with application permissions is a Microsoft Teams protected API: after consent, submit https://aka.ms/teamsgraph/requestaccess with the Application (client) ID and tenant ID (Microsoft usually answers within a week). Until it is approved every Teams sync fails with 403 even though the permission shows as granted; the picker works regardless.", + "Pick the teams and the people whose Teams chats to sync in the resource-selection step. A team syncs its standard channels (root posts and replies each become a message document, replies linked to their root); a chat user syncs the 1:1, group and meeting chats they take part in. Chats are opted in per person on purpose: they are the most private surface Graph exposes.", + "Every message carries who may see it in Microsoft 365: the team's members for a standard channel, the channel's members (plus the teams it is shared with) for a private or shared channel, and the participants for a chat. With acl_supported on for the provider, permission-aware search shows each message only to those people. A complete roster is authoritative; when Microsoft omits, truncates or refuses a roster, the message remains tenant-public under the current fail-open policy and carries a persistent rbac_warning instead of applying a partial allow-list.", + "Private and shared channels are skipped by default (Teams shows them only to their members); set include_private_channels to true to index them, restricted to their members.", + "Each sync reads only what changed: Graph orders a channel's posts by the last activity of the whole thread, so an old post that gets a new reply is picked up. Edits re-index the message. A message deleted in Teams after it was indexed is replaced by a hidden stub on the next sync.", + "Rotate the client secret before it expires (Azure defaults to 6-24 months): an expired secret stops every sync with a message naming the fix. Pasting a new secret value re-enables the connector." + ] + }, + { + "provider": "zoom", + "name": "Zoom", + "indexed_object_types": [ + "cloud_recordings", + "meetings", + "webinars" + ] + }, + { + "provider": "fireflies", + "name": "Fireflies", + "indexed_object_types": [ + "transcripts" + ] + }, + { + "provider": "granola", + "name": "Granola", + "indexed_object_types": [ + "notes" + ] + }, + { + "provider": "avoma", + "name": "Avoma", + "indexed_object_types": [ + "meetings", + "scorecard_evaluations" + ] + }, + { + "provider": "loom", + "name": "Loom", + "indexed_object_types": [ + "videos" + ] + }, + { + "provider": "bigquery", + "name": "BigQuery", + "indexed_object_types": [], + "setup_guide": [ + "Connect with a service-account key: paste the downloaded key file as credentials_json (grant the account the BigQuery Data Viewer and BigQuery Job User roles). client_email + private_key, or client_id + client_secret + refresh_token, also work.", + "Pick which tables to sync in the resource-selection step; each table's rows become searchable documents.", + "Replication is configured PER TABLE, alongside the selection: pass table_configs on POST /connectors/{id}/configure — the same request that selects the tables — with exactly one mode per table. The dashboard collects this on the table-selection screen.", + "Tables with a timestamp column that changes on every insert/update (updated_at, modified_ts, …): make it the sync cursor — table_configs: [{\"table\": \"dataset.table\", \"replication_key\": \"updated_at\"}] — and each sync reads only new and changed rows.", + "Append-only tables with no such column: use {\"table\": \"dataset.table\", \"change_history\": \"appends\"}. New rows stream from BigQuery's own change log — no schema change, no setup.", + "Tables that also receive UPDATEs but have no cursor column: use {\"table\": \"dataset.table\", \"change_history\": \"changes\"} instead, and run this once in BigQuery (no schema change, does not touch your data): ALTER TABLE dataset.table SET OPTIONS(enable_change_history=true).", + "Change-history backfill never blocks live syncing: changes are captured from the moment you connect, while existing rows backfill in the background in bounded slices per sync cycle. On a very large table the full backfill can take many cycles — expect it to be slow. To skip it, add \"snapshot\": \"none\" to that table's table_configs entry (only rows that change after connecting are indexed), or \"snapshot\": 10000 to cap the backfill at that many rows.", + "Fleet-wide fallbacks (optional, credential fields): a top-level \"replication_key\" applies that cursor to every synced table that has the column; \"change_history\" (\"appends\" | \"changes\") covers tables that still have no cursor. Per-table table_configs override both.", + "A table with no cursor and no change_history re-reads in full every sync cycle — fine for small reference tables, expensive for large ones. The dashboard requires a mode per table; API/SDK consumers should always send table_configs (or the fleet-wide fields)." + ] + }, + { + "provider": "google_sheets", + "name": "Google Sheets", + "indexed_object_types": [ + "spreadsheet_metadata", + "sheet_data" + ] + }, + { + "provider": "google_drive", + "name": "Google Drive", + "indexed_object_types": [ + "files" + ] + }, + { + "provider": "google_search_console", + "name": "Google Search Console", + "indexed_object_types": [ + "performance_report_query", + "performance_report_page", + "performance_report_date", + "performance_report_country", + "performance_report_device", + "performance_report_keys" + ] + }, + { + "provider": "googleads", + "name": "Google Ads", + "indexed_object_types": [ + "accessible_customers", + "customer_hierarchy", + "customer", + "customer_label", + "label", + "campaign_history", + "campaign_budget", + "campaign_criterion", + "campaign_label", + "campaign_performance", + "campaign_performance_by_age_range_and_device", + "campaign_performance_by_gender_and_device", + "campaign_performance_by_location", + "adgroups", + "ad_groups_performance", + "ad_group_ad", + "ad_group_ad_label", + "ad_group_criterion", + "ad_group_label", + "ad_listing_group_criterion", + "audience", + "user_interest", + "geo_performance", + "geo_target_constant", + "keyword_view", + "managed_placement_view", + "search_term_view", + "video", + "click_view_report" + ] + }, + { + "provider": "mixpanel", + "name": "Mixpanel", + "indexed_object_types": [ + "export", + "funnels", + "revenue", + "cohorts", + "annotations" + ] + }, + { + "provider": "amplitude", + "name": "Amplitude", + "indexed_object_types": [ + "events" + ] + }, + { + "provider": "gong", + "name": "Gong", + "indexed_object_types": [ + "calls", + "answered_scorecards", + "library_calls" + ], + "setup_guide": [ + "Connect with a Gong API key pair: in Gong's Admin center open Settings → Ecosystem → API → API keys → Get API key. Only a Gong technical administrator can create one. Copy the Access Key and the Access Key Secret (the secret is shown once) and pass them as access_key and access_key_secret.", + "When creating the key, leave the TTL empty: a key minted with an expiry stops the connector on that date and every sync after it fails with 401 until a new key is pasted. Leave Trusted IPs empty too, unless you add HydraDB's egress addresses; a list that excludes them fails every request with 403.", + "The same page shows your company's API base URL. If it is not https://api.gong.io (Gong assigns some companies their own host, e.g. https://us-12345.api.gong.io), pass it as api_base_url; only *.api.gong.io hosts are accepted.", + "Gong API keys are company-wide and have no scope picker, so there is nothing to under- or over-grant. The connector reads calls (metadata, CRM context, AI brief, outline, highlights, key points, outcome, public comments, transcript), users, workspaces, the call library and coaching scorecards; it never writes to Gong and never downloads media.", + "Pick the Gong workspaces to sync in the resource-selection step; most companies have one. Each recorded call becomes one document whose body is the transcript plus Gong's summary content; each completed coaching scorecard review becomes a document linked to its call; each call filed in a public library folder becomes a document carrying the curator's note.", + "Calls Gong marks private, and coaching reviews whose visibility is not PUBLIC, are skipped by default (Gong shows them only to their owner, participants or managers). Set include_private_calls to true to index them as well.", + "Gong publishes no modified-since filter and finishes transcripts, briefs and comments after the call itself appears, so every sync re-reads the last transcript_settle_hours (default 24) of calls and re-indexes the ones whose content changed. Raise it to catch later comments, lower it (or 0) to save requests on a very high-volume account: Gong allows 10,000 API calls per company per day, shared with every other integration you run. Because of that cap, a Gong connector syncs at most every 30 minutes (the default is hourly).", + "Not synced, because Gong's API does not expose them: emails and digital interactions, Gong Engage flows and tasks, forecasts, and deleted calls (a call removed in Gong stays indexed until the connector is re-synced from scratch)." + ] + }, + { + "provider": "guru", + "name": "Guru", + "indexed_object_types": [ + "cards" + ], + "setup_guide": [ + "Connect with a Guru API token: in Guru open Manage → Apps & Integrations → API Access and click Generate User Token (Admins, and roles with the Manage Apps & Integrations permission, can generate one, including on behalf of another user). A user token pairs the Guru username, usually the email, with the token (pass them as email and api_token) and reads exactly what that user can read; there is no scope picker. A collection token pairs the collection ID with the token (pass them as collection_id and api_token) and is read-only, scoped to that one collection; the connector then offers only that collection. Set exactly one of email or collection_id.", + "Pick the collections to sync in the resource-selection step; each card becomes one searchable document carrying its collection, folders, tags, verification state, verifiers, owner and comment count. Comment threads and replies are separate searchable comment documents linked to their card with comment_on and to their parent thread with reply_to, not embedded into the card. Each sync picks up cards edited, re-verified or commented on since the last one.", + "With permission-aware search on, each collection is restricted to the members of the Guru groups that can open it. Reading that needs the user token of a Guru Admin or of the collection's owner. With a collection token, or a member's token Guru refuses, the collection stays readable by everyone in this workspace and the connector shows a warning naming the token to use, until you reconnect with one or set an access rule on the resource.", + "Restricted (PRIVATE) cards are skipped by default: Guru shows them only to their author and the people they are shared with. Set include_private_cards to index them too; each is then indexed with exactly that audience (author and live collaborators, groups expanded to their members), enforced while permission-aware search is on. A card whose audience cannot be read completely is still indexed, with its collection's access." + ] + }, + { + "provider": "klaviyo", + "name": "Klaviyo", + "indexed_object_types": [ + "campaigns", + "flows", + "lists", + "segments", + "templates", + "profiles" + ] + }, + { + "provider": "mailchimp", + "name": "Mailchimp", + "indexed_object_types": [ + "campaigns", + "lists", + "automations" + ] + }, + { + "provider": "segment", + "name": "Segment", + "indexed_object_types": [ + "source_api_calls_daily", + "workspace_api_calls_daily", + "events_volume_daily", + "source_mtu_usage_daily", + "workspace_mtu_usage_daily" + ] + }, + { + "provider": "sendgrid", + "name": "SendGrid", + "indexed_object_types": [ + "single_sends", + "lists", + "segments", + "templates" + ] + }, + { + "provider": "iterable", + "name": "Iterable", + "indexed_object_types": [ + "campaigns", + "lists", + "templates" + ] + }, + { + "provider": "linkedin_ads", + "name": "LinkedIn Ads", + "indexed_object_types": [ + "accounts", + "account_users", + "ad_analytics_by_campaign", + "ad_analytics_by_creative", + "campaigns", + "campaign_groups", + "creatives", + "video_ads" + ] + }, + { + "provider": "surveymonkey", + "name": "SurveyMonkey", + "indexed_object_types": [ + "survey_details", + "simplified_responses" + ], + "setup_guide": [ + "Use a SurveyMonkey app access token with View Surveys (surveys_read) and View Response Details (responses_read_detail). A draft app token expires after 90 days unless the app is deployed.", + "Before a draft token expires, replace it in the connector and validate discovery and sync; deployed OAuth apps must retain their refresh-token flow and reauthorize when scopes change.", + "Pick surveys after connecting. The full questionnaire and human-readable response answers are indexed; collectors and contacts are not. Basic accounts expose at most 25 detailed responses per survey through the API, while paid plans allow the complete response history.", + "HydraDB does not currently import SurveyMonkey team sharing as ACLs. Survey questions and responses are tenant-wide unless you configure a HydraDB resource ACL for the selected survey." + ] + }, + { + "provider": "typeform", + "name": "Typeform", + "indexed_object_types": [ + "forms", + "responses", + "partial_responses" + ] + }, + { + "provider": "posthog", + "name": "PostHog", + "indexed_object_types": [ + "persons", + "cohorts", + "feature_flags", + "annotations" + ] + }, + { + "provider": "pendo", + "name": "Pendo", + "indexed_object_types": [ + "accounts", + "events", + "feature_events", + "features", + "guide_events", + "guides", + "metadata_accounts", + "metadata_visitors", + "page_events", + "pages", + "poll_events", + "track_events", + "track_types", + "visitor_history", + "visitors" + ] + }, + { + "provider": "stripe", + "name": "Stripe", + "indexed_object_types": [ + "invoices", + "customers", + "subscriptions", + "charges" + ] + }, + { + "provider": "quickbooks", + "name": "QuickBooks", + "indexed_object_types": [ + "Invoice", + "Customer", + "Payment", + "Bill", + "Attachable" + ] + }, + { + "provider": "xero", + "name": "Xero", + "indexed_object_types": [ + "invoices", + "contacts", + "payments", + "bank_transactions", + "invoice_attachments", + "contact_attachments", + "bank_transaction_attachments" + ] + }, + { + "provider": "chargebee", + "name": "Chargebee", + "indexed_object_types": [ + "invoices", + "customers", + "subscriptions", + "transactions" + ] + }, + { + "provider": "recurly", + "name": "Recurly", + "indexed_object_types": [ + "invoices", + "accounts", + "subscriptions", + "transactions" + ] + }, + { + "provider": "netsuite", + "name": "NetSuite", + "indexed_object_types": [ + "Invoice", + "Customer", + "Accounts", + "VendorBills" + ] + }, + { + "provider": "marketo", + "name": "Marketo", + "indexed_object_types": [ + "campaigns", + "programs", + "lists" + ] + }, + { + "provider": "pardot", + "name": "Pardot", + "indexed_object_types": [ + "opportunities", + "prospects", + "prospect_accounts" + ] + }, + { + "provider": "okta", + "name": "Okta", + "indexed_object_types": [ + "users", + "groups", + "applications", + "system_logs" + ], + "setup_guide": [ + "Create an API token: Okta admin console → Security → API → Tokens → Create Token. There is no scope picker and no role selector on that dialog — the token silently inherits the role of whoever creates it.", + "That inheritance is the thing to get right. To get a least-privilege token you must be signed in AS a Read-only Administrator when you mint it; minting as a Super Admin gives you a Super Admin token with nothing in the UI saying so. Check the Role column in the token list afterwards to confirm what you actually created.", + "The create form has a required dropdown, \"API calls made with this token must originate from\". Leaving it unset fails with only \"We found some errors\" and no indication of which field. Choose Any IP unless you have defined an Okta network zone covering HydraDB's egress addresses.", + "Set the org URL to your own org host, keeping the /api/v1/ path and the trailing slash: https://.okta.com/api/v1/ . The -admin host answers the API too, so either hostname works — the path and trailing slash are the part that matters.", + "Two expiry traps. The token is bound to its creating user, so deactivating that person breaks the sync with 403s. And Okta expires a token after 30 days of no use, while the admin session itself is short-lived — so mint it and paste it in one sitting.", + "Nothing is picked after connecting: Okta syncs the whole org. Users, groups, applications and system log events are indexed, with group membership, app assignments and MFA enrolment folded into the user, group and application records." + ] + }, + { + "provider": "bamboohr", + "name": "BambooHR", + "indexed_object_types": [ + "employees", + "time_off_requests", + "whos_out" + ] + }, + { + "provider": "greenhouse", + "name": "Greenhouse", + "indexed_object_types": [ + "candidates", + "applications", + "jobs", + "interviews", + "offers" + ] + }, + { + "provider": "launchdarkly", + "name": "LaunchDarkly", + "indexed_object_types": [ + "feature_flags", + "audit_log", + "segments", + "environments", + "members", + "teams" + ], + "setup_guide": [ + "Create the token in LaunchDarkly under Account settings → Authorization → Access tokens → Create token. LaunchDarkly has no scope checkboxes: a token carries a ROLE, and the role is the whole decision.", + "Set Role to Reader, which is the default. Reader is all this connector needs — verified against the API, every endpoint it calls answers 200 with a read-only token. Writer or Admin add only write access, so they buy you nothing and let a leaked token turn your flags on and off.", + "Tick \"This is a service token\". A personal token inherits the role of whoever minted it and stops working the moment that person is deactivated, which is the most common way this connection breaks. The token is shown once — copy it before closing the dialog.", + "After connecting, pick the projects to sync. Everything project-scoped follows that choice: the project's flags, its environments, and its segments.", + "Some data is account-wide and is always synced, whatever you pick: the audit log, account members and teams. Members and teams are what let a flag's maintainer resolve to a person or a group rather than a raw id.", + "Flags are indexed with their real targeting, per environment — on/off state, the default variation or percentage rollout, individual targets, prerequisite flags and each rule, including which segment a rule matches. Segments are indexed alongside, so \"who is this flag on for\" is answerable end to end.", + "Two things are deliberately never indexed. An environment's SDK key and mobile key are dropped before they leave the tap, because they are live credentials for your own environment. So are a member's MFA state and whether they have a password.", + "A brand-new LaunchDarkly organization has one empty default project and no flags, so a correctly configured connector on a new org indexes almost nothing. That is the org being empty, not the token being wrong.", + "With permission-aware search on, each project is restricted to the members who can view it in LaunchDarkly: their base role, custom roles (preset roles included), team roles and permission grants are evaluated the way LaunchDarkly does. Flags, segments and environments follow their project, and so does each audit log entry about one project; members, teams and account-level audit entries are not restricted. Invited members who have not joined yet are not included. The token's role must read projects, members, teams and custom roles (the built-in Reader can). A role this evaluation cannot read exactly makes every project readable by everyone in your workspace, with a warning on the connector naming it." + ] + }, + { + "provider": "lever", + "name": "Lever", + "indexed_object_types": [ + "opportunities", + "candidates", + "postings", + "contacts", + "candidate_applications", + "candidate_referrals" + ] + }, + { + "provider": "workday_raas", + "name": "Workday RaaS", + "indexed_object_types": [ + "workers", + "employees" + ] + }, + { + "provider": "crossbeam", + "name": "Crossbeam", + "indexed_object_types": [ + "account", + "lead", + "partner_account", + "partner_lead" + ] + }, + { + "provider": "figma", + "name": "Figma", + "indexed_object_types": [ + "files" + ] + }, + { + "provider": "dropbox", + "name": "Dropbox", + "indexed_object_types": [ + "files" + ] + }, + { + "provider": "box", + "name": "Box", + "indexed_object_types": [ + "folder_items" + ] + }, + { + "provider": "tableau", + "name": "Tableau", + "indexed_object_types": [ + "datasources", + "groups", + "projects", + "schedules", + "tasks", + "users", + "workbooks", + "workbooks_metadata", + "published_datasources_metadata", + "embedded_datasources_metadata", + "custom_sql_locations_metadata", + "users_metadata", + "calculated_fields_metadata", + "column_lineage_metadata" + ] + }, + { + "provider": "dynamics", + "name": "Microsoft Dynamics 365", + "indexed_object_types": [ + "accounts", + "contacts", + "leads", + "opportunities" + ] + }, + { + "provider": "outreach", + "name": "Outreach", + "indexed_object_types": [ + "opportunities", + "prospects", + "accounts", + "tasks" + ] + }, + { + "provider": "ringcentral", + "name": "RingCentral", + "indexed_object_types": [ + "messages", + "call_logs" + ] + }, + { + "provider": "twilio", + "name": "Twilio", + "indexed_object_types": [ + "messages", + "calls", + "conferences", + "alerts" + ] + }, + { + "provider": "servicenow", + "name": "ServiceNow", + "indexed_object_types": [ + "kb_knowledge", + "sc_cat_item", + "incident", + "problem", + "change_request", + "sc_request", + "sc_req_item", + "sc_task" + ] + }, + { + "provider": "codat", + "name": "Codat", + "indexed_object_types": [ + "invoices", + "customers", + "bills", + "payments" + ] + }, + { + "provider": "calendly", + "name": "Calendly", + "indexed_object_types": [ + "scheduled_events" + ] + }, + { + "provider": "attio", + "name": "attio", + "indexed_object_types": [ + "records", + "list_entries", + "notes", + "tasks", + "comments", + "list_entry_comments", + "meetings", + "call_transcripts" + ], + "setup_guide": [ + "Connect with a workspace API key: Attio workspace settings → Developers → API keys. The key is static and does not expire, so this connection never needs reconnecting.", + "Grant the key the read scopes for records, objects, lists, list entries, notes, tasks, comments and users. A key missing a scope fails with a 403 that names it — granting them all up front is faster than finding out one at a time.", + "Pass the key as access_token. Objects (people, companies, deals, custom ones) and lists are picked in the resource-selection step after connecting — leaving the objects/lists credential fields empty is the normal path.", + "With permission-aware search on, a private list's entries are restricted to the workspace's admins and the members the list is shared with; a list shared with the whole workspace, and every record, note, task, comment and meeting, is readable by everyone in your workspace. Attio's API does not expose team grants, so a member who reaches a list only through a team does not see it here. The key needs the List Configuration: Read and User Management: Read scopes; without them the list is readable by everyone, with a warning, until you reconnect." + ] + }, + { + "provider": "eloqua", + "name": "eloqua", + "indexed_object_types": [ + "campaigns", + "emails", + "forms" + ] + }, + { + "provider": "ga4", + "name": "Google Analytics", + "indexed_object_types": [ + "website_overview", + "traffic_sources", + "locations", + "four_weekly_active_users", + "weekly_active_users", + "daily_active_users", + "devices", + "transactions", + "pages" + ] + }, + { + "provider": "twitter", + "name": "twitter", + "indexed_object_types": [ + "posts", + "dms" + ], + "setup_guide": [ + "You bring your own X developer app: X bills API reads per record to the app owner ($0.005/post, $0.010/user read), so the connector never fronts a shared app.", + "Posts only (recommended): in the X developer portal open Projects & Apps → your app, and complete 'User authentication settings' once if it is empty — that is what creates the app's OAuth 2.0 client. Then on the Keys and tokens page, in the 'OAuth 2.0 Client ID and Client Secret' section, copy the Client ID and Generate the Client Secret (X shows it only once) — pass them as client_id and client_secret. Do NOT use the API Key and API Key Secret listed above them: those are OAuth 1.0a keys and will not work. The connector mints its own app-only token from them on every sync; nothing expires, so this connection never needs reconnecting. Add the handles to follow (any public account).", + "Direct messages additionally need an OAuth2 user-context token — X serves DMs to no other auth scheme. First set the app's permissions to 'Read and write and Direct message' (User authentication settings): that setting is what allows the dm.read scope to be granted at all, and changing it later invalidates tokens already issued. Set the app type to the confidential-client option (Web App, Automated App or Bot) so the app has a client secret — both the app-only mint and token refresh require one.", + "Then, for your own account, generate the token pair straight from the portal: the Keys and tokens page has an OAuth 2.0 token generator — pick the scopes (dm.read tweet.read users.read offline.access) and it returns the access token and refresh token together. offline.access is the scope that produces the refresh token. To read a DIFFERENT account's inbox, that account must instead complete the authorization-code flow against your app once, since the portal only issues tokens for the logged-in account.", + "Pass the resulting tokens as access_token AND refresh_token, alongside client_id and client_secret. The access token expires after ~2 hours; the refresh token is what lets the platform renew it indefinitely. A DM connector without refresh_token stops syncing when the access token expires.", + "DM ingest is an explicit opt-in: even with a user token, the inbox appears as its own resource in the selection step and is never synced unless selected.", + "History limits are X's, not ours: the DM API serves only the most recent 30 days of events, so a DM backfill reaches back at most 30 days (the dashboard caps the history window accordingly); post timelines reach roughly the 3,200 most recent posts per account.", + "Spend guards: max_posts_per_account_per_sync (default 500) and max_dms_per_sync (default 1000) cap billed reads per sync and log a warning when hit; sync_profiles is off by default because a user read costs double a post read." + ] + }, + { + "provider": "uservoice", + "name": "uservoice", + "indexed_object_types": [ + "suggestions", + "comments" + ] + }, + { + "provider": "zoho-crm", + "name": "Zoho CRM", + "indexed_object_types": [ + "deals", + "leads", + "contacts", + "accounts", + "notes" + ] + }, + { + "provider": "zuora", + "name": "zuora", + "indexed_object_types": [ + "Invoice", + "Account", + "Subscription", + "Payment" + ] + }, + { + "provider": "supabase", + "name": "Supabase", + "indexed_object_types": [], + "summary": "Selected table row changes arrive through database webhooks. There is no history backfill.", + "setup_guide": [ + "List the tables you want indexed, one per line, as schema.table, for example public.customers. Always include the schema.", + "In your Supabase project, install the Database Webhooks integration if it is not already installed.", + "Establish the connection in the HydraDB dashboard, then select the tables you want to sync.", + "Run the SQL command generated by the dashboard in the Supabase SQL editor to add a trigger for each table. Replace the API key placeholder with your HydraDB API key.", + "Only changes made after connecting are reflected. Existing rows are sent when they are updated; there is no historical backfill." + ] + } + ] +} diff --git a/scripts/generate_connector_pages.py b/scripts/generate_connector_pages.py new file mode 100644 index 00000000..b2054ebf --- /dev/null +++ b/scripts/generate_connector_pages.py @@ -0,0 +1,95 @@ +import argparse +import html +import json +from pathlib import Path +import re + + +ROOT = Path(__file__).resolve().parents[1] +SNAPSHOT = ROOT / "scripts/connector_capabilities.json" +DIRECTORY = ROOT / "essentials/v2/connectors" +INDEX = ROOT / "essentials/v2/connector-providers.mdx" + + +def prose(value): + escaped = html.escape(re.sub(r"\s*\u2014\s*", "; ", value), quote=False).replace("{", "{").replace("}", "}") + escaped = re.sub(r"https?://[^\s]*<[^\s]*", lambda match: f"`{html.unescape(match.group())}`", escaped) + return re.sub(r"<([A-Za-z_][\w-]*)>", r"`<\1>`", escaped) + + +def pages(): + snapshot = json.loads(SNAPSHOT.read_text()) + providers = sorted(snapshot["providers"], key=lambda item: item["name"].casefold()) + output = {} + for provider in providers: + identifier = provider["provider"] + name = provider["name"] + lines = [ + "---", f"title: {json.dumps(name)}", + f"description: {json.dumps(f'What HydraDB syncs from {name}, and how to connect it.')}", + "---", "", f"Use the {prose(name)} connector to bring the following content into HydraDB.", + "", "## What syncs", "", + ] + if provider.get("summary"): + lines.append(prose(provider["summary"])) + types = provider["indexed_object_types"] + if types: + lines.append("The provider description lists these indexed object types:") + lines.append("") + lines.extend(f"- `{kind}`" for kind in types) + elif not provider.get("summary"): + lines.append("The provider description does not enumerate fixed indexed object types. Use the setup notes below when available; the resource picker shows what your connection can select.") + lines.extend(["", "## Connect", ""]) + if provider.get("setup_guide"): + lines.extend(f"{number}. {prose(step)}" for number, step in enumerate(provider["setup_guide"], 1)) + lines.append("") + if identifier == "supabase": + lines.append("Follow the Supabase connection flow in the dashboard. This is a push connector; the webhook triggers, not a polling credential, deliver changes.") + else: + lines.append(f"Use provider `{identifier}` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment.") + lines.extend([ + "", "## Common mistakes", "", + "- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read.", + "- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed.", + "", "## Related", "", + "- [Connector providers](/essentials/v2/connector-providers)", + "- [Connectors](/essentials/v2/connectors): setup, sync, and access control", + "- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings", "", + ]) + output[DIRECTORY / f"{identifier.replace('_', '-')}.mdx"] = "\n".join(lines) + lines = [ + "---", 'title: "Connector providers"', + 'description: "See what each connector indexes before you connect an account."', "---", "", + "Choose a provider to see the indexed object types and any provider-specific setup steps. These pages describe content capabilities; availability and credentials come from your deployment's [provider catalog](/api-reference/v2/endpoint/list-connector-providers).", "", + "| Provider | Indexed object types (examples) |", "| --- | --- |", + ] + for provider in providers: + slug = provider["provider"].replace("_", "-") + types = provider["indexed_object_types"] + summary = ", ".join(f"`{kind}`" for kind in types[:3]) + if len(types) > 3: + summary += ", and more" + if not summary: + summary = "See provider page" + lines.append(f"| [{provider['name']}](/essentials/v2/connectors/{slug}) | {summary} |") + lines.extend(["", "## Related", "", "- [Connectors](/essentials/v2/connectors): shared setup and sync workflow", ""]) + output[INDEX] = "\n".join(lines) + return output + + +if __name__ == "__main__": + parser = argparse.ArgumentParser() + parser.add_argument("--check", action="store_true") + args = parser.parse_args() + generated = pages() + if args.check: + stale = [str(path.relative_to(ROOT)) for path, content in generated.items() + if not path.exists() or path.read_text() != content] + extra = set(DIRECTORY.glob("*.mdx")) - generated.keys() + if stale or extra: + raise SystemExit(f"Connector pages are stale: {stale + sorted(str(path.relative_to(ROOT)) for path in extra)}") + print(f"{len(generated) - 1} connector pages match the capability snapshot") + else: + DIRECTORY.mkdir(parents=True, exist_ok=True) + for path, content in generated.items(): + path.write_text(content) diff --git a/scripts/test_connector_pages.py b/scripts/test_connector_pages.py new file mode 100644 index 00000000..4517cc5b --- /dev/null +++ b/scripts/test_connector_pages.py @@ -0,0 +1,61 @@ +import json +import re +import unittest + +from generate_connector_pages import DIRECTORY, ROOT, SNAPSHOT, pages, prose +from generate_llms_index import page_paths + + +class ConnectorPagesTest(unittest.TestCase): + def test_setup_placeholders_and_json_are_safe_mdx(self): + self.assertEqual("Use ``", prose("Use ")) + self.assertEqual("`https://.okta.com/api/v1/`", prose("https://.okta.com/api/v1/")) + self.assertEqual('{"table": "a.b"}', prose('{"table": "a.b"}')) + + def test_provider_pages_match_the_source_snapshot(self): + generated = pages() + for path, content in generated.items(): + with self.subTest(page=str(path.relative_to(ROOT))): + self.assertEqual(content, path.read_text()) + self.assertEqual(set(DIRECTORY.glob("*.mdx")), set(generated) - {ROOT / "essentials/v2/connector-providers.mdx"}) + + def test_every_provider_page_is_registered_and_linked_from_the_catalog(self): + config = json.loads((ROOT / "docs.json").read_text()) + registered = page_paths(config["navigation"]["versions"][0]) + index = (ROOT / "essentials/v2/connector-providers.mdx").read_text() + for path in DIRECTORY.glob("*.mdx"): + slug = str(path.relative_to(ROOT).with_suffix("")) + self.assertIn(slug, registered) + self.assertIn(f"](/{slug})", index) + self.assertIn("/essentials/v2/connector-providers", (ROOT / "essentials/v2/connectors.mdx").read_text()) + + def test_snapshot_records_source_commits_and_preserves_unknown_object_types(self): + snapshot = json.loads(SNAPSHOT.read_text()) + provenance = snapshot["provenance"] + self.assertTrue(provenance["application"]["commit"].startswith("d76958b5")) + self.assertTrue(provenance["dashboard"]["commit"].startswith("f611226e")) + self.assertRegex(provenance["export_sha256"], r"^[a-f0-9]{64}$") + providers = {provider["provider"]: provider for provider in snapshot["providers"]} + self.assertEqual(98, len(providers)) + for identifier in ("airtable", "bigquery", "smartsheet", "supabase"): + self.assertEqual([], providers[identifier]["indexed_object_types"]) + self.assertNotIn("zoho", providers) + self.assertNotIn("googleanalytics", providers) + self.assertEqual("Zoho CRM", providers["zoho-crm"]["name"]) + self.assertEqual("Google Analytics", providers["ga4"]["name"]) + self.assertIn("no history backfill", providers["supabase"]["summary"].lower()) + + def test_provider_pages_list_only_the_exact_indexed_object_types(self): + snapshot = json.loads(SNAPSHOT.read_text()) + for provider in snapshot["providers"]: + slug = provider["provider"].replace("_", "-") + text = (DIRECTORY / f"{slug}.mdx").read_text() + section = text.split("## What syncs\n", 1)[1].split("## Connect", 1)[0] + with self.subTest(provider=provider["provider"]): + self.assertEqual(provider["indexed_object_types"], re.findall(r"^- `([^`]+)`$", section, re.M)) + monday = (DIRECTORY / "monday.mdx").read_text() + self.assertIn("fails open with a persistent warning", monday) + + +if __name__ == "__main__": + unittest.main() diff --git a/scripts/test_cookbooks.py b/scripts/test_cookbooks.py index 26109276..975384a1 100644 --- a/scripts/test_cookbooks.py +++ b/scripts/test_cookbooks.py @@ -141,6 +141,7 @@ def create(self, database, database_metadata_schema=None): def database_status(self, database): return sdk.HandlerEnvelopeTenantsInfraStatusResponseV2( data=sdk.TenantsInfraStatusResponseV2( + database=database, infra=sdk.TenantsInfraV2(ready_for_ingestion=True) ) ) @@ -222,11 +223,12 @@ def connector_update_resource(self, id, resource_id, request): return {"connector_id": id, "resource_id": resource_id, **request} def connector_discover(self, id, cursor=None, limit=None): - self.connector(id) + connector = self.connector(id) self.test.assertLessEqual(limit or 100, 100) pages = self.discovered index = 0 if cursor is None else int(cursor) return sdk.HandlerDiscoverResponseBody( + provider=connector.provider, resources=[sdk.HandlerDiscoveredResourceDto(id=r, resource_type="channel", name=r.lower()) for r in pages[index]], has_more=index + 1 < len(pages), @@ -246,7 +248,7 @@ def connector_configure(self, id, resources, lookback_days=None): test.assertIsNotNone(resource.get("acl"), f"{connector.provider} captures no permissions: set acl on its resources") self.configured[id] = resources - return sdk.HandlerConfigureResponse() + return sdk.HandlerConfigureResponse(connector_id=id) def ingest(self, type, database, collection, documents=None, document_metadata=None, memories=None): # No app_knowledge: app content comes through connectors. @@ -356,11 +358,20 @@ def test_cursor_search_preserves_graph_linked_context_and_file_paths(self): "additional_metadata": {"path": "src/auth.py"}, "path": "src/auth.py", }], "graph_context": {"query_paths": [{"combined_context": "Router calls validate_token."}]}, - "additional_context": {"policy": { + "additional_graph_context": {"policy": { "id": "policy", "chunk_content": "Service tokens require the admin scope.", }}, }, context) + canonical = {"canonical_policy": {"id": "canonical_policy", "chunk_content": "Use MFA."}} + result = NS(data=NS(json=lambda **kwargs: json.dumps({ + "chunks": [], "graph_context": {}, + "additional_graph_context": canonical, + "additional_context": {"legacy_policy": {"id": "legacy_policy"}}, + }))) + context = json.loads(scope["search_code"]("How is authentication enforced?")) + self.assertEqual(canonical, context["additional_graph_context"]) + @staticmethod def optional_credentials(source): """Environment variables for providers a cookbook connects only when they are set.""" diff --git a/scripts/test_docs_consistency.py b/scripts/test_docs_consistency.py index bc67a9b3..60741f17 100644 --- a/scripts/test_docs_consistency.py +++ b/scripts/test_docs_consistency.py @@ -114,6 +114,130 @@ def test_recall_pages_use_correct_spelling(self): INDEXING_STATUSES = ["queued", "processing", "graph_creation", "completed", "errored"] +class UnifiedNarrativeTest(unittest.TestCase): + def read(self, relative): + return (ROOT / relative).read_text(encoding="utf-8") + + def test_memory_scope_is_derived_from_the_signed_in_session(self): + text = self.read("essentials/v2/context.mdx") + memory = text.split("## Ingesting memory", 1)[1].split("## Wait for indexing", 1)[0] + self.assertIn("signed-in session", memory) + self.assertIn("does not authenticate", memory) + self.assertIn("every ingest, status check, and query", memory) + self.assertIn("`infer: true` (default)", memory) + self.assertIn("`infer: false`", memory) + + def test_legacy_memory_instructions_are_not_public_guidance(self): + for relative in ( + "essentials/v2/context.mdx", + "api-reference/v2/endpoint/ingest-context.mdx", + "cookbooks/v2/personal-assistant.mdx", + ): + self.assertNotIn("custom_instructions", self.read(relative), relative) + guide = self.read("AGENTS.mdx") + memories = guide.split("### Memories")[-1].split("## 7.", 1)[0] + self.assertNotIn("custom_instructions", memories) + self.assertIn("`custom_instructions` on the connector", guide) + self.assertIn("custom_instructions", self.read("essentials/v2/connectors.mdx")) + + def test_query_names_and_defaults_match_the_canonical_contract(self): + for relative in ( + "AGENTS.mdx", + "essentials/v2/query.mdx", + "api-reference/v2/endpoint/query.mdx", + ): + text = self.read(relative) + with self.subTest(relative=relative): + self.assertIn("query_explicit_relations", text) + self.assertIn("additional_graph_context", text) + self.assertIn("data.additional_graph_context", text) + self.assertNotRegex(text, r'(?:Default|default|omitted means)[^\n|]*`0\.4`') + reference = self.read("api-reference/v2/endpoint/query.mdx") + self.assertRegex(reference, r'name="type"[^\n]*default=`"all"`') + self.assertRegex(reference, r'name="recency_bias"[^\n]*default=`0\.6`') + self.assertIn('name="query_explicit_relations"', reference) + self.assertIn('name="additional_graph_context"', reference) + self.assertIn("request-time hint", reference) + self.assertIn("response map", reference) + context = self.read("essentials/v2/context.mdx") + self.assertIn("`relations.ids`", context) + self.assertNotIn("`explicit_relations`", context) + + def test_cli_authentication_does_not_require_a_database_or_key_in_argv(self): + text = self.read("plugins/cli.mdx") + self.assertIn("hydradb login\n", text) + self.assertNotIn("hydradb login --", text) + self.assertNotIn("--api-key", text) + self.assertIn("masked prompt", text) + self.assertIn("`0600`", text) + self.assertIn("hydradb database list", text) + self.assertIn("hydradb config set database my-db", text) + self.assertIn("hydradb database create my-db", text) + self.assertIn("### Deprecated aliases", text) + self.assertIn("### Persistent configuration", text) + self.assertIn("`--kind`", text) + self.assertIn("knowledge text", text.split("| `--markdown`", 1)[1].split("\n", 1)[0]) + self.assertIn("| `--additional-graph-context`", text) + self.assertIn("`--additional_graph_context` is also accepted", text) + self.assertIn("`response_warnings`", text) + self.assertIn("effective `scope`", text) + + def test_client_auto_selection_is_not_documented_as_a_backend_wire_type(self): + context = self.read("essentials/v2/context.mdx") + self.assertIn("client-side selection", context) + self.assertIn("defaults to `type=knowledge`", context) + self.assertIn("`auto` is not an API wire value", context) + self.assertNotIn("`type=traces`", context) + self.assertIn("default is `\"knowledge\"`", self.read("AGENTS.mdx")) + self.assertIn('default=`"knowledge"`', self.read("api-reference/v2/endpoint/ingest-context.mdx")) + + def test_mcp_api_key_connection_can_choose_its_scope_after_authentication(self): + text = self.read("plugins/mcp.mdx") + quickstart = text.split("## Configuration", 1)[0] + self.assertNotIn('"X-HydraDB-Database"', quickstart) + self.assertNotIn('"HYDRADB_DATABASE"', quickstart) + self.assertIn("hydradb_databases", text) + self.assertIn("hydradb_database_create", text) + self.assertNotIn("names no database is refused", text) + self.assertIn("`scope_notice`", text) + self.assertIn("`warnings_omitted`", text) + self.assertIn("rejected before an API call", text) + + def test_repaired_local_links_have_stable_targets(self): + links = { + "essentials/v2/context.mdx": ("link-sources-deterministically", "## Link sources deterministically"), + "essentials/v2/connectors.mdx": ("6-connect-several-accounts-from-one-provider", "## 6. Connect several accounts from one provider"), + "essentials/v2/metadata-2.mdx": ("metadata-and-additional-metadata", "## Metadata and additional metadata"), + "plugins/cli.mdx": ("persistent-configuration", "### Persistent configuration"), + "plugins/mcp.mdx": ("api-key-headers", "### API key headers"), + } + for relative, (anchor, target) in links.items(): + text = self.read(relative) + with self.subTest(relative=relative): + self.assertIn(f"](#{anchor})", text) + self.assertIn(target, text) + + def test_byog_endpoints_have_navigable_reference_pages(self): + routes = { + "byog-query-managed": "POST /byog", + "byog-query": "POST /byog/query", + "byog-create-database": "POST /byog/databases", + "byog-delete-database": "DELETE /byog/databases", + "byog-list-collections": "GET /byog/collections", + "byog-delete-collection": "DELETE /byog/collections", + } + config = self.read("docs.json") + for page, operation in routes.items(): + relative = f"api-reference/v2/endpoint/{page}" + text = self.read(f"{relative}.mdx") + with self.subTest(operation=operation): + self.assertIn(f'"{relative}"', config) + self.assertIn(f'openapi: "api-reference/v2/openapi.json {operation}"', text) + self.assertIn("", text) + self.assertIn("$HYDRADB_API_KEY", text) + self.assertIn("## Related resources", text) + + class SharedFactsTest(unittest.TestCase): def read(self, relative): return (ROOT / relative).read_text(encoding="utf-8") diff --git a/scripts/test_docs_examples.py b/scripts/test_docs_examples.py index ab03217f..542e501d 100644 --- a/scripts/test_docs_examples.py +++ b/scripts/test_docs_examples.py @@ -83,7 +83,7 @@ def resolve(schema): # Documented fields the generated spec does not declare yet. The spec is synced # from the application and is never edited by hand, so a field whose release is # pending is listed here until the sync brings it in. Remove the entry then. -PENDING_SPEC_FIELDS = {".acl_inherit"} # PATCH /context/{id}/metadata +PENDING_SPEC_FIELDS = set() def unknown_keys(value, schema, path=""): @@ -179,6 +179,8 @@ def respond(self, template, method, query, body): if key == ("GET", "/databases/status"): return 200, envelope({"database": query["database"][0], "infra": {"ready_for_ingestion": True}}) + if key == ("GET", "/databases/{database}/metadata-schema"): + return 200, envelope({"database": "acme_corp", "fields": []}) if key == ("POST", "/context/ingest"): items = json.loads(body.get("memories") or body.get("document_metadata") or "[{}]") @@ -202,10 +204,19 @@ def respond(self, template, method, query, body): return 200, envelope({"feedback_id": "fb_1"}) if key == ("POST", "/connectors"): return 201, {"connector_id": "conn_1", "provider": body.get("provider"), "status": "active"} + if key == ("GET", "/connectors/providers"): + if query.get("id"): + return 200, {"provider": query["id"][0], "connector_type": query["id"][0], + "indexed_object_types": [], "searchable_fields": [], "filterable_fields": []} + return 200, {"providers": []} if key == ("GET", "/connectors/{id}/discover"): - return 200, {"resources": [{"id": "C1", "resource_type": "channel", "name": "general"}]} + return 200, {"provider": "slack", "resources": [{"id": "C1", "resource_type": "channel", "name": "general"}]} if key == ("POST", "/connectors/{id}/configure"): - return 200, {} + return 200, {"connector_id": "conn_1"} + if key == ("PATCH", "/connectors/{id}"): + return 200, {"connector_id": "conn_1"} + if key == ("PATCH", "/connectors/{id}/resources/{resource_id}"): + return 200, {"connector_id": "conn_1", "resource_id": "C1", **body} if key == ("GET", "/connectors/{id}/status"): return 200, {"connector_id": "conn_1", "status": "active"} if key == ("GET", "/context/inspect"): From b601a1cb7bebb3477cd402363de985aa22c21843 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Sun, 15 Nov 2026 21:38:27 +0000 Subject: [PATCH 07/33] Update navigation - Updated docs.json Mintlify-Source: dashboard-editor Signed-off-by: SohamRatnaparkhi <92905626+SohamRatnaparkhi@users.noreply.github.com> --- docs.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs.json b/docs.json index d9885bdd..8e825005 100644 --- a/docs.json +++ b/docs.json @@ -240,15 +240,6 @@ "api-reference/v2/endpoint/delete-source" ] }, - { - "group": "Query", - "public": true, - "pages": [ - "api-reference/v2/endpoint/query-overview", - "api-reference/v2/endpoint/query", - "api-reference/v2/endpoint/submit-feedback" - ] - }, { "group": "Connectors", "public": true, @@ -264,6 +255,15 @@ "api-reference/v2/endpoint/update-connector-resource" ] }, + { + "group": "Query", + "public": true, + "pages": [ + "api-reference/v2/endpoint/query-overview", + "api-reference/v2/endpoint/query", + "api-reference/v2/endpoint/submit-feedback" + ] + }, { "group": "Webhooks", "public": true, From f0955a391334c856f6bfd185309bb025bc24dcdd Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Sun, 15 Nov 2026 21:39:27 +0000 Subject: [PATCH 08/33] Create Bring Your Own Graph (copy) - Created essentials/v2/bring-your-own-graph-3.mdx - Updated docs.json Mintlify-Source: dashboard-editor Signed-off-by: SohamRatnaparkhi <92905626+SohamRatnaparkhi@users.noreply.github.com> --- docs.json | 3 +- essentials/v2/bring-your-own-graph-3.mdx | 716 +++++++++++++++++++++++ 2 files changed, 718 insertions(+), 1 deletion(-) create mode 100644 essentials/v2/bring-your-own-graph-3.mdx diff --git a/docs.json b/docs.json index 8e825005..e347f593 100644 --- a/docs.json +++ b/docs.json @@ -71,7 +71,8 @@ "essentials/v2/context", "essentials/v2/connectors", "essentials/v2/query", - "essentials/v2/bring-your-own-graph" + "essentials/v2/bring-your-own-graph", + "essentials/v2/bring-your-own-graph-3" ] }, { diff --git a/essentials/v2/bring-your-own-graph-3.mdx b/essentials/v2/bring-your-own-graph-3.mdx new file mode 100644 index 00000000..02a2c7dd --- /dev/null +++ b/essentials/v2/bring-your-own-graph-3.mdx @@ -0,0 +1,716 @@ +--- +title: "Bring Your Own Graph (copy)" +description: "Complete guide to build a graph from scratch in Cypher. Considering switching to HydraDB from a different graph store? Read this guide." +--- + +If you are moving from an existing graph database, start at [Migrate from Neo4j or another Cypher-compatible database](#migrate-from-neo4j-or-another-cypher-compatible-database). To bring your own entities and relations without writing Cypher, attach them to a source at ingest: see section [Use BYOG without Cypher](#use-byog-without-cypher). + +## Quickstart + +Create a database, write two nodes, and read them back: + +```bash +BASE=https://api.hydradb.com +KEY="your-api-key" + +# 1. Create a database (check the returned status before querying) +curl -X POST "$BASE/byog/databases" \ + -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ + -d '{"database": "crm"}' + +# 2. Write data - the collection is created on first write +curl -X POST "$BASE/byog/query" \ + -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ + -d '{ + "database": "crm", + "collection": "contacts", + "query": "UNWIND $rows AS row CREATE (p:Person) SET p = row RETURN count(p) AS created", + "params": {"rows": [{"name": "Alice", "role": "admin"}, + {"name": "Bob", "role": "analyst"}]} + }' + +# 3. Read it back +curl -X POST "$BASE/byog/query" \ + -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ + -d '{ + "database": "crm", + "collection": "contacts", + "query": "MATCH (p:Person) RETURN p.name AS name, p.role AS role ORDER BY name" + }' +``` + +Agents can run the same Cypher through the [HydraDB MCP](/plugins/mcp) graph tools (`hydradb_graph_query`, `hydradb_graph_collections`, `hydradb_graph_admin`). + +## Authentication + +Every request needs your HydraDB API key: + +```text +Authorization: Bearer +``` + +A missing or invalid key returns `403`. Your databases are visible only to your organization: another organization's databases look like names that do not exist, and `MATCH (n) RETURN n` returns only your own nodes. + +## Endpoints + +### `POST /byog/databases`: create a database + +A database groups your collections. Check the returned `status`: `ready` means you can query it now; `provisioning` means you need to wait for [Database Status](/api-reference/v2/endpoint/database-status) to report readiness. A database created with the standard `POST /databases` can also hold graph collections. Creating a name that already exists returns `409`. + + + +```bash Request +curl -X POST "$BASE/byog/databases" \ + -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ + -d '{"database": "crm"}' +``` + +```json Response +{ + "success": true, + "data": { "database": "crm", "status": "ready", "cluster": "shared" }, + "error": null, + "meta": { "request_id": "9280b5f7-…", "api_version": "2.0.1", "latency_ms": 90.8 } +} +``` + + + +### `POST /byog/query`: run Cypher + + + +```bash Request +curl -X POST "$BASE/byog/query" \ + -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ + -d '{ + "database": "crm", + "collection": "contacts", + "query": "CREATE (n:Person {name: $name}) RETURN n", + "params": {"name": "Alice"} + }' +``` + +```json Response +{ + "success": true, + "data": [ + { "n": { "id": 0, "labels": ["Person"], "name": "Alice" } } + ], + "error": null, + "meta": { "request_id": "0f345406-…", "api_version": "2.0.1", "latency_ms": 142.4 } +} +``` + + + +- Each collection is an isolated graph. A query runs against one collection and cannot see data in any other. +- Collections are created automatically on the first write. Reading a collection that does not exist yet returns zero rows. +- Pass user data through `params` instead of building it into the query string. +- Collection names can use letters, digits, `_` and `-`, must start with a letter or digit, and can be up to 64 characters long. + +### `GET /byog/collections`: list collections + +An unknown database returns `404`. + + + +```bash Request +curl "$BASE/byog/collections?database=crm" \ + -H "Authorization: Bearer $KEY" +``` + +```json Response +{ + "success": true, + "data": { "database": "crm", "collections": ["contacts", "sample"] }, + "error": null, + "meta": { "request_id": "d4744632-…", "api_version": "2.0.1", "latency_ms": 55.6 } +} +``` + + + +### `DELETE /byog/collections`: drop one collection + +Drops the collection and all its data. Deleting a collection that does not exist also succeeds. + + + +```bash Request +curl -X DELETE "$BASE/byog/collections" \ + -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ + -d '{"database": "crm", "collection": "contacts"}' +``` + +```json Response +{ + "success": true, + "data": { "database": "crm", "collection": "contacts", "deleted": true }, + "error": null, + "meta": { "request_id": "d7b2b080-…", "api_version": "2.0.1", "latency_ms": 131.1 } +} +``` + + + +### `DELETE /byog/databases`: drop a database + +Drops the graph collections and, if created through `POST /byog/databases`, the database itself. For a database created through the standard database API, the graph collections are dropped, `deleted` is `false`, and the database stays. Use the standard `DELETE /databases` to remove that database. + + + +```bash Request +curl -X DELETE "$BASE/byog/databases" \ + -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ + -d '{"database": "crm"}' +``` + +```json Response +{ + "success": true, + "data": { + "database": "crm", + "cluster": "shared", + "deleted": true, + "deleted_collections": ["contacts", "sample"] + }, + "error": null, + "meta": { "request_id": "1ba6ecb8-…", "api_version": "2.0.1", "latency_ms": 130.8 } +} +``` + + + +## Supported Cypher + +All of openCypher is supported except server-side procedures and file loading. + +### Modeling and CRUD + +- Create, read, update and delete: `CREATE`, `MATCH`, `MERGE`, `SET`, `REMOVE`, `DELETE` / `DETACH DELETE` +- Pattern matching, `WHERE` filters, aggregation, `ORDER BY` / `SKIP` / `LIMIT` +- `UNWIND` and `WITH` pipelines +- Indexes: `CREATE INDEX FOR (n:Label) ON (n.prop)` +- `CALL { ... }` subqueries + +### Graph traversal and exploration + +- **Multi-hop patterns:** chain relationships in one `MATCH`: `MATCH (a:Person)-[:KNOWS]->(b)-[:WORKS_AT]->(c:Company) RETURN c.name`. +- **Variable-length traversal:** follow a relationship a bounded or unbounded number of hops with `*`: `MATCH (a:Person {name:$n})-[:KNOWS*1..4]->(reach) RETURN DISTINCT reach.name`. +- **Neighborhood expansion:** a node's edges and neighbors in any direction: `MATCH (p:Person {name:$n})-[r]-(nbr) RETURN type(r) AS rel, nbr.name AS neighbor`. +- **Path finding:** `shortestPath` returns the full path (nodes and edges in traversal order), not only the endpoints. +- **Directed, typed, filtered traversal:** outgoing (`->`), incoming (`<-`) or either (`-`) edges, filtered by relationship type and by node or edge properties anywhere along the walk. + +### Not supported + +These are rejected with `400` before the query runs; nothing is executed, and retrying the same query fails the same way: + +- **Procedure calls:** `CALL some.procedure(...)`, including `db.*` and `apoc.*`. `CALL { ... }` subqueries are supported. +- **`LOAD CSV`:** send data through `params` instead. + +### Dialect notes + +- **Existence checks** are bare pattern predicates: `MATCH (p:Person) WHERE (p)-[:KNOWS]->() RETURN p.name AS name`. The `EXISTS { ... }` block form and the `exists()` function are not accepted. +- **`shortestPath`** goes in a `RETURN` or `WITH` clause (not `MATCH p = …`) and the traversal must be directed. + +## Common Cypher queries + +Each query runs against the sample graph that the first one loads. + +### Load the sample graph + +Five people, two companies, and the `KNOWS` / `WORKS_AT` edges between them. + +```cypher +CREATE (alice:Person {ext_id: "u1", name: "Alice", role: "admin"}), + (bob:Person {ext_id: "u2", name: "Bob", role: "analyst"}), + (carol:Person {ext_id: "u3", name: "Carol", role: "engineer"}), + (dan:Person {ext_id: "u4", name: "Dan", role: "engineer"}), + (eve:Person {ext_id: "u5", name: "Eve", role: "designer"}), + (acme:Company {ext_id: "c1", name: "Acme", sector: "fintech"}), + (globex:Company {ext_id: "c2", name: "Globex", sector: "retail"}), + (alice)-[:KNOWS {since: 2020}]->(bob), + (bob)-[:KNOWS {since: 2021}]->(carol), + (carol)-[:KNOWS {since: 2022}]->(dan), + (alice)-[:KNOWS {since: 2023}]->(eve), + (bob)-[:WORKS_AT]->(acme), + (carol)-[:WORKS_AT]->(acme), + (dan)-[:WORKS_AT]->(globex) +RETURN count(*) AS created +``` + + + ```json + [{"created": 1}] + ``` + + +### Upsert a node on your own key + +Updates Alice's role, or creates her if `u1` does not exist. + +```cypher +MERGE (p:Person {ext_id: "u1"}) +SET p.role = "owner" +RETURN p.ext_id AS id, p.name AS name, p.role AS role +``` + + + ```json + [{"id": "u1", "name": "Alice", "role": "owner"}] + ``` + + +### Connect two existing nodes + +Eve starts working at Acme. + +```cypher +MATCH (a:Person {ext_id: "u5"}), (b:Company {ext_id: "c1"}) +MERGE (a)-[w:WORKS_AT]->(b) +SET w.since = 2024 +RETURN a.name AS person, type(w) AS rel, b.name AS company, w.since AS since +``` + + + ```json + [{"company": "Acme", "person": "Eve", "rel": "WORKS_AT", "since": 2024}] + ``` + + +### Expand a node's neighborhood + +Every relationship on Bob, in any direction, and the node on the other end. + +```cypher +MATCH (p:Person {name: "Bob"})-[r]-(nbr) +RETURN type(r) AS rel, labels(nbr) AS kind, nbr.name AS neighbor +ORDER BY rel, neighbor +``` + + + ```json + [ + {"kind": ["Person"], "neighbor": "Alice", "rel": "KNOWS"}, + {"kind": ["Person"], "neighbor": "Carol", "rel": "KNOWS"}, + {"kind": ["Company"], "neighbor": "Acme", "rel": "WORKS_AT"} + ] + ``` + + +### Multi-hop expansion + +Everyone up to 3 hops from Alice along outgoing `KNOWS` edges. + +```cypher +MATCH (a:Person {name: "Alice"})-[:KNOWS*1..3]->(reach:Person) +WHERE reach.name <> "Alice" +RETURN DISTINCT reach.name AS name +ORDER BY name +``` + + + ```json + [ + {"name": "Bob"}, + {"name": "Carol"}, + {"name": "Dan"}, + {"name": "Eve"} + ] + ``` + + +### Shortest path between two nodes + +Returns the whole path (nodes and edges in order), not only the endpoints. + +```cypher +MATCH (a:Person {name: "Alice"}), (b:Person {name: "Carol"}) +RETURN shortestPath((a)-[:KNOWS*..8]->(b)) AS path +``` + + + ```json + [ + { + "path": { + "edges": [ + { + "id": 0, + "relation": "KNOWS", + "since": 2020, + "source_node_id": 0, + "target_node_id": 1 + }, + { + "id": 1, + "relation": "KNOWS", + "since": 2021, + "source_node_id": 1, + "target_node_id": 2 + } + ], + "nodes": [ + { + "ext_id": "u1", + "id": 0, + "labels": [ + "Person" + ], + "name": "Alice", + "role": "owner" + }, + { + "ext_id": "u2", + "id": 1, + "labels": [ + "Person" + ], + "name": "Bob", + "role": "analyst" + }, + { + "ext_id": "u3", + "id": 2, + "labels": [ + "Person" + ], + "name": "Carol", + "role": "engineer" + } + ] + } + } + ] + ``` + + +### Filtered, typed traversal + +Who does Alice know that works at a fintech company? + +```cypher +MATCH (a:Person {name: "Alice"})-[:KNOWS]->(f:Person)-[:WORKS_AT]->(c:Company) +WHERE c.sector = "fintech" +RETURN f.name AS person, c.name AS company +ORDER BY person +``` + + + ```json + [ + {"company": "Acme", "person": "Bob"}, + {"company": "Acme", "person": "Eve"} + ] + ``` + + +### Aggregate + +Headcount per company, largest first. + +```cypher +MATCH (p:Person)-[:WORKS_AT]->(c:Company) +RETURN c.name AS company, count(p) AS headcount +ORDER BY headcount DESC +``` + + + ```json + [ + {"company": "Acme", "headcount": 3}, + {"company": "Globex", "headcount": 1} + ] + ``` + + +### Index a property you filter on + +Speeds up lookups by `ext_id`. + +```cypher +CREATE INDEX FOR (n:Person) ON (n.ext_id) +``` + + + ```json + [] + ``` + + +### Delete a node and its edges + +Removes Eve and every relationship attached to her. + +```cypher +MATCH (p:Person {ext_id: "u5"}) +DETACH DELETE p +RETURN count(*) AS deleted +``` + + + ```json + [{"deleted": 1}] + ``` + + +## Response format + +Rows come back in `data`: one object per result row, keyed by your `RETURN` aliases: + +```json +{ + "success": true, + "data": [ + { "name": "Alice", "role": "admin" }, + { "name": "Bob", "role": "analyst" } + ], + "error": null, + "meta": { "request_id": "9be86a4e-…", "latency_ms": 12.4 } +} +``` + +- **Alias every column you read:** `RETURN n.name AS name`. An unaliased column is keyed by its expression text (`"n.name"`). +- A write with no `RETURN` succeeds with `data: []`. + +What each kind of value looks like inside a row: + +| You return | Example | Row in `data` | +| --- | --- | --- | +| Scalar | `RETURN p.name AS name` | `{"name": "Alice"}` | +| Node | `RETURN p` | `{"p": {"id": 0, "labels": ["Person"], "name": "Alice"}}` | +| Relationship | `RETURN k` | `{"k": {"id": 7, "relation": "KNOWS", "source_node_id": 0, "target_node_id": 1, "since": 2020}}` | +| Path | `RETURN shortestPath(...) AS path` | `{"path": {"nodes": [...], "edges": [...]}}` | +| List / map | `RETURN collect(p.name) AS names` | `{"names": ["Alice", "Bob"]}` | + +- Nodes and relationships are flat objects: their properties plus the keys in the table. A stored property with one of those names (`id`, `labels`, `relation`, `source_node_id`, `target_node_id`) is hidden in the response; alias it (`RETURN n.id AS my_id`). +- `id` is internal: it can be reused after deletes and does not survive an export and re-import. Key your data on a property you own, such as `ext_id` or `email`. +- Integers are 64-bit. Values beyond 2⁵³ lose precision in languages that parse JSON numbers as doubles; return them as strings. + +## Use results in your code + +### A minimal client + +Wrap the endpoint once. A success puts rows in `data`; the client reads an error from `detail`. + +```python +import requests + +class HydraGraph: + def __init__(self, base_url, api_key, database, collection="default"): + self.base, self.db, self.col = base_url, database, collection + self.headers = {"Authorization": f"Bearer {api_key}"} + + def query(self, cypher, params=None): + r = requests.post(f"{self.base}/byog/query", headers=self.headers, json={ + "database": self.db, "collection": self.col, + "query": cypher, "params": params or {}, + }) + body = r.json() + if not r.ok: + err = body.get("detail", {}) + raise RuntimeError(f"{r.status_code} {err.get('error_code')}: {err.get('message')}") + return body["data"] # always a list of row dicts + +g = HydraGraph("https://api.hydradb.com", "", "crm", "contacts") +``` + +```typescript +async function query(cypher: string, params: object = {}): Promise[]> { + const res = await fetch(`${BASE}/byog/query`, { + method: "POST", + headers: { Authorization: `Bearer ${KEY}`, "Content-Type": "application/json" }, + body: JSON.stringify({ database: "crm", collection: "contacts", query: cypher, params }), + }); + const body = await res.json(); + if (!res.ok) throw new Error(`${res.status} ${body.detail?.error_code}: ${body.detail?.message}`); + return body.data; // always an array of row objects +} +``` + +### Read rows + +```python +# Scalars - project and alias exactly what you need. +rows = g.query("MATCH (p:Person) RETURN p.name AS name, p.role AS role ORDER BY name") +names = [r["name"] for r in rows] # ["Alice", "Bob"] + +# Nodes - one flat object: properties plus id and labels. +alice = g.query("MATCH (p:Person {name: $n}) RETURN p", {"n": "Alice"})[0]["p"] +props = {k: v for k, v in alice.items() if k not in ("id", "labels")} + +# Relationships - project both ends in the same query. +for row in g.query("MATCH (a:Person)-[k:KNOWS]->(b:Person) " + "RETURN a.name AS a, b.name AS b, k.since AS since"): + print(f'{row["a"]} knows {row["b"]} since {row["since"]}') + +# Paths - nodes and edges in traversal order. +path = g.query("MATCH (a:Person {name:$x}), (b:Person {name:$y}) " + "RETURN shortestPath((a)-[*..6]->(b)) AS path", + {"x": "Alice", "y": "Bob"})[0]["path"] +hops = [n["name"] for n in path["nodes"]] # ["Alice", ..., "Bob"] +``` + +### Pagination + +Result sets past the deployment cap are silently truncated, so page any read that could be large. A stable `ORDER BY` keeps pages consistent: + +```python +def all_rows(cypher_body, page=500, params=None): + offset = 0 + while True: + rows = g.query(f"{cypher_body} SKIP $offset LIMIT $limit", + {**(params or {}), "offset": offset, "limit": page}) + yield from rows + if len(rows) < page: + return + offset += page + +people = list(all_rows("MATCH (p:Person) RETURN p.name AS name ORDER BY name")) +``` + +### Bulk loading + +Chunk rows to stay inside the 256 KiB body cap and the 30 s write budget; `MERGE` on your own key makes the load re-runnable after a failure: + +```python +def load(rows, chunk=500): + for i in range(0, len(rows), chunk): + g.query(""" + UNWIND $rows AS row + MERGE (n:Person {ext_id: row.ext_id}) + SET n += row + """, {"rows": rows[i:i+chunk]}) +``` + +## Errors and limits + +### Errors + +Errors come back with `success: false` and the reason in `error` (also mirrored in `detail`): + +```json +{ + "success": false, + "data": null, + "error": { "code": "DATABASE_ALREADY_EXISTS", "message": "database 'crm' already exists" }, + "detail": { "success": false, "error_code": "DATABASE_ALREADY_EXISTS", "message": "database 'crm' already exists" } +} +``` + +| Status | Meaning | +| --- | --- | +| `400` | Invalid request (missing fields, bad collection name), unsupported construct, **Cypher errors** (the compiler's message is passed through so you can fix the query), or **query timeout** | +| `403` | Missing or invalid API key | +| `404` | Unknown database; create it with `POST /byog/databases` | +| `409` | `POST /byog/databases` with a name that already exists | +| `413` | Request body over 256 KiB | +| `429` | Rate limit exceeded; back off and retry | +| `500` | Server error. Retry reads with backoff; retry writes only when they are idempotent | + +Decide whether to retry by status: + +- **`400`:** do not retry unchanged; it fails identically. The message says what to fix, either your Cypher or a query that needs `LIMIT` or an index (budget timeout). +- **`429` and `500`:** transient; retry with backoff. Writes built on `MERGE`, as in [Bulk loading](#bulk-loading), are safe to retry. Bare `CREATE` batches are not idempotent, so a retried chunk can duplicate nodes. + +### Limits and timeouts + +| Limit | Value | On exceeding | +| --- | --- | --- | +| Request body | 256 KiB | `413` | +| Read query execution | 8 s | `400`: "query exceeded the execution time budget; simplify it, add LIMIT, or create an index" | +| Write query execution | 30 s | same `400` | +| Result set size | deployment-configured cap; rows beyond it are **silently dropped** | no error; paginate | + +A query counts as a **write** (and gets the larger budget) when it contains any write clause: `CREATE`, `MERGE`, `SET`, `DELETE`, `REMOVE`, `FOREACH`. + +To stay inside these limits: + +- **Paginate anything potentially large:** see [Pagination](#pagination). Without an `ORDER BY`, rows dropped at the result-set cap are arbitrary. +- **Chunk bulk imports:** see [Bulk loading](#bulk-loading). +- **Create indexes** for properties you filter on: `CREATE INDEX FOR (n:Person) ON (n.name)`. A slow read usually needs one. + +## Migrate from Neo4j or another Cypher-compatible database + +Most application Cypher from Neo4j, Memgraph, or any other Cypher-compatible database ports directly. The differences you are most likely to notice: + +- Procedure calls (for example Neo4j's `CALL db.*` and `CALL apoc.*`) and `LOAD CSV` are [not supported](#not-supported). The equivalents of a procedure are either plain Cypher or not part of the supported surface. Instead of `LOAD CSV`, batch data in through `params`. +- Existence checks and `shortestPath` take a different form: see [Dialect notes](#dialect-notes). +- Internal node IDs are not portable; migrate using your own key properties, for example `UNWIND $rows AS row MERGE (n:Person {ext_id: row.ext_id}) SET n += row`. + +Migrate one collection at a time: export a graph, replay it into one collection, and verify the counts. + +This script reads from Neo4j with the official driver and writes to HydraDB with the [`HydraGraph` client](#a-minimal-client). Any source you can read nodes and relationships from works the same way. It loads nodes first, then relationships matched on your own key. Cypher does not allow a relationship type as a parameter, so it writes one batch per type. It copies `Person` nodes and `KNOWS` relationships; repeat both steps for every other label and relationship type in your graph, and compare each count: + +```python +from neo4j import GraphDatabase + +src = GraphDatabase.driver("neo4j://localhost:7687", auth=("neo4j", "")) +g = HydraGraph("https://api.hydradb.com", "", "crm", "contacts") + +def batches(rows, n=500): + for i in range(0, len(rows), n): + yield rows[i:i + n] + +# Index the key first so the relationship MATCH below stays fast. +g.query("CREATE INDEX FOR (n:Person) ON (n.ext_id)") + +with src.session() as s: + # 1. Nodes, keyed on a property you own. + people = [r["p"] for r in s.run("MATCH (p:Person) RETURN properties(p) AS p")] + for chunk in batches(people): + g.query("UNWIND $rows AS row MERGE (n:Person {ext_id: row.ext_id}) SET n += row", + {"rows": chunk}) + + # 2. Relationships, one type at a time. + knows = s.run(""" + MATCH (a:Person)-[k:KNOWS]->(b:Person) + RETURN a.ext_id AS src, b.ext_id AS dst, properties(k) AS props + """).data() + for chunk in batches(knows): + g.query(""" + UNWIND $rows AS row + MATCH (a:Person {ext_id: row.src}), (b:Person {ext_id: row.dst}) + MERGE (a)-[k:KNOWS]->(b) + SET k += row.props + """, {"rows": chunk}) + +# 3. Verify counts match. +print(g.query("MATCH (p:Person) RETURN count(p) AS people")) +``` + + + +## Use BYOG without Cypher + +To use your own entities and relations for a source instead of the ones HydraDB extracts, pass a `graph_payload` on [`POST /context/ingest`](/api-reference/v2/endpoint/ingest-context). It is a JSON map keyed by source ID (a `document_metadata` `id` or a memory `id`): + +```bash +curl -X POST 'https://api.hydradb.com/context/ingest' \ + -H "Authorization: Bearer $HYDRADB_API_KEY" \ + -H "API-Version: 2" \ + -F "type=knowledge" \ + -F "database=acme_corp" \ + -F "documents=@/path/to/billing-policy.pdf" \ + -F 'document_metadata=[{ "id": "billing-policy-doc" }]' \ + -F 'graph_payload={ + "billing-policy-doc": { + "entities": { + "alice": { "name": "Alice Carter", "type": "PERSON", "namespace": "employees" }, + "billing": { "name": "Billing Policy", "type": "POLICY", "namespace": "policies" } + }, + "relations": [ + { "source": "alice", "target": "billing", "predicate": "OWNS", + "context": "Alice Carter owns the billing policy.", "temporal_details": "since 2021" } + ] + } + }' +``` + +- **Replaces extraction:** HydraDB skips extraction for each keyed source; the source is still chunked and embedded. Relations appear in `/query` `graph_context` tagged `origin: "byog"`, with no query-side changes. +- **Persists across re-ingest:** re-ingesting without a `graph_payload` re-applies the stored graph; sending a new one replaces it. +- **Limits:** at most 5,000 entities, 10,000 relations, and 500 relations per entity; oversized payloads return `400`. A key matching no source in the request is rejected with `400`. +- **Whole-graph only:** there are no per-triple updates, and relations link to their best-matching chunk even when the match is weak. + +See the [`graph_payload` field reference](/api-reference/v2/endpoint/ingest-context) for the full shape. From a4ed6b9f1c0fd6950f65046913b8b97a15ce6e5f Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Sun, 15 Nov 2026 21:39:50 +0000 Subject: [PATCH 09/33] Delete bring-your-own-graph-3 - Deleted essentials/v2/bring-your-own-graph-3.mdx - Updated docs.json Mintlify-Source: dashboard-editor Signed-off-by: SohamRatnaparkhi <92905626+SohamRatnaparkhi@users.noreply.github.com> --- docs.json | 3 +- essentials/v2/bring-your-own-graph-3.mdx | 716 ----------------------- 2 files changed, 1 insertion(+), 718 deletions(-) delete mode 100644 essentials/v2/bring-your-own-graph-3.mdx diff --git a/docs.json b/docs.json index e347f593..8e825005 100644 --- a/docs.json +++ b/docs.json @@ -71,8 +71,7 @@ "essentials/v2/context", "essentials/v2/connectors", "essentials/v2/query", - "essentials/v2/bring-your-own-graph", - "essentials/v2/bring-your-own-graph-3" + "essentials/v2/bring-your-own-graph" ] }, { diff --git a/essentials/v2/bring-your-own-graph-3.mdx b/essentials/v2/bring-your-own-graph-3.mdx deleted file mode 100644 index 02a2c7dd..00000000 --- a/essentials/v2/bring-your-own-graph-3.mdx +++ /dev/null @@ -1,716 +0,0 @@ ---- -title: "Bring Your Own Graph (copy)" -description: "Complete guide to build a graph from scratch in Cypher. Considering switching to HydraDB from a different graph store? Read this guide." ---- - -If you are moving from an existing graph database, start at [Migrate from Neo4j or another Cypher-compatible database](#migrate-from-neo4j-or-another-cypher-compatible-database). To bring your own entities and relations without writing Cypher, attach them to a source at ingest: see section [Use BYOG without Cypher](#use-byog-without-cypher). - -## Quickstart - -Create a database, write two nodes, and read them back: - -```bash -BASE=https://api.hydradb.com -KEY="your-api-key" - -# 1. Create a database (check the returned status before querying) -curl -X POST "$BASE/byog/databases" \ - -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ - -d '{"database": "crm"}' - -# 2. Write data - the collection is created on first write -curl -X POST "$BASE/byog/query" \ - -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ - -d '{ - "database": "crm", - "collection": "contacts", - "query": "UNWIND $rows AS row CREATE (p:Person) SET p = row RETURN count(p) AS created", - "params": {"rows": [{"name": "Alice", "role": "admin"}, - {"name": "Bob", "role": "analyst"}]} - }' - -# 3. Read it back -curl -X POST "$BASE/byog/query" \ - -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ - -d '{ - "database": "crm", - "collection": "contacts", - "query": "MATCH (p:Person) RETURN p.name AS name, p.role AS role ORDER BY name" - }' -``` - -Agents can run the same Cypher through the [HydraDB MCP](/plugins/mcp) graph tools (`hydradb_graph_query`, `hydradb_graph_collections`, `hydradb_graph_admin`). - -## Authentication - -Every request needs your HydraDB API key: - -```text -Authorization: Bearer -``` - -A missing or invalid key returns `403`. Your databases are visible only to your organization: another organization's databases look like names that do not exist, and `MATCH (n) RETURN n` returns only your own nodes. - -## Endpoints - -### `POST /byog/databases`: create a database - -A database groups your collections. Check the returned `status`: `ready` means you can query it now; `provisioning` means you need to wait for [Database Status](/api-reference/v2/endpoint/database-status) to report readiness. A database created with the standard `POST /databases` can also hold graph collections. Creating a name that already exists returns `409`. - - - -```bash Request -curl -X POST "$BASE/byog/databases" \ - -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ - -d '{"database": "crm"}' -``` - -```json Response -{ - "success": true, - "data": { "database": "crm", "status": "ready", "cluster": "shared" }, - "error": null, - "meta": { "request_id": "9280b5f7-…", "api_version": "2.0.1", "latency_ms": 90.8 } -} -``` - - - -### `POST /byog/query`: run Cypher - - - -```bash Request -curl -X POST "$BASE/byog/query" \ - -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ - -d '{ - "database": "crm", - "collection": "contacts", - "query": "CREATE (n:Person {name: $name}) RETURN n", - "params": {"name": "Alice"} - }' -``` - -```json Response -{ - "success": true, - "data": [ - { "n": { "id": 0, "labels": ["Person"], "name": "Alice" } } - ], - "error": null, - "meta": { "request_id": "0f345406-…", "api_version": "2.0.1", "latency_ms": 142.4 } -} -``` - - - -- Each collection is an isolated graph. A query runs against one collection and cannot see data in any other. -- Collections are created automatically on the first write. Reading a collection that does not exist yet returns zero rows. -- Pass user data through `params` instead of building it into the query string. -- Collection names can use letters, digits, `_` and `-`, must start with a letter or digit, and can be up to 64 characters long. - -### `GET /byog/collections`: list collections - -An unknown database returns `404`. - - - -```bash Request -curl "$BASE/byog/collections?database=crm" \ - -H "Authorization: Bearer $KEY" -``` - -```json Response -{ - "success": true, - "data": { "database": "crm", "collections": ["contacts", "sample"] }, - "error": null, - "meta": { "request_id": "d4744632-…", "api_version": "2.0.1", "latency_ms": 55.6 } -} -``` - - - -### `DELETE /byog/collections`: drop one collection - -Drops the collection and all its data. Deleting a collection that does not exist also succeeds. - - - -```bash Request -curl -X DELETE "$BASE/byog/collections" \ - -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ - -d '{"database": "crm", "collection": "contacts"}' -``` - -```json Response -{ - "success": true, - "data": { "database": "crm", "collection": "contacts", "deleted": true }, - "error": null, - "meta": { "request_id": "d7b2b080-…", "api_version": "2.0.1", "latency_ms": 131.1 } -} -``` - - - -### `DELETE /byog/databases`: drop a database - -Drops the graph collections and, if created through `POST /byog/databases`, the database itself. For a database created through the standard database API, the graph collections are dropped, `deleted` is `false`, and the database stays. Use the standard `DELETE /databases` to remove that database. - - - -```bash Request -curl -X DELETE "$BASE/byog/databases" \ - -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ - -d '{"database": "crm"}' -``` - -```json Response -{ - "success": true, - "data": { - "database": "crm", - "cluster": "shared", - "deleted": true, - "deleted_collections": ["contacts", "sample"] - }, - "error": null, - "meta": { "request_id": "1ba6ecb8-…", "api_version": "2.0.1", "latency_ms": 130.8 } -} -``` - - - -## Supported Cypher - -All of openCypher is supported except server-side procedures and file loading. - -### Modeling and CRUD - -- Create, read, update and delete: `CREATE`, `MATCH`, `MERGE`, `SET`, `REMOVE`, `DELETE` / `DETACH DELETE` -- Pattern matching, `WHERE` filters, aggregation, `ORDER BY` / `SKIP` / `LIMIT` -- `UNWIND` and `WITH` pipelines -- Indexes: `CREATE INDEX FOR (n:Label) ON (n.prop)` -- `CALL { ... }` subqueries - -### Graph traversal and exploration - -- **Multi-hop patterns:** chain relationships in one `MATCH`: `MATCH (a:Person)-[:KNOWS]->(b)-[:WORKS_AT]->(c:Company) RETURN c.name`. -- **Variable-length traversal:** follow a relationship a bounded or unbounded number of hops with `*`: `MATCH (a:Person {name:$n})-[:KNOWS*1..4]->(reach) RETURN DISTINCT reach.name`. -- **Neighborhood expansion:** a node's edges and neighbors in any direction: `MATCH (p:Person {name:$n})-[r]-(nbr) RETURN type(r) AS rel, nbr.name AS neighbor`. -- **Path finding:** `shortestPath` returns the full path (nodes and edges in traversal order), not only the endpoints. -- **Directed, typed, filtered traversal:** outgoing (`->`), incoming (`<-`) or either (`-`) edges, filtered by relationship type and by node or edge properties anywhere along the walk. - -### Not supported - -These are rejected with `400` before the query runs; nothing is executed, and retrying the same query fails the same way: - -- **Procedure calls:** `CALL some.procedure(...)`, including `db.*` and `apoc.*`. `CALL { ... }` subqueries are supported. -- **`LOAD CSV`:** send data through `params` instead. - -### Dialect notes - -- **Existence checks** are bare pattern predicates: `MATCH (p:Person) WHERE (p)-[:KNOWS]->() RETURN p.name AS name`. The `EXISTS { ... }` block form and the `exists()` function are not accepted. -- **`shortestPath`** goes in a `RETURN` or `WITH` clause (not `MATCH p = …`) and the traversal must be directed. - -## Common Cypher queries - -Each query runs against the sample graph that the first one loads. - -### Load the sample graph - -Five people, two companies, and the `KNOWS` / `WORKS_AT` edges between them. - -```cypher -CREATE (alice:Person {ext_id: "u1", name: "Alice", role: "admin"}), - (bob:Person {ext_id: "u2", name: "Bob", role: "analyst"}), - (carol:Person {ext_id: "u3", name: "Carol", role: "engineer"}), - (dan:Person {ext_id: "u4", name: "Dan", role: "engineer"}), - (eve:Person {ext_id: "u5", name: "Eve", role: "designer"}), - (acme:Company {ext_id: "c1", name: "Acme", sector: "fintech"}), - (globex:Company {ext_id: "c2", name: "Globex", sector: "retail"}), - (alice)-[:KNOWS {since: 2020}]->(bob), - (bob)-[:KNOWS {since: 2021}]->(carol), - (carol)-[:KNOWS {since: 2022}]->(dan), - (alice)-[:KNOWS {since: 2023}]->(eve), - (bob)-[:WORKS_AT]->(acme), - (carol)-[:WORKS_AT]->(acme), - (dan)-[:WORKS_AT]->(globex) -RETURN count(*) AS created -``` - - - ```json - [{"created": 1}] - ``` - - -### Upsert a node on your own key - -Updates Alice's role, or creates her if `u1` does not exist. - -```cypher -MERGE (p:Person {ext_id: "u1"}) -SET p.role = "owner" -RETURN p.ext_id AS id, p.name AS name, p.role AS role -``` - - - ```json - [{"id": "u1", "name": "Alice", "role": "owner"}] - ``` - - -### Connect two existing nodes - -Eve starts working at Acme. - -```cypher -MATCH (a:Person {ext_id: "u5"}), (b:Company {ext_id: "c1"}) -MERGE (a)-[w:WORKS_AT]->(b) -SET w.since = 2024 -RETURN a.name AS person, type(w) AS rel, b.name AS company, w.since AS since -``` - - - ```json - [{"company": "Acme", "person": "Eve", "rel": "WORKS_AT", "since": 2024}] - ``` - - -### Expand a node's neighborhood - -Every relationship on Bob, in any direction, and the node on the other end. - -```cypher -MATCH (p:Person {name: "Bob"})-[r]-(nbr) -RETURN type(r) AS rel, labels(nbr) AS kind, nbr.name AS neighbor -ORDER BY rel, neighbor -``` - - - ```json - [ - {"kind": ["Person"], "neighbor": "Alice", "rel": "KNOWS"}, - {"kind": ["Person"], "neighbor": "Carol", "rel": "KNOWS"}, - {"kind": ["Company"], "neighbor": "Acme", "rel": "WORKS_AT"} - ] - ``` - - -### Multi-hop expansion - -Everyone up to 3 hops from Alice along outgoing `KNOWS` edges. - -```cypher -MATCH (a:Person {name: "Alice"})-[:KNOWS*1..3]->(reach:Person) -WHERE reach.name <> "Alice" -RETURN DISTINCT reach.name AS name -ORDER BY name -``` - - - ```json - [ - {"name": "Bob"}, - {"name": "Carol"}, - {"name": "Dan"}, - {"name": "Eve"} - ] - ``` - - -### Shortest path between two nodes - -Returns the whole path (nodes and edges in order), not only the endpoints. - -```cypher -MATCH (a:Person {name: "Alice"}), (b:Person {name: "Carol"}) -RETURN shortestPath((a)-[:KNOWS*..8]->(b)) AS path -``` - - - ```json - [ - { - "path": { - "edges": [ - { - "id": 0, - "relation": "KNOWS", - "since": 2020, - "source_node_id": 0, - "target_node_id": 1 - }, - { - "id": 1, - "relation": "KNOWS", - "since": 2021, - "source_node_id": 1, - "target_node_id": 2 - } - ], - "nodes": [ - { - "ext_id": "u1", - "id": 0, - "labels": [ - "Person" - ], - "name": "Alice", - "role": "owner" - }, - { - "ext_id": "u2", - "id": 1, - "labels": [ - "Person" - ], - "name": "Bob", - "role": "analyst" - }, - { - "ext_id": "u3", - "id": 2, - "labels": [ - "Person" - ], - "name": "Carol", - "role": "engineer" - } - ] - } - } - ] - ``` - - -### Filtered, typed traversal - -Who does Alice know that works at a fintech company? - -```cypher -MATCH (a:Person {name: "Alice"})-[:KNOWS]->(f:Person)-[:WORKS_AT]->(c:Company) -WHERE c.sector = "fintech" -RETURN f.name AS person, c.name AS company -ORDER BY person -``` - - - ```json - [ - {"company": "Acme", "person": "Bob"}, - {"company": "Acme", "person": "Eve"} - ] - ``` - - -### Aggregate - -Headcount per company, largest first. - -```cypher -MATCH (p:Person)-[:WORKS_AT]->(c:Company) -RETURN c.name AS company, count(p) AS headcount -ORDER BY headcount DESC -``` - - - ```json - [ - {"company": "Acme", "headcount": 3}, - {"company": "Globex", "headcount": 1} - ] - ``` - - -### Index a property you filter on - -Speeds up lookups by `ext_id`. - -```cypher -CREATE INDEX FOR (n:Person) ON (n.ext_id) -``` - - - ```json - [] - ``` - - -### Delete a node and its edges - -Removes Eve and every relationship attached to her. - -```cypher -MATCH (p:Person {ext_id: "u5"}) -DETACH DELETE p -RETURN count(*) AS deleted -``` - - - ```json - [{"deleted": 1}] - ``` - - -## Response format - -Rows come back in `data`: one object per result row, keyed by your `RETURN` aliases: - -```json -{ - "success": true, - "data": [ - { "name": "Alice", "role": "admin" }, - { "name": "Bob", "role": "analyst" } - ], - "error": null, - "meta": { "request_id": "9be86a4e-…", "latency_ms": 12.4 } -} -``` - -- **Alias every column you read:** `RETURN n.name AS name`. An unaliased column is keyed by its expression text (`"n.name"`). -- A write with no `RETURN` succeeds with `data: []`. - -What each kind of value looks like inside a row: - -| You return | Example | Row in `data` | -| --- | --- | --- | -| Scalar | `RETURN p.name AS name` | `{"name": "Alice"}` | -| Node | `RETURN p` | `{"p": {"id": 0, "labels": ["Person"], "name": "Alice"}}` | -| Relationship | `RETURN k` | `{"k": {"id": 7, "relation": "KNOWS", "source_node_id": 0, "target_node_id": 1, "since": 2020}}` | -| Path | `RETURN shortestPath(...) AS path` | `{"path": {"nodes": [...], "edges": [...]}}` | -| List / map | `RETURN collect(p.name) AS names` | `{"names": ["Alice", "Bob"]}` | - -- Nodes and relationships are flat objects: their properties plus the keys in the table. A stored property with one of those names (`id`, `labels`, `relation`, `source_node_id`, `target_node_id`) is hidden in the response; alias it (`RETURN n.id AS my_id`). -- `id` is internal: it can be reused after deletes and does not survive an export and re-import. Key your data on a property you own, such as `ext_id` or `email`. -- Integers are 64-bit. Values beyond 2⁵³ lose precision in languages that parse JSON numbers as doubles; return them as strings. - -## Use results in your code - -### A minimal client - -Wrap the endpoint once. A success puts rows in `data`; the client reads an error from `detail`. - -```python -import requests - -class HydraGraph: - def __init__(self, base_url, api_key, database, collection="default"): - self.base, self.db, self.col = base_url, database, collection - self.headers = {"Authorization": f"Bearer {api_key}"} - - def query(self, cypher, params=None): - r = requests.post(f"{self.base}/byog/query", headers=self.headers, json={ - "database": self.db, "collection": self.col, - "query": cypher, "params": params or {}, - }) - body = r.json() - if not r.ok: - err = body.get("detail", {}) - raise RuntimeError(f"{r.status_code} {err.get('error_code')}: {err.get('message')}") - return body["data"] # always a list of row dicts - -g = HydraGraph("https://api.hydradb.com", "", "crm", "contacts") -``` - -```typescript -async function query(cypher: string, params: object = {}): Promise[]> { - const res = await fetch(`${BASE}/byog/query`, { - method: "POST", - headers: { Authorization: `Bearer ${KEY}`, "Content-Type": "application/json" }, - body: JSON.stringify({ database: "crm", collection: "contacts", query: cypher, params }), - }); - const body = await res.json(); - if (!res.ok) throw new Error(`${res.status} ${body.detail?.error_code}: ${body.detail?.message}`); - return body.data; // always an array of row objects -} -``` - -### Read rows - -```python -# Scalars - project and alias exactly what you need. -rows = g.query("MATCH (p:Person) RETURN p.name AS name, p.role AS role ORDER BY name") -names = [r["name"] for r in rows] # ["Alice", "Bob"] - -# Nodes - one flat object: properties plus id and labels. -alice = g.query("MATCH (p:Person {name: $n}) RETURN p", {"n": "Alice"})[0]["p"] -props = {k: v for k, v in alice.items() if k not in ("id", "labels")} - -# Relationships - project both ends in the same query. -for row in g.query("MATCH (a:Person)-[k:KNOWS]->(b:Person) " - "RETURN a.name AS a, b.name AS b, k.since AS since"): - print(f'{row["a"]} knows {row["b"]} since {row["since"]}') - -# Paths - nodes and edges in traversal order. -path = g.query("MATCH (a:Person {name:$x}), (b:Person {name:$y}) " - "RETURN shortestPath((a)-[*..6]->(b)) AS path", - {"x": "Alice", "y": "Bob"})[0]["path"] -hops = [n["name"] for n in path["nodes"]] # ["Alice", ..., "Bob"] -``` - -### Pagination - -Result sets past the deployment cap are silently truncated, so page any read that could be large. A stable `ORDER BY` keeps pages consistent: - -```python -def all_rows(cypher_body, page=500, params=None): - offset = 0 - while True: - rows = g.query(f"{cypher_body} SKIP $offset LIMIT $limit", - {**(params or {}), "offset": offset, "limit": page}) - yield from rows - if len(rows) < page: - return - offset += page - -people = list(all_rows("MATCH (p:Person) RETURN p.name AS name ORDER BY name")) -``` - -### Bulk loading - -Chunk rows to stay inside the 256 KiB body cap and the 30 s write budget; `MERGE` on your own key makes the load re-runnable after a failure: - -```python -def load(rows, chunk=500): - for i in range(0, len(rows), chunk): - g.query(""" - UNWIND $rows AS row - MERGE (n:Person {ext_id: row.ext_id}) - SET n += row - """, {"rows": rows[i:i+chunk]}) -``` - -## Errors and limits - -### Errors - -Errors come back with `success: false` and the reason in `error` (also mirrored in `detail`): - -```json -{ - "success": false, - "data": null, - "error": { "code": "DATABASE_ALREADY_EXISTS", "message": "database 'crm' already exists" }, - "detail": { "success": false, "error_code": "DATABASE_ALREADY_EXISTS", "message": "database 'crm' already exists" } -} -``` - -| Status | Meaning | -| --- | --- | -| `400` | Invalid request (missing fields, bad collection name), unsupported construct, **Cypher errors** (the compiler's message is passed through so you can fix the query), or **query timeout** | -| `403` | Missing or invalid API key | -| `404` | Unknown database; create it with `POST /byog/databases` | -| `409` | `POST /byog/databases` with a name that already exists | -| `413` | Request body over 256 KiB | -| `429` | Rate limit exceeded; back off and retry | -| `500` | Server error. Retry reads with backoff; retry writes only when they are idempotent | - -Decide whether to retry by status: - -- **`400`:** do not retry unchanged; it fails identically. The message says what to fix, either your Cypher or a query that needs `LIMIT` or an index (budget timeout). -- **`429` and `500`:** transient; retry with backoff. Writes built on `MERGE`, as in [Bulk loading](#bulk-loading), are safe to retry. Bare `CREATE` batches are not idempotent, so a retried chunk can duplicate nodes. - -### Limits and timeouts - -| Limit | Value | On exceeding | -| --- | --- | --- | -| Request body | 256 KiB | `413` | -| Read query execution | 8 s | `400`: "query exceeded the execution time budget; simplify it, add LIMIT, or create an index" | -| Write query execution | 30 s | same `400` | -| Result set size | deployment-configured cap; rows beyond it are **silently dropped** | no error; paginate | - -A query counts as a **write** (and gets the larger budget) when it contains any write clause: `CREATE`, `MERGE`, `SET`, `DELETE`, `REMOVE`, `FOREACH`. - -To stay inside these limits: - -- **Paginate anything potentially large:** see [Pagination](#pagination). Without an `ORDER BY`, rows dropped at the result-set cap are arbitrary. -- **Chunk bulk imports:** see [Bulk loading](#bulk-loading). -- **Create indexes** for properties you filter on: `CREATE INDEX FOR (n:Person) ON (n.name)`. A slow read usually needs one. - -## Migrate from Neo4j or another Cypher-compatible database - -Most application Cypher from Neo4j, Memgraph, or any other Cypher-compatible database ports directly. The differences you are most likely to notice: - -- Procedure calls (for example Neo4j's `CALL db.*` and `CALL apoc.*`) and `LOAD CSV` are [not supported](#not-supported). The equivalents of a procedure are either plain Cypher or not part of the supported surface. Instead of `LOAD CSV`, batch data in through `params`. -- Existence checks and `shortestPath` take a different form: see [Dialect notes](#dialect-notes). -- Internal node IDs are not portable; migrate using your own key properties, for example `UNWIND $rows AS row MERGE (n:Person {ext_id: row.ext_id}) SET n += row`. - -Migrate one collection at a time: export a graph, replay it into one collection, and verify the counts. - -This script reads from Neo4j with the official driver and writes to HydraDB with the [`HydraGraph` client](#a-minimal-client). Any source you can read nodes and relationships from works the same way. It loads nodes first, then relationships matched on your own key. Cypher does not allow a relationship type as a parameter, so it writes one batch per type. It copies `Person` nodes and `KNOWS` relationships; repeat both steps for every other label and relationship type in your graph, and compare each count: - -```python -from neo4j import GraphDatabase - -src = GraphDatabase.driver("neo4j://localhost:7687", auth=("neo4j", "")) -g = HydraGraph("https://api.hydradb.com", "", "crm", "contacts") - -def batches(rows, n=500): - for i in range(0, len(rows), n): - yield rows[i:i + n] - -# Index the key first so the relationship MATCH below stays fast. -g.query("CREATE INDEX FOR (n:Person) ON (n.ext_id)") - -with src.session() as s: - # 1. Nodes, keyed on a property you own. - people = [r["p"] for r in s.run("MATCH (p:Person) RETURN properties(p) AS p")] - for chunk in batches(people): - g.query("UNWIND $rows AS row MERGE (n:Person {ext_id: row.ext_id}) SET n += row", - {"rows": chunk}) - - # 2. Relationships, one type at a time. - knows = s.run(""" - MATCH (a:Person)-[k:KNOWS]->(b:Person) - RETURN a.ext_id AS src, b.ext_id AS dst, properties(k) AS props - """).data() - for chunk in batches(knows): - g.query(""" - UNWIND $rows AS row - MATCH (a:Person {ext_id: row.src}), (b:Person {ext_id: row.dst}) - MERGE (a)-[k:KNOWS]->(b) - SET k += row.props - """, {"rows": chunk}) - -# 3. Verify counts match. -print(g.query("MATCH (p:Person) RETURN count(p) AS people")) -``` - - - -## Use BYOG without Cypher - -To use your own entities and relations for a source instead of the ones HydraDB extracts, pass a `graph_payload` on [`POST /context/ingest`](/api-reference/v2/endpoint/ingest-context). It is a JSON map keyed by source ID (a `document_metadata` `id` or a memory `id`): - -```bash -curl -X POST 'https://api.hydradb.com/context/ingest' \ - -H "Authorization: Bearer $HYDRADB_API_KEY" \ - -H "API-Version: 2" \ - -F "type=knowledge" \ - -F "database=acme_corp" \ - -F "documents=@/path/to/billing-policy.pdf" \ - -F 'document_metadata=[{ "id": "billing-policy-doc" }]' \ - -F 'graph_payload={ - "billing-policy-doc": { - "entities": { - "alice": { "name": "Alice Carter", "type": "PERSON", "namespace": "employees" }, - "billing": { "name": "Billing Policy", "type": "POLICY", "namespace": "policies" } - }, - "relations": [ - { "source": "alice", "target": "billing", "predicate": "OWNS", - "context": "Alice Carter owns the billing policy.", "temporal_details": "since 2021" } - ] - } - }' -``` - -- **Replaces extraction:** HydraDB skips extraction for each keyed source; the source is still chunked and embedded. Relations appear in `/query` `graph_context` tagged `origin: "byog"`, with no query-side changes. -- **Persists across re-ingest:** re-ingesting without a `graph_payload` re-applies the stored graph; sending a new one replaces it. -- **Limits:** at most 5,000 entities, 10,000 relations, and 500 relations per entity; oversized payloads return `400`. A key matching no source in the request is rejected with `400`. -- **Whole-graph only:** there are no per-triple updates, and relations link to their best-matching chunk even when the match is weak. - -See the [`graph_payload` field reference](/api-reference/v2/endpoint/ingest-context) for the full shape. From e77957c739a0669ae3ba4260fe9674b6df810506 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Sun, 15 Nov 2026 21:48:59 +0000 Subject: [PATCH 10/33] Create Bring Your Own Graph (BYOG): Cypher Graph Database API - Created essentials/v2/byog-overview.mdx - Updated docs.json Mintlify-Source: dashboard-editor Signed-off-by: SohamRatnaparkhi <92905626+SohamRatnaparkhi@users.noreply.github.com> --- docs.json | 3 +- essentials/v2/byog-overview.mdx | 118 ++++++++++++++++++++++++++++++++ 2 files changed, 120 insertions(+), 1 deletion(-) create mode 100644 essentials/v2/byog-overview.mdx diff --git a/docs.json b/docs.json index 8e825005..144646d7 100644 --- a/docs.json +++ b/docs.json @@ -71,7 +71,8 @@ "essentials/v2/context", "essentials/v2/connectors", "essentials/v2/query", - "essentials/v2/bring-your-own-graph" + "essentials/v2/bring-your-own-graph", + "essentials/v2/byog-overview" ] }, { diff --git a/essentials/v2/byog-overview.mdx b/essentials/v2/byog-overview.mdx new file mode 100644 index 00000000..afb7ad80 --- /dev/null +++ b/essentials/v2/byog-overview.mdx @@ -0,0 +1,118 @@ +--- +title: "Bring Your Own Graph (BYOG): Cypher Graph Database API" +sidebarTitle: "Bring Your Own Graph" +description: "Run openCypher queries on HydraDB or attach your own entities and relations at ingest. Migrate from Neo4j or Memgraph with a few API calls." +keywords: ["bring your own graph", "BYOG", "openCypher API", "Cypher graph database", "migrate from Neo4j", "Memgraph migration", "knowledge graph for AI agents", "graph_payload", "HydraDB"] +"og:title": "Bring Your Own Graph (BYOG) | HydraDB Docs" +"og:description": "Use your own graph in HydraDB: write openCypher directly or attach entities and relations at ingest. Includes Neo4j migration." +--- + +**Bring Your Own Graph (BYOG)** lets you use your own entities and relations in HydraDB instead of relying only on what HydraDB extracts. You can write **openCypher** queries against an isolated graph, or attach a graph to your ingested sources with no Cypher at all. + +This page is an overview of how BYOG works. For the complete guide with every endpoint, example query, response format, and error code, head over to the [BYOG API reference](/api-reference/v2/byog). + +## Two ways to bring your own graph + + + + Run openCypher over a REST API. Best for modeling data yourself or migrating from Neo4j or Memgraph. + + + Pass a `graph_payload` to `/context/ingest`. Best for adding known entities and relations to documents and memories. + + + +## Core concepts + +- **Database:** the top-level container for your graph collections, visible only to your organization. +- **Collection:** an isolated graph inside a database. Each query runs against one collection and cannot see another. Collections are created on first write. +- **Your own keys:** internal node `id`s can be reused after deletes and don't survive export or import. Key your data on a property you own, such as `ext_id`, and `MERGE` on it. +- **Parameters:** pass data through `params`, never by building it into the query string. + +## Quickstart: create a graph with Cypher + +```bash +# 1. Create a database +curl -X POST "https://api.hydradb.com/byog/databases" \ + -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ + -d '{"database": "crm"}' + +# 2. Write nodes (the collection is created on first write) +curl -X POST "https://api.hydradb.com/byog/query" \ + -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ + -d '{ + "database": "crm", + "collection": "contacts", + "query": "UNWIND $rows AS row MERGE (p:Person {ext_id: row.ext_id}) SET p += row RETURN count(p) AS written", + "params": {"rows": [{"ext_id": "u1", "name": "Alice"}, {"ext_id": "u2", "name": "Bob"}]} + }' +``` + +Rows come back in `data`, one object per row, keyed by your `RETURN` aliases. Always alias the columns you read. + + +Check the `status` returned when you create a database. `ready` means you can query immediately. `provisioning` means you should wait for [Database Status](/api-reference/v2/endpoint/database-status) to report readiness. + + +## Supported Cypher and dialect differences + +HydraDB supports all of openCypher except server-side procedures (`CALL db.*`, `CALL apoc.*`) and `LOAD CSV`. Send data through `params` instead. + +- **Existence checks** use bare pattern predicates: `WHERE (p)-[:KNOWS]->()`. The `EXISTS { }` block is not accepted. +- **`shortestPath`** goes in a `RETURN` or `WITH` clause, and the traversal must be directed. + +## Add a knowledge graph without Cypher + +To replace extraction with your own entities and relations for a source, pass `graph_payload` to [`POST /context/ingest`](/api-reference/v2/endpoint/ingest-context), keyed by source ID: + +```json +{ + "billing-policy-doc": { + "entities": { + "alice": { "name": "Alice Carter", "type": "PERSON", "namespace": "employees" }, + "billing": { "name": "Billing Policy", "type": "POLICY", "namespace": "policies" } + }, + "relations": [ + { "source": "alice", "target": "billing", "predicate": "OWNS" } + ] + } +} +``` + +HydraDB skips extraction for that source (it's still chunked and embedded). Your relations appear in `/query` `graph_context` tagged `origin: "byog"`, and the payload persists across re-ingests. + +## Migrate from Neo4j or Memgraph + +Most application Cypher ports directly. Migrate one collection at a time: load nodes first, then relationships matched on your own key, then compare counts. See the [full Neo4j migration script](/api-reference/v2/byog#migrate-from-neo4j-or-another-cypher-compatible-database). + +## Limits + +Request bodies are capped at 256 KiB. Reads time out at 8 s and writes at 30 s. Result sets beyond the deployment cap are silently truncated, so paginate large reads with `ORDER BY`, `SKIP` and `LIMIT`. Index any property you filter on. + +## FAQ + + + + BYOG lets you supply your own graph to HydraDB, either by querying it with openCypher or by attaching entities and relations to sources at ingest. + + + Yes. HydraDB supports openCypher over a REST API, except procedure calls and `LOAD CSV`. + + + Yes. Export nodes and relationships, then replay them into a collection using `MERGE` on your own key. + + + Yes. Agents can run the same Cypher through the [HydraDB MCP](/plugins/mcp) graph tools. + + + +## Next steps + + + + Endpoints, common Cypher queries, response format, and error codes. + + + Full `graph_payload` field reference. + + From 122595876abfe54be7f9bf49be03db6179c88b7a Mon Sep 17 00:00:00 2001 From: SohamRatnaparkhi <92905626+SohamRatnaparkhi@users.noreply.github.com> Date: Mon, 16 Nov 2026 04:38:28 +0000 Subject: [PATCH 11/33] docs(byog): include required version header in overview examples Signed-off-by: SohamRatnaparkhi <92905626+SohamRatnaparkhi@users.noreply.github.com> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- essentials/v2/byog-overview.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/essentials/v2/byog-overview.mdx b/essentials/v2/byog-overview.mdx index afb7ad80..18119777 100644 --- a/essentials/v2/byog-overview.mdx +++ b/essentials/v2/byog-overview.mdx @@ -34,12 +34,12 @@ This page is an overview of how BYOG works. For the complete guide with every en ```bash # 1. Create a database curl -X POST "https://api.hydradb.com/byog/databases" \ - -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ + -H "Authorization: Bearer $KEY" -H "API-Version: 2" -H "Content-Type: application/json" \ -d '{"database": "crm"}' # 2. Write nodes (the collection is created on first write) curl -X POST "https://api.hydradb.com/byog/query" \ - -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ + -H "Authorization: Bearer $KEY" -H "API-Version: 2" -H "Content-Type: application/json" \ -d '{ "database": "crm", "collection": "contacts", From 808392554f8333676fe4797190e39746e56ea881 Mon Sep 17 00:00:00 2001 From: SohamRatnaparkhi <92905626+SohamRatnaparkhi@users.noreply.github.com> Date: Mon, 16 Nov 2026 05:13:38 +0000 Subject: [PATCH 12/33] docs(byog): link the existing complete reference and migration guide Signed-off-by: SohamRatnaparkhi <92905626+SohamRatnaparkhi@users.noreply.github.com> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- docs.json | 1 + essentials/v2/byog-overview.mdx | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs.json b/docs.json index 144646d7..6d85068b 100644 --- a/docs.json +++ b/docs.json @@ -285,6 +285,7 @@ "group": "Bring Your Own Graph", "public": true, "pages": [ + "essentials/v2/bring-your-own-graph", "api-reference/v2/endpoint/byog-query-managed", "api-reference/v2/endpoint/byog-create-database", "api-reference/v2/endpoint/byog-query", diff --git a/essentials/v2/byog-overview.mdx b/essentials/v2/byog-overview.mdx index 18119777..dd7e39a4 100644 --- a/essentials/v2/byog-overview.mdx +++ b/essentials/v2/byog-overview.mdx @@ -9,7 +9,7 @@ keywords: ["bring your own graph", "BYOG", "openCypher API", "Cypher graph datab **Bring Your Own Graph (BYOG)** lets you use your own entities and relations in HydraDB instead of relying only on what HydraDB extracts. You can write **openCypher** queries against an isolated graph, or attach a graph to your ingested sources with no Cypher at all. -This page is an overview of how BYOG works. For the complete guide with every endpoint, example query, response format, and error code, head over to the [BYOG API reference](/api-reference/v2/byog). +This page is an overview of how BYOG works. For the complete guide with every endpoint, example query, response format, and error code, head over to the [BYOG API reference](/essentials/v2/bring-your-own-graph). ## Two ways to bring your own graph @@ -83,7 +83,7 @@ HydraDB skips extraction for that source (it's still chunked and embedded). Your ## Migrate from Neo4j or Memgraph -Most application Cypher ports directly. Migrate one collection at a time: load nodes first, then relationships matched on your own key, then compare counts. See the [full Neo4j migration script](/api-reference/v2/byog#migrate-from-neo4j-or-another-cypher-compatible-database). +Most application Cypher ports directly. Migrate one collection at a time: load nodes first, then relationships matched on your own key, then compare counts. See the [full Neo4j migration script](/essentials/v2/bring-your-own-graph#migrate-from-neo4j-or-another-cypher-compatible-database). ## Limits @@ -109,7 +109,7 @@ Request bodies are capped at 256 KiB. Reads time out at 8 s and writes at 30 s. ## Next steps - + Endpoints, common Cypher queries, response format, and error codes. From 43142a20b2b875c6c34dba4b752b6a4ec33caf9c Mon Sep 17 00:00:00 2001 From: SohamRatnaparkhi <92905626+SohamRatnaparkhi@users.noreply.github.com> Date: Mon, 16 Nov 2026 05:55:18 +0000 Subject: [PATCH 13/33] docs(ingest): explain implicit processing notices and scope collisions Signed-off-by: SohamRatnaparkhi <92905626+SohamRatnaparkhi@users.noreply.github.com> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- api-reference/v2/endpoint/ingest-context.mdx | 51 ++++++++++++++++++++ essentials/v2/context.mdx | 4 +- plugins/cli.mdx | 2 + 3 files changed, 56 insertions(+), 1 deletion(-) diff --git a/api-reference/v2/endpoint/ingest-context.mdx b/api-reference/v2/endpoint/ingest-context.mdx index a51e7b7a..737ae9ca 100644 --- a/api-reference/v2/endpoint/ingest-context.mdx +++ b/api-reference/v2/endpoint/ingest-context.mdx @@ -68,6 +68,57 @@ curl -X POST 'https://api.hydradb.com/context/ingest' \ - **`202 Accepted` means queued, not indexed:** A successful response only confirms your sources were accepted, not that they are ready to query. Before querying, poll [`GET /context/status`](/api-reference/v2/endpoint/source-status) with the returned IDs until each source reaches `graph_creation` (searchable), `completed`, or `errored`. Alternatively, register a webhook for `indexing.status_changed` events (see [Webhooks](/api-reference/v2/endpoint/webhooks-overview)). - **Memory and knowledge:** Use `type: "memory"` for memory ingestion, listing, and deletion. Use `type: "all"` on `POST /query` when results should combine both. +## Default processing warnings + +The v2 acceptance envelope reports implicit processing defaults in `meta.warnings`, separately from CLI/MCP scope notices: + +- `inference_enabled_by_default` counts accepted legacy memory items whose `infer` was omitted. Set `infer: false` on an item to disable inference. +- `enrichment_enabled_by_default` counts accepted unified context items whose item-level and request-level `enrich` were both omitted. Set `enrich: false` on an item or request to disable enrichment. An explicit item value overrides the request value; items inheriting an explicit request value do not produce a default warning. + +Explicit `true` is intentional and produces no default warning, just like explicit `false`. Each code appears at most once per response and counts only accepted affected items, not failed items. Existing warnings and the request ID remain intact. The same rules apply to equivalent supported JSON and form requests; unrelated file/connector processing defaults are unchanged. + +This real `202 Accepted` example contains one queued memory whose `infer` was omitted. The warning does not report successful inference or completed indexing; check the existing [processing status](/api-reference/v2/endpoint/source-status) before querying: + +```json 202 +{ + "success": true, + "data": { + "generation_started_at_ms": 1794807761771, + "success": true, + "message": "Memories queued for ingestion successfully. Ingestion is asynchronous: this 202 means the sources were accepted and queued, not indexed. Poll GET /context/status?database=&id= until each source's indexing_status reaches a terminal state (completed or errored) before querying. See https://docs.hydradb.com/api-reference/v2/endpoint/source-status for usage details. ", + "results": [ + { + "id": "example-memory", + "title": null, + "status": "queued", + "infer": true, + "error": null, + "error_code": null + } + ], + "success_count": 1, + "failed_count": 0 + }, + "error": null, + "meta": { + "request_id": "ingest-warning-request", + "api_version": "2.0.1", + "latency_ms": null, + "tenant_id": "crm", + "database": "crm", + "sub_tenant_id": "docs", + "collection": "docs", + "source_type": "memory", + "warnings": [ + { + "code": "inference_enabled_by_default", + "message": "Inference is enabled by default for 1 accepted item because infer was omitted. Set infer to false on an item to disable inference for that item." + } + ] + } +} +``` + ## Supported file formats diff --git a/essentials/v2/context.mdx b/essentials/v2/context.mdx index d2ee48a8..59840a09 100644 --- a/essentials/v2/context.mdx +++ b/essentials/v2/context.mdx @@ -95,11 +95,13 @@ Give each user their own collection, such as `user_john_123`, and send it on eve 1. **Let HydraDB infer**: `infer` controls whether HydraDB extracts memories and preferences from what you send. 1. `infer: true` (default): Extracts the preferences, trait, or fact from messy or indirect evidence. This also applies when `infer` is omitted from a legacy `memories` item. - 2. `infer: false`: Stores and indexes exactly what you send. No preprocessing step. + 2. `infer: false`: Disables memory inference for that item. Ingestion and indexing still run. 2. **Ingest memory**: It can be via `text` or `user_assistant_pairs`, not both. - `text`: Any prose, such as observations, facts, meeting notes, or semi-structured records. Set `is_markdown: true` for Markdown content so HydraDB keeps its structure when chunking and embedding. - `user_assistant_pairs`: Dialogue, especially when a preference is implied rather than stated. Each pair is `{ "user": "...", "assistant": "..." }`. +When you omit `infer`, the acceptance response includes an `inference_enabled_by_default` notice for the accepted items that used this default. Explicit `true` or `false` does not produce that notice. See [Default processing warnings](/api-reference/v2/endpoint/ingest-context#default-processing-warnings) for the response and opt-out rules. + Set up your [SDK client](/api-reference/v2/sdks#client-setup) before running the Python or TypeScript example. diff --git a/plugins/cli.mdx b/plugins/cli.mdx index c7059663..2cc9241f 100644 --- a/plugins/cli.mdx +++ b/plugins/cli.mdx @@ -82,6 +82,8 @@ hydradb -o json list --database my-db Human-readable scope notices and diagnostics go to stderr. JSON stdout stays one document you can pipe into `jq`: context commands include the effective `scope`, and API warnings stay in `warnings` (or `response_warnings` if the payload already uses that name). Inspect the returned scope when using defaults or switching databases; a null collection means the API selected the collection without reporting its name. +Payload-owned scope keys are preserved. If the server already returns `scope`, CLI provenance uses `cli_scope`. If the server owns both keys, the CLI returns `{"data": , "cli_scope": }` instead of overwriting either value; all original fields remain under `data`. + --- ## Commands From 0db34d58746f28da2277b766b7b45342eb99acd2 Mon Sep 17 00:00:00 2001 From: SohamRatnaparkhi <92905626+SohamRatnaparkhi@users.noreply.github.com> Date: Mon, 16 Nov 2026 06:46:25 +0000 Subject: [PATCH 14/33] docs: correct query defaults and connector authorization guidance Signed-off-by: SohamRatnaparkhi <92905626+SohamRatnaparkhi@users.noreply.github.com> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- api-reference/v2/openapi.json | 94 +++++++++++++++++-- essentials/v2/connectors.mdx | 25 +++-- essentials/v2/connectors/affinity.mdx | 3 + essentials/v2/connectors/airtable.mdx | 3 + essentials/v2/connectors/amplitude.mdx | 3 + essentials/v2/connectors/asana.mdx | 3 + essentials/v2/connectors/attio.mdx | 3 + essentials/v2/connectors/avoma.mdx | 3 + essentials/v2/connectors/bamboohr.mdx | 3 + essentials/v2/connectors/bigquery.mdx | 3 + essentials/v2/connectors/bookstack.mdx | 3 + essentials/v2/connectors/box.mdx | 3 + essentials/v2/connectors/calendly.mdx | 3 + essentials/v2/connectors/chargebee.mdx | 3 + essentials/v2/connectors/clickup.mdx | 3 + essentials/v2/connectors/coda.mdx | 3 + essentials/v2/connectors/codat.mdx | 3 + essentials/v2/connectors/confluence.mdx | 3 + essentials/v2/connectors/contentful.mdx | 3 + essentials/v2/connectors/copper.mdx | 3 + essentials/v2/connectors/crossbeam.mdx | 3 + essentials/v2/connectors/datadog.mdx | 3 + essentials/v2/connectors/discord.mdx | 3 + essentials/v2/connectors/dropbox.mdx | 3 + essentials/v2/connectors/dynamics.mdx | 3 + essentials/v2/connectors/eloqua.mdx | 3 + essentials/v2/connectors/figma.mdx | 3 + essentials/v2/connectors/fireflies.mdx | 3 + essentials/v2/connectors/freshdesk.mdx | 3 + essentials/v2/connectors/ga4.mdx | 3 + essentials/v2/connectors/github.mdx | 5 + essentials/v2/connectors/gitlab.mdx | 3 + essentials/v2/connectors/gmail.mdx | 3 + essentials/v2/connectors/gong.mdx | 3 + essentials/v2/connectors/google-calendar.mdx | 3 + essentials/v2/connectors/google-drive.mdx | 3 + .../v2/connectors/google-search-console.mdx | 3 + essentials/v2/connectors/google-sheets.mdx | 3 + essentials/v2/connectors/googleads.mdx | 3 + essentials/v2/connectors/gorgias.mdx | 3 + essentials/v2/connectors/granola.mdx | 3 + essentials/v2/connectors/greenhouse.mdx | 3 + essentials/v2/connectors/guru.mdx | 3 + essentials/v2/connectors/helpscout.mdx | 3 + essentials/v2/connectors/hubspot.mdx | 3 + essentials/v2/connectors/intercom.mdx | 3 + essentials/v2/connectors/iterable.mdx | 3 + essentials/v2/connectors/jira.mdx | 3 + essentials/v2/connectors/klaviyo.mdx | 3 + essentials/v2/connectors/kustomer.mdx | 3 + essentials/v2/connectors/launchdarkly.mdx | 3 + essentials/v2/connectors/lever.mdx | 3 + essentials/v2/connectors/linear.mdx | 5 + essentials/v2/connectors/linkedin-ads.mdx | 3 + essentials/v2/connectors/loom.mdx | 3 + essentials/v2/connectors/mailchimp.mdx | 3 + essentials/v2/connectors/marketo.mdx | 3 + essentials/v2/connectors/microsoft-teams.mdx | 5 +- essentials/v2/connectors/mixpanel.mdx | 3 + essentials/v2/connectors/monday.mdx | 3 + essentials/v2/connectors/ms-graph.mdx | 5 +- essentials/v2/connectors/netsuite.mdx | 3 + essentials/v2/connectors/nextcloud.mdx | 3 + essentials/v2/connectors/notion.mdx | 5 + essentials/v2/connectors/okta.mdx | 3 + essentials/v2/connectors/outlook.mdx | 5 +- essentials/v2/connectors/outreach.mdx | 3 + essentials/v2/connectors/pagerduty.mdx | 3 + essentials/v2/connectors/pardot.mdx | 3 + essentials/v2/connectors/pendo.mdx | 3 + essentials/v2/connectors/pipedrive.mdx | 3 + essentials/v2/connectors/posthog.mdx | 3 + essentials/v2/connectors/quickbooks.mdx | 3 + essentials/v2/connectors/recurly.mdx | 3 + essentials/v2/connectors/ringcentral.mdx | 3 + essentials/v2/connectors/salesforce.mdx | 3 + essentials/v2/connectors/segment.mdx | 3 + essentials/v2/connectors/sendgrid.mdx | 3 + essentials/v2/connectors/sentry.mdx | 3 + essentials/v2/connectors/servicenow.mdx | 3 + essentials/v2/connectors/sharepoint.mdx | 3 + essentials/v2/connectors/shortcut.mdx | 3 + essentials/v2/connectors/slack.mdx | 5 + essentials/v2/connectors/smartsheet.mdx | 3 + essentials/v2/connectors/stripe.mdx | 3 + essentials/v2/connectors/supabase.mdx | 3 + essentials/v2/connectors/surveymonkey.mdx | 3 + essentials/v2/connectors/tableau.mdx | 3 + essentials/v2/connectors/trello.mdx | 3 + essentials/v2/connectors/twilio.mdx | 3 + essentials/v2/connectors/twitter.mdx | 3 + essentials/v2/connectors/typeform.mdx | 3 + essentials/v2/connectors/uservoice.mdx | 3 + essentials/v2/connectors/workday-raas.mdx | 3 + essentials/v2/connectors/wrike.mdx | 3 + essentials/v2/connectors/xero.mdx | 3 + essentials/v2/connectors/zendesk.mdx | 3 + essentials/v2/connectors/zoho-crm.mdx | 3 + essentials/v2/connectors/zoom.mdx | 3 + essentials/v2/connectors/zuora.mdx | 3 + essentials/v2/context.mdx | 16 +++- essentials/v2/query.mdx | 6 +- scripts/generate_connector_pages.py | 18 ++++ scripts/test_connector_pages.py | 35 ++++++- scripts/test_docs_consistency.py | 50 ++++++++++ scripts/test_docs_examples.py | 49 ++++++++++ snippets/cookbook-setup.mdx | 13 ++- 107 files changed, 589 insertions(+), 25 deletions(-) diff --git a/api-reference/v2/openapi.json b/api-reference/v2/openapi.json index 7edff9c1..30563517 100644 --- a/api-reference/v2/openapi.json +++ b/api-reference/v2/openapi.json @@ -3868,12 +3868,12 @@ "handler.ResponseWarning": { "properties": { "code": { - "description": "Code identifies the warning type, such as acl_ignored_by_connector_enforcement.", + "description": "Stable code, including `inference_enabled_by_default` for omitted infer and `enrichment_enabled_by_default` for omitted enrich on accepted contexts.", "example": "acl_ignored_by_connector_enforcement", "type": "string" }, "collections": { - "description": "Collections the warning is about, such as the collections a multi-collection query skipped because they are being deleted.", + "description": "The collections the warning is about, when applicable.", "example": [ "team_docs", "engineering" @@ -3885,7 +3885,7 @@ "uniqueItems": false }, "message": { - "description": "Human-readable explanation of the warning.", + "description": "Human-readable notice with the accepted affected-context count and opt-out for implicit ingest defaults.", "example": "This connector enforces ACL, so the request's acl was ignored.", "type": "string" } @@ -5900,7 +5900,7 @@ "x-deprecated": "true" }, "warnings": { - "description": "Notices about parts of the request that were skipped while it still succeeded, for example collections being deleted. Absent when nothing was skipped.", + "description": "Non-fatal notices, including ignored ACLs, skipped collections, and implicit ingest inference or enrichment defaults. Absent when no notice applies. Existing notices and request IDs are preserved.", "example": [ { "code": "acl_ignored_by_connector_enforcement", @@ -11572,7 +11572,7 @@ "type": "string" }, "memories": { - "description": "Memories to ingest, encoded as a JSON array. Use `type=memory`.", + "description": "Memories encoded as JSON. Use `type=memory`. Omitted infer enables inference; accepted memories using that default produce `inference_enabled_by_default`. Explicit values produce no default notice.", "title": "memories", "type": "string" }, @@ -11620,12 +11620,94 @@ "202": { "content": { "application/json": { + "examples": { + "enrichment_enabled_by_default": { + "summary": "Accepted context with omitted enrich", + "value": { + "data": { + "failed_count": 0, + "generation_started_at_ms": 1794807761774, + "message": "Context queued for ingestion successfully. Ingestion is asynchronous: this 202 means the sources were accepted and queued, not indexed. Poll GET /context/status?database=\u003cdatabase\u003e\u0026id=\u003csource_id\u003e until each source's indexing_status reaches a terminal state (completed or errored) before querying. See https://docs.hydradb.com/api-reference/v2/endpoint/source-status for usage details. ", + "results": [ + { + "error": null, + "error_code": null, + "id": "example-context", + "infer": true, + "status": "queued", + "title": null + } + ], + "success": true, + "success_count": 1 + }, + "error": null, + "meta": { + "api_version": "2.0.1", + "collection": "docs", + "database": "crm", + "latency_ms": null, + "request_id": "ingest-warning-request", + "source_type": "memory", + "sub_tenant_id": "docs", + "tenant_id": "crm", + "warnings": [ + { + "code": "enrichment_enabled_by_default", + "message": "Enrichment is enabled by default for 1 accepted item because enrich was omitted. Set enrich to false on an item or on the request to disable enrichment." + } + ] + }, + "success": true + } + }, + "inference_enabled_by_default": { + "summary": "Accepted memory with omitted infer", + "value": { + "data": { + "failed_count": 0, + "generation_started_at_ms": 1794807761771, + "message": "Memories queued for ingestion successfully. Ingestion is asynchronous: this 202 means the sources were accepted and queued, not indexed. Poll GET /context/status?database=\u003cdatabase\u003e\u0026id=\u003csource_id\u003e until each source's indexing_status reaches a terminal state (completed or errored) before querying. See https://docs.hydradb.com/api-reference/v2/endpoint/source-status for usage details. ", + "results": [ + { + "error": null, + "error_code": null, + "id": "example-memory", + "infer": true, + "status": "queued", + "title": null + } + ], + "success": true, + "success_count": 1 + }, + "error": null, + "meta": { + "api_version": "2.0.1", + "collection": "docs", + "database": "crm", + "latency_ms": null, + "request_id": "ingest-warning-request", + "source_type": "memory", + "sub_tenant_id": "docs", + "tenant_id": "crm", + "warnings": [ + { + "code": "inference_enabled_by_default", + "message": "Inference is enabled by default for 1 accepted item because infer was omitted. Set infer to false on an item to disable inference for that item." + } + ] + }, + "success": true + } + } + }, "schema": { "$ref": "#/components/schemas/handler.Envelope-ingestion_V2IngestResponse" } } }, - "description": "Accepted" + "description": "Accepted and queued, not indexed. meta.warnings contains one inference_enabled_by_default notice for accepted legacy memory items whose infer was omitted, or one enrichment_enabled_by_default notice for accepted contexts whose item and request enrich were omitted. Notices count only accepted affected items. Explicit true or false, including inherited request-level enrich, produces no default notice; an explicit item value wins. Existing warnings, request IDs and result counts are unchanged. Poll GET /context/status for processing status." }, "400": { "content": { diff --git a/essentials/v2/connectors.mdx b/essentials/v2/connectors.mdx index 8d3fc108..a473c553 100644 --- a/essentials/v2/connectors.mdx +++ b/essentials/v2/connectors.mdx @@ -301,11 +301,11 @@ curl -X POST 'https://api.hydradb.com/connectors/{id}/configure' \ | Property | Set in | Meaning | | --- | --- | --- | | `provider` | create | Which app, such as `slack`. | -| `provider_account_scope` | create | Which account this is, such as a Slack workspace id. It keeps sources from two accounts from overwriting each other. [Set it per provider](#6-connect-several-accounts-from-one-provider). | +| `provider_account_scope` | create | A stable account identifier supplied by your application. Distinct accounts need distinct values to avoid collisions between matching external IDs in the same destination. The API does not derive or validate the native account identity. See [account scopes](#6-connect-several-accounts-from-one-provider). | | `credentials` | create | The app's credentials, in the shape of its `credential_schema`. | | `custom_instructions` | create, configure | How to interpret synced documents. See [section 4](#4-custom-ingestion-instructions). | | `sync_interval_seconds` | create | How often it syncs. The default is 1 hour for most providers. | -| `enforce_acl` | create, update | Filter reads by the caller's identity. The default is `false`, and it requires a provider with `acl_supported: true`. See [Enforce ACL](#5-acl-native-rbac-awareness). | +| `enforce_acl` | create, update | Filter reads by the caller's identity. Defaults to `false`; enabling it requires `acl_supported: true`. Only signed-in human workspace owners and writers can supply this field, even `false`. API-key clients must omit it. See [Enforce ACL](#5-acl-native-rbac-awareness). | | `lookback_days` | configure | How much history the first sync fetches. The default is 30 days. | | `resource_id`, `resource_type`, `name` | configure | Copied from discover. Send all three every time you list a resource. | | `acl` | configure | Who can read the ingested resource. By default ACLs are mirrored from the apps. If you omit it, anyone can read. | @@ -381,12 +381,14 @@ Custom instructions tell HydraDB how to read your synced documents and what to l ## 5. ACL (native RBAC awareness) -This is the best part about using managed connectors. You don't have to worry about the infrastructure and all permissions automatically come with the data. +Connectors capture provider permissions where the provider supports them. If permissions cannot be resolved, affected content without another valid ACL remains public with a persistent visible status warning. Existing valid private ACLs and revocations remain enforced. `enforce_acl: true` filters reads by the authenticated caller's identity and ignores any request `acl` for this connector's content. +Only a signed-in human workspace owner or writer can supply `enforce_acl` on create or update. API-key clients must omit the field: even `false` invokes the same authorization guard and is rejected. To change the setting, sign in to the dashboard, open the connector's settings, and use **Enforce ACL**. Omission defaults to `false` on creation; enabling it requires a provider reporting `acl_supported: true`. + ### Examples of what each provider captures - **Slack:** Public channels are visible workspace-wide; private channels only to their members. @@ -396,7 +398,7 @@ This is the best part about using managed connectors. You don't have to worry ab and so forth. For other providers, check `acl_supported` in the [provider catalog](/api-reference/v2/endpoint/list-connector-providers). For other providers that don't you can [set your own rule on the resource](#set-your-own-rule-on-a-resource). - While `enforce_acl` is `false` (the default), a request without `acl` is **not** filtered by caller identity. Either send identity in `acl`, or turn on [enforcement](#5-acl-native-rbac-awareness) if you want to set this manually. + While `enforce_acl` is `false` (the default), a request without `acl` is **not** filtered by caller identity. Send identity in `acl`, or ask a signed-in human workspace owner or writer to enable **Enforce ACL** in the dashboard connector settings. Do not send `enforce_acl: false` as an API-key workaround. ### Set your own rule on a resource @@ -457,7 +459,18 @@ curl -X PATCH 'https://api.hydradb.com/context/confluence-page-9f62/metadata' \ ## 6. Connect several accounts from one provider -Create one or multiple accounts per connector. Filter on `connector_id` to query one account. Read more about this under API references of each of the connectors offered. +Create one connector per account, each with that account's own credentials and resources. A connector does not combine several accounts' credentials. Give distinct accounts of the same scoped provider different `provider_account_scope` values; reusing a scope can cause sources with the same external ID to overwrite each other in a shared destination. + +For Slack, GitHub, Linear, and Notion, choose a stable account, workspace, or organization identifier and keep its mapping to the connector in your application. The API stores the supplied scope; it does not derive or validate the native account identity or reject duplicate scopes. These caller-provided examples illustrate distinct values, not required provider-specific syntax: + +| Provider | Account A example | Account B example | +| --- | --- | --- | +| `slack` | `slack-account-a` | `slack-account-b` | +| `github` | `github-account-a` | `github-account-b` | +| `linear` | `linear-account-a` | `linear-account-b` | +| `notion` | `notion-account-a` | `notion-account-b` | + +Several connectors can write to the same database and collection. Filter on `connector_id` to select one connector/account in a query. Database and collection routing choose where content lands; collection names do not authorize access. Apply the caller's authenticated scope and ACL rules to reads and mutations. ## Advanced (mostly for agents) @@ -477,7 +490,7 @@ Create one or multiple accounts per connector. Filter on `connector_id` to query - **Credentials:** credentials that don't match `credential_schema` are rejected with `422`. - **Routing:** each resource can route to its own `collection` or `database`. - - **Account scope:** `provider_account_scope` is part of every synced source's deduplication key, so sources from two accounts never overwrite each other. + - **Account scope:** the supplied `provider_account_scope` is part of a synced source's identity. Distinct scopes keep matching external IDs from different accounts separate in the same destination; reusing a scope can cause overwrites. diff --git a/essentials/v2/connectors/affinity.mdx b/essentials/v2/connectors/affinity.mdx index 32005eab..31c65b8a 100644 --- a/essentials/v2/connectors/affinity.mdx +++ b/essentials/v2/connectors/affinity.mdx @@ -14,12 +14,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `affinity` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/airtable.mdx b/essentials/v2/connectors/airtable.mdx index 3629bbc9..6aa5227e 100644 --- a/essentials/v2/connectors/airtable.mdx +++ b/essentials/v2/connectors/airtable.mdx @@ -11,6 +11,8 @@ The provider description does not enumerate fixed indexed object types. Use the ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + 1. Create an Airtable Personal Access Token with data.records:read and schema.bases:read, then grant that token access to every base you want to select. Correct scopes alone do not grant base access. Legacy API keys are retired. 2. Airtable Personal Access Tokens have no refresh flow. Rotate by creating a replacement with the same scopes and base grants, updating the connector, validating discovery and sync, and then revoking the old token. 3. Pick bases after connecting. Every table record becomes a custom searchable object; record-link fields become graph links, attachment filenames remain in record text, and supported attachment file contents are downloaded through short-lived claim-check pointers and indexed. Oversized or unsupported files remain metadata-only without blocking the record. @@ -23,6 +25,7 @@ Use provider `airtable` with [Create Connector](/api-reference/v2/endpoint/creat - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/amplitude.mdx b/essentials/v2/connectors/amplitude.mdx index ac96b8a3..95167920 100644 --- a/essentials/v2/connectors/amplitude.mdx +++ b/essentials/v2/connectors/amplitude.mdx @@ -13,12 +13,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `amplitude` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/asana.mdx b/essentials/v2/connectors/asana.mdx index d3992955..75048ec2 100644 --- a/essentials/v2/connectors/asana.mdx +++ b/essentials/v2/connectors/asana.mdx @@ -16,6 +16,8 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + 1. Create a personal access token in Asana's Developer Console under My apps → Personal access tokens. PATs inherit the creating user's visibility and have no scope picker, so use a dedicated integration user with access to every project you intend to select. 2. Asana PATs do not refresh automatically. Rotate by creating a replacement token, updating the connector, verifying a sync, and only then revoking the old token; removing the integration user immediately invalidates its token. 3. Pick the projects to sync after connecting. Tasks, subtasks, projects and comment stories become searchable; system-generated activity stories are skipped. The connector only reads Asana. @@ -28,6 +30,7 @@ Use provider `asana` with [Create Connector](/api-reference/v2/endpoint/create-c - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/attio.mdx b/essentials/v2/connectors/attio.mdx index 12b25389..a114ef9a 100644 --- a/essentials/v2/connectors/attio.mdx +++ b/essentials/v2/connectors/attio.mdx @@ -20,6 +20,8 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + 1. Connect with a workspace API key: Attio workspace settings → Developers → API keys. The key is static and does not expire, so this connection never needs reconnecting. 2. Grant the key the read scopes for records, objects, lists, list entries, notes, tasks, comments and users. A key missing a scope fails with a 403 that names it; granting them all up front is faster than finding out one at a time. 3. Pass the key as access_token. Objects (people, companies, deals, custom ones) and lists are picked in the resource-selection step after connecting; leaving the objects/lists credential fields empty is the normal path. @@ -31,6 +33,7 @@ Use provider `attio` with [Create Connector](/api-reference/v2/endpoint/create-c - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/avoma.mdx b/essentials/v2/connectors/avoma.mdx index 5c46245e..91c9e585 100644 --- a/essentials/v2/connectors/avoma.mdx +++ b/essentials/v2/connectors/avoma.mdx @@ -14,12 +14,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `avoma` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/bamboohr.mdx b/essentials/v2/connectors/bamboohr.mdx index 7f5c955d..04667049 100644 --- a/essentials/v2/connectors/bamboohr.mdx +++ b/essentials/v2/connectors/bamboohr.mdx @@ -15,12 +15,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `bamboohr` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/bigquery.mdx b/essentials/v2/connectors/bigquery.mdx index ff8120b0..5408c329 100644 --- a/essentials/v2/connectors/bigquery.mdx +++ b/essentials/v2/connectors/bigquery.mdx @@ -11,6 +11,8 @@ The provider description does not enumerate fixed indexed object types. Use the ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + 1. Connect with a service-account key: paste the downloaded key file as credentials_json (grant the account the BigQuery Data Viewer and BigQuery Job User roles). client_email + private_key, or client_id + client_secret + refresh_token, also work. 2. Pick which tables to sync in the resource-selection step; each table's rows become searchable documents. 3. Replication is configured PER TABLE, alongside the selection: pass table_configs on POST /connectors/{id}/configure; the same request that selects the tables; with exactly one mode per table. The dashboard collects this on the table-selection screen. @@ -27,6 +29,7 @@ Use provider `bigquery` with [Create Connector](/api-reference/v2/endpoint/creat - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/bookstack.mdx b/essentials/v2/connectors/bookstack.mdx index e7752ef6..d095f91e 100644 --- a/essentials/v2/connectors/bookstack.mdx +++ b/essentials/v2/connectors/bookstack.mdx @@ -15,12 +15,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `bookstack` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/box.mdx b/essentials/v2/connectors/box.mdx index aba47a82..eedc7204 100644 --- a/essentials/v2/connectors/box.mdx +++ b/essentials/v2/connectors/box.mdx @@ -13,12 +13,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `box` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/calendly.mdx b/essentials/v2/connectors/calendly.mdx index e7615bb1..ba2b0828 100644 --- a/essentials/v2/connectors/calendly.mdx +++ b/essentials/v2/connectors/calendly.mdx @@ -13,12 +13,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `calendly` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/chargebee.mdx b/essentials/v2/connectors/chargebee.mdx index 979a3d8c..f46e834d 100644 --- a/essentials/v2/connectors/chargebee.mdx +++ b/essentials/v2/connectors/chargebee.mdx @@ -16,12 +16,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `chargebee` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/clickup.mdx b/essentials/v2/connectors/clickup.mdx index 8021c64a..ff7b95bc 100644 --- a/essentials/v2/connectors/clickup.mdx +++ b/essentials/v2/connectors/clickup.mdx @@ -15,6 +15,8 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + 1. Create a personal API token under avatar → Settings → Apps → API Token. ClickUp personal tokens have no scope picker and inherit the user; use a dedicated account that can open every Workspace you intend to select. 2. ClickUp personal tokens have no refresh flow. Rotate by generating a replacement, updating the connector, verifying discovery and sync, and then revoking the old token; an OAuth installation must use ClickUp's refresh-token lifecycle instead. 3. Pick Workspaces after connecting. Tasks and subtasks are indexed with descriptions, status, assignees, priority, tags and list/folder context. Task comments are indexed as first-class comment documents with human author and parent-task context. ClickUp limits personal and OAuth tokens per Workspace plan, starting at 100 requests/minute on Free, Unlimited and Business. @@ -26,6 +28,7 @@ Use provider `clickup` with [Create Connector](/api-reference/v2/endpoint/create - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/coda.mdx b/essentials/v2/connectors/coda.mdx index b03b6e50..2557702e 100644 --- a/essentials/v2/connectors/coda.mdx +++ b/essentials/v2/connectors/coda.mdx @@ -16,12 +16,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `coda` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/codat.mdx b/essentials/v2/connectors/codat.mdx index 126f4272..836c41fe 100644 --- a/essentials/v2/connectors/codat.mdx +++ b/essentials/v2/connectors/codat.mdx @@ -16,12 +16,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `codat` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/confluence.mdx b/essentials/v2/connectors/confluence.mdx index bf2ae591..ecef478e 100644 --- a/essentials/v2/connectors/confluence.mdx +++ b/essentials/v2/connectors/confluence.mdx @@ -14,12 +14,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `confluence` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/contentful.mdx b/essentials/v2/connectors/contentful.mdx index 5f026588..9690c71a 100644 --- a/essentials/v2/connectors/contentful.mdx +++ b/essentials/v2/connectors/contentful.mdx @@ -14,12 +14,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `contentful` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/copper.mdx b/essentials/v2/connectors/copper.mdx index 1f96878d..0e98bbca 100644 --- a/essentials/v2/connectors/copper.mdx +++ b/essentials/v2/connectors/copper.mdx @@ -19,12 +19,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `copper` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/crossbeam.mdx b/essentials/v2/connectors/crossbeam.mdx index ad52bf5f..32f3e1f1 100644 --- a/essentials/v2/connectors/crossbeam.mdx +++ b/essentials/v2/connectors/crossbeam.mdx @@ -16,12 +16,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `crossbeam` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/datadog.mdx b/essentials/v2/connectors/datadog.mdx index e723fcaf..038fedac 100644 --- a/essentials/v2/connectors/datadog.mdx +++ b/essentials/v2/connectors/datadog.mdx @@ -22,6 +22,8 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + 1. Datadog needs TWO keys and they do different jobs. Create an API key under Organization Settings → API Keys, and an application key under Organization Settings → Application Keys. The API key identifies the org; the application key carries the scopes, so it is the one that decides what syncs. 2. An application key is created UNSCOPED and the create dialog has no scope picker; the key list will show it as "Not Scoped", meaning it inherits everything its owner can do. You have to open the key afterwards and Edit it to apply scopes, so a key made the obvious way is a full-permission key. 3. Grant exactly these and nothing more: timeseries_query, slos_read, logs_read_data, monitors_read, dashboards_read, notebooks_read and incident_read. Datadog's own description of logs_read_data claims reading logs also needs "Logs Read Index Data"; tested against a live org it does not, so do not grant the extra one. @@ -38,6 +40,7 @@ Use provider `datadog` with [Create Connector](/api-reference/v2/endpoint/create - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/discord.mdx b/essentials/v2/connectors/discord.mdx index 66302637..c06fbb4e 100644 --- a/essentials/v2/connectors/discord.mdx +++ b/essentials/v2/connectors/discord.mdx @@ -13,6 +13,8 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + 1. Create a Discord application and bot in the Developer Portal, reset/copy the bot token, and invite it to each server with OAuth2 scope bot. Grant View Channels and Read Message History on every selected channel; the connector is read-only and never sends messages. 2. Enable Message Content Intent under Developer Portal → Bot → Privileged Gateway Intents. The connector verifies the application flag and refuses to sync when it is absent instead of silently indexing empty content fields. 3. Pick the Discord servers to sync. Every readable message in their text and announcement channels, active threads, public archived threads, and joined private archived threads becomes a message source. User, role and channel mentions are rewritten to human display names; attachments contribute filenames but their bytes are not downloaded. @@ -26,6 +28,7 @@ Use provider `discord` with [Create Connector](/api-reference/v2/endpoint/create - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/dropbox.mdx b/essentials/v2/connectors/dropbox.mdx index eac1e6c8..7ea06c29 100644 --- a/essentials/v2/connectors/dropbox.mdx +++ b/essentials/v2/connectors/dropbox.mdx @@ -13,12 +13,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `dropbox` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/dynamics.mdx b/essentials/v2/connectors/dynamics.mdx index f5221b19..97b23eca 100644 --- a/essentials/v2/connectors/dynamics.mdx +++ b/essentials/v2/connectors/dynamics.mdx @@ -16,12 +16,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `dynamics` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/eloqua.mdx b/essentials/v2/connectors/eloqua.mdx index 81164835..2e9c44c1 100644 --- a/essentials/v2/connectors/eloqua.mdx +++ b/essentials/v2/connectors/eloqua.mdx @@ -15,12 +15,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `eloqua` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/figma.mdx b/essentials/v2/connectors/figma.mdx index c73f7ea6..6d07c538 100644 --- a/essentials/v2/connectors/figma.mdx +++ b/essentials/v2/connectors/figma.mdx @@ -13,12 +13,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `figma` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/fireflies.mdx b/essentials/v2/connectors/fireflies.mdx index fc9d6e17..df55d884 100644 --- a/essentials/v2/connectors/fireflies.mdx +++ b/essentials/v2/connectors/fireflies.mdx @@ -13,12 +13,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `fireflies` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/freshdesk.mdx b/essentials/v2/connectors/freshdesk.mdx index 7fb8256f..f96c91d2 100644 --- a/essentials/v2/connectors/freshdesk.mdx +++ b/essentials/v2/connectors/freshdesk.mdx @@ -14,6 +14,8 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + 1. Copy an agent API key from Freshdesk Profile settings and enter only the helpdesk subdomain: for acme.freshdesk.com, enter acme. The key has no scope picker and reads according to that agent's Global, Group or Restricted ticket scope. 2. Freshdesk API keys do not refresh automatically and are tied to the agent. Rotate by resetting or replacing the key, updating the connector, and validating a sync before disabling the prior agent credential. 3. Tickets and public replies become searchable and link back to the agent portal. Private agent notes are off by default because Freshdesk's per-agent visibility is not yet reproduced in HydraDB; when explicitly enabled they are indexed tenant-wide with an RBAC warning, so enable include_private_notes only when every tenant member may read them. @@ -25,6 +27,7 @@ Use provider `freshdesk` with [Create Connector](/api-reference/v2/endpoint/crea - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/ga4.mdx b/essentials/v2/connectors/ga4.mdx index ae563a9e..2119da1d 100644 --- a/essentials/v2/connectors/ga4.mdx +++ b/essentials/v2/connectors/ga4.mdx @@ -21,12 +21,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `ga4` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/github.mdx b/essentials/v2/connectors/github.mdx index f1d04709..6163e917 100644 --- a/essentials/v2/connectors/github.mdx +++ b/essentials/v2/connectors/github.mdx @@ -14,12 +14,17 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + +Set a stable, distinct `provider_account_scope` for each connected account yourself, for example `github-account-a` and `github-account-b`. These are caller-provided example identifiers, not validated native account-ID formats. The API stores the supplied value; it does not derive or validate the provider's account identity. Reusing a scope can make sources with matching external IDs overwrite each other in the same destination. + Use provider `github` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/gitlab.mdx b/essentials/v2/connectors/gitlab.mdx index 6c9d71e2..41082e9c 100644 --- a/essentials/v2/connectors/gitlab.mdx +++ b/essentials/v2/connectors/gitlab.mdx @@ -20,12 +20,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `gitlab` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/gmail.mdx b/essentials/v2/connectors/gmail.mdx index 7e28766f..01e3c06d 100644 --- a/essentials/v2/connectors/gmail.mdx +++ b/essentials/v2/connectors/gmail.mdx @@ -13,12 +13,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `gmail` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/gong.mdx b/essentials/v2/connectors/gong.mdx index 0207d8ff..4742e829 100644 --- a/essentials/v2/connectors/gong.mdx +++ b/essentials/v2/connectors/gong.mdx @@ -15,6 +15,8 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + 1. Connect with a Gong API key pair: in Gong's Admin center open Settings → Ecosystem → API → API keys → Get API key. Only a Gong technical administrator can create one. Copy the Access Key and the Access Key Secret (the secret is shown once) and pass them as access_key and access_key_secret. 2. When creating the key, leave the TTL empty: a key minted with an expiry stops the connector on that date and every sync after it fails with 401 until a new key is pasted. Leave Trusted IPs empty too, unless you add HydraDB's egress addresses; a list that excludes them fails every request with 403. 3. The same page shows your company's API base URL. If it is not https://api.gong.io (Gong assigns some companies their own host, e.g. https://us-12345.api.gong.io), pass it as api_base_url; only *.api.gong.io hosts are accepted. @@ -30,6 +32,7 @@ Use provider `gong` with [Create Connector](/api-reference/v2/endpoint/create-co - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/google-calendar.mdx b/essentials/v2/connectors/google-calendar.mdx index 5ee7de2b..54946e91 100644 --- a/essentials/v2/connectors/google-calendar.mdx +++ b/essentials/v2/connectors/google-calendar.mdx @@ -13,12 +13,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `google_calendar` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/google-drive.mdx b/essentials/v2/connectors/google-drive.mdx index d80996df..e0609c02 100644 --- a/essentials/v2/connectors/google-drive.mdx +++ b/essentials/v2/connectors/google-drive.mdx @@ -13,12 +13,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `google_drive` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/google-search-console.mdx b/essentials/v2/connectors/google-search-console.mdx index 699daab0..ba024c78 100644 --- a/essentials/v2/connectors/google-search-console.mdx +++ b/essentials/v2/connectors/google-search-console.mdx @@ -18,12 +18,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `google_search_console` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/google-sheets.mdx b/essentials/v2/connectors/google-sheets.mdx index f2adc1e4..2df1f90d 100644 --- a/essentials/v2/connectors/google-sheets.mdx +++ b/essentials/v2/connectors/google-sheets.mdx @@ -14,12 +14,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `google_sheets` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/googleads.mdx b/essentials/v2/connectors/googleads.mdx index da5b0894..20f68824 100644 --- a/essentials/v2/connectors/googleads.mdx +++ b/essentials/v2/connectors/googleads.mdx @@ -41,12 +41,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `googleads` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/gorgias.mdx b/essentials/v2/connectors/gorgias.mdx index 952516be..8c126eb3 100644 --- a/essentials/v2/connectors/gorgias.mdx +++ b/essentials/v2/connectors/gorgias.mdx @@ -14,12 +14,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `gorgias` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/granola.mdx b/essentials/v2/connectors/granola.mdx index 65c4ad03..05474f15 100644 --- a/essentials/v2/connectors/granola.mdx +++ b/essentials/v2/connectors/granola.mdx @@ -13,12 +13,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `granola` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/greenhouse.mdx b/essentials/v2/connectors/greenhouse.mdx index c1aa0d1e..8be4db17 100644 --- a/essentials/v2/connectors/greenhouse.mdx +++ b/essentials/v2/connectors/greenhouse.mdx @@ -17,12 +17,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `greenhouse` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/guru.mdx b/essentials/v2/connectors/guru.mdx index 9d907dd8..c4628525 100644 --- a/essentials/v2/connectors/guru.mdx +++ b/essentials/v2/connectors/guru.mdx @@ -13,6 +13,8 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + 1. Connect with a Guru API token: in Guru open Manage → Apps & Integrations → API Access and click Generate User Token (Admins, and roles with the Manage Apps & Integrations permission, can generate one, including on behalf of another user). A user token pairs the Guru username, usually the email, with the token (pass them as email and api_token) and reads exactly what that user can read; there is no scope picker. A collection token pairs the collection ID with the token (pass them as collection_id and api_token) and is read-only, scoped to that one collection; the connector then offers only that collection. Set exactly one of email or collection_id. 2. Pick the collections to sync in the resource-selection step; each card becomes one searchable document carrying its collection, folders, tags, verification state, verifiers, owner and comment count. Comment threads and replies are separate searchable comment documents linked to their card with comment_on and to their parent thread with reply_to, not embedded into the card. Each sync picks up cards edited, re-verified or commented on since the last one. 3. With permission-aware search on, each collection is restricted to the members of the Guru groups that can open it. Reading that needs the user token of a Guru Admin or of the collection's owner. With a collection token, or a member's token Guru refuses, the collection stays readable by everyone in this workspace and the connector shows a warning naming the token to use, until you reconnect with one or set an access rule on the resource. @@ -24,6 +26,7 @@ Use provider `guru` with [Create Connector](/api-reference/v2/endpoint/create-co - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/helpscout.mdx b/essentials/v2/connectors/helpscout.mdx index b9bb6dcf..7739db00 100644 --- a/essentials/v2/connectors/helpscout.mdx +++ b/essentials/v2/connectors/helpscout.mdx @@ -14,12 +14,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `helpscout` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/hubspot.mdx b/essentials/v2/connectors/hubspot.mdx index 3827f94b..a1a5a601 100644 --- a/essentials/v2/connectors/hubspot.mdx +++ b/essentials/v2/connectors/hubspot.mdx @@ -21,12 +21,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `hubspot` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/intercom.mdx b/essentials/v2/connectors/intercom.mdx index 8732cc47..85a99be6 100644 --- a/essentials/v2/connectors/intercom.mdx +++ b/essentials/v2/connectors/intercom.mdx @@ -16,6 +16,8 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + 1. Use an Intercom private-app access token or OAuth token with Read conversations, Read and list users and companies, Read admins, Read and List articles, and Read tickets. The connector only reads. 2. Rotate a private-app token by replacing the connector secret and validating a sync before revoking the old token. OAuth installations must preserve refresh tokens and reauthorize if requested scopes or teammate visibility change. 3. Use the token of a teammate set to All conversations. Since July 2026, an OAuth token can read only conversations visible to the teammate who authorized it. Regenerate the token after changing that setting, or the index silently narrows. @@ -29,6 +31,7 @@ Use provider `intercom` with [Create Connector](/api-reference/v2/endpoint/creat - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/iterable.mdx b/essentials/v2/connectors/iterable.mdx index 105ab99a..ec2643cb 100644 --- a/essentials/v2/connectors/iterable.mdx +++ b/essentials/v2/connectors/iterable.mdx @@ -15,12 +15,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `iterable` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/jira.mdx b/essentials/v2/connectors/jira.mdx index 04770949..68b9603c 100644 --- a/essentials/v2/connectors/jira.mdx +++ b/essentials/v2/connectors/jira.mdx @@ -15,12 +15,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `jira` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/klaviyo.mdx b/essentials/v2/connectors/klaviyo.mdx index 26578ce8..49256be4 100644 --- a/essentials/v2/connectors/klaviyo.mdx +++ b/essentials/v2/connectors/klaviyo.mdx @@ -18,12 +18,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `klaviyo` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/kustomer.mdx b/essentials/v2/connectors/kustomer.mdx index 5bb9738a..321f9278 100644 --- a/essentials/v2/connectors/kustomer.mdx +++ b/essentials/v2/connectors/kustomer.mdx @@ -14,12 +14,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `kustomer` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/launchdarkly.mdx b/essentials/v2/connectors/launchdarkly.mdx index 66b24aac..b09960b8 100644 --- a/essentials/v2/connectors/launchdarkly.mdx +++ b/essentials/v2/connectors/launchdarkly.mdx @@ -18,6 +18,8 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + 1. Create the token in LaunchDarkly under Account settings → Authorization → Access tokens → Create token. LaunchDarkly has no scope checkboxes: a token carries a ROLE, and the role is the whole decision. 2. Set Role to Reader, which is the default. Reader is all this connector needs; verified against the API, every endpoint it calls answers 200 with a read-only token. Writer or Admin add only write access, so they buy you nothing and let a leaked token turn your flags on and off. 3. Tick "This is a service token". A personal token inherits the role of whoever minted it and stops working the moment that person is deactivated, which is the most common way this connection breaks. The token is shown once; copy it before closing the dialog. @@ -34,6 +36,7 @@ Use provider `launchdarkly` with [Create Connector](/api-reference/v2/endpoint/c - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/lever.mdx b/essentials/v2/connectors/lever.mdx index a7487961..10ad566e 100644 --- a/essentials/v2/connectors/lever.mdx +++ b/essentials/v2/connectors/lever.mdx @@ -18,12 +18,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `lever` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/linear.mdx b/essentials/v2/connectors/linear.mdx index e66c0470..c4477ef9 100644 --- a/essentials/v2/connectors/linear.mdx +++ b/essentials/v2/connectors/linear.mdx @@ -13,12 +13,17 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + +Set a stable, distinct `provider_account_scope` for each connected account yourself, for example `linear-account-a` and `linear-account-b`. These are caller-provided example identifiers, not validated native account-ID formats. The API stores the supplied value; it does not derive or validate the provider's account identity. Reusing a scope can make sources with matching external IDs overwrite each other in the same destination. + Use provider `linear` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/linkedin-ads.mdx b/essentials/v2/connectors/linkedin-ads.mdx index 83a955cd..226277bd 100644 --- a/essentials/v2/connectors/linkedin-ads.mdx +++ b/essentials/v2/connectors/linkedin-ads.mdx @@ -20,12 +20,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `linkedin_ads` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/loom.mdx b/essentials/v2/connectors/loom.mdx index 8334def9..e55dd492 100644 --- a/essentials/v2/connectors/loom.mdx +++ b/essentials/v2/connectors/loom.mdx @@ -13,12 +13,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `loom` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/mailchimp.mdx b/essentials/v2/connectors/mailchimp.mdx index cf595552..5576b138 100644 --- a/essentials/v2/connectors/mailchimp.mdx +++ b/essentials/v2/connectors/mailchimp.mdx @@ -15,12 +15,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `mailchimp` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/marketo.mdx b/essentials/v2/connectors/marketo.mdx index aafe898e..9a088499 100644 --- a/essentials/v2/connectors/marketo.mdx +++ b/essentials/v2/connectors/marketo.mdx @@ -15,12 +15,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `marketo` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/microsoft-teams.mdx b/essentials/v2/connectors/microsoft-teams.mdx index 0974936a..58919b43 100644 --- a/essentials/v2/connectors/microsoft-teams.mdx +++ b/essentials/v2/connectors/microsoft-teams.mdx @@ -14,11 +14,13 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + 1. Connect with an Azure AD app registration (app-only, client credentials): in the Azure portal open Microsoft Entra ID → App registrations → New registration (any name, no redirect URI). Copy the Directory (tenant) ID as tenant and the Application (client) ID as client_id, then under Certificates & secrets create a client secret and paste its Value (shown once) as client_secret. 2. Under API permissions → Add a permission → Microsoft Graph → Application permissions (not Delegated) add Team.ReadBasic.All, Channel.ReadBasic.All, ChannelMessage.Read.All, TeamMember.Read.All, ChannelMember.Read.All and User.ReadBasic.All, plus Chat.Read.All to offer people's Teams chats, then click Grant admin consent (a Global or Application Administrator). The connect step reads the token's roles; without Chat.Read.All no chats appear in the picker. 3. Reading channel and chat messages with application permissions is a Microsoft Teams protected API: after consent, submit https://aka.ms/teamsgraph/requestaccess with the Application (client) ID and tenant ID (Microsoft usually answers within a week). Until it is approved every Teams sync fails with 403 even though the permission shows as granted; the picker works regardless. 4. Pick the teams and the people whose Teams chats to sync in the resource-selection step. A team syncs its standard channels (root posts and replies each become a message document, replies linked to their root); a chat user syncs the 1:1, group and meeting chats they take part in. Chats are opted in per person on purpose: they are the most private surface Graph exposes. -5. Every message carries who may see it in Microsoft 365: the team's members for a standard channel, the channel's members (plus the teams it is shared with) for a private or shared channel, and the participants for a chat. With acl_supported on for the provider, permission-aware search shows each message only to those people. A complete roster is authoritative; when Microsoft omits, truncates or refuses a roster, the message remains tenant-public under the current fail-open policy and carries a persistent rbac_warning instead of applying a partial allow-list. +5. Every message carries who may see it in Microsoft 365: the team's members for a standard channel, the channel's members (plus the teams it is shared with) for a private or shared channel, and the participants for a chat. With Enforce ACL enabled for a provider reporting acl_supported: true, permission-aware search shows each message only to those people. A complete roster is authoritative; when Microsoft omits, truncates or refuses a roster, the message remains tenant-public under the current fail-open policy and carries a persistent rbac_warning instead of applying a partial allow-list. 6. Private and shared channels are skipped by default (Teams shows them only to their members); set include_private_channels to true to index them, restricted to their members. 7. Each sync reads only what changed: Graph orders a channel's posts by the last activity of the whole thread, so an old post that gets a new reply is picked up. Edits re-index the message. A message deleted in Teams after it was indexed is replaced by a hidden stub on the next sync. 8. Rotate the client secret before it expires (Azure defaults to 6-24 months): an expired secret stops every sync with a message naming the fix. Pasting a new secret value re-enables the connector. @@ -29,6 +31,7 @@ Use provider `microsoft_teams` with [Create Connector](/api-reference/v2/endpoin - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/mixpanel.mdx b/essentials/v2/connectors/mixpanel.mdx index f22d8606..0a0bdbce 100644 --- a/essentials/v2/connectors/mixpanel.mdx +++ b/essentials/v2/connectors/mixpanel.mdx @@ -17,12 +17,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `mixpanel` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/monday.mdx b/essentials/v2/connectors/monday.mdx index e60c7d9f..dc9368bc 100644 --- a/essentials/v2/connectors/monday.mdx +++ b/essentials/v2/connectors/monday.mdx @@ -14,6 +14,8 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + 1. Paste a Monday personal API token from Profile → Developers → My Access Tokens, or an OAuth token whose app has boards:read. A personal token inherits the user's board visibility; private boards the user cannot open will not appear in the picker. 2. A Monday personal token does not use an OAuth refresh flow. Rotate it by updating and validating the connector before revoking the prior token; OAuth installations must keep their provider refresh flow active. 3. Pick boards after connecting. Each active item becomes a searchable task containing its name and rendered column values, with board-relation columns represented as graph links. Archived/deleted items are not enumerable through Monday's board items_page API and can remain indexed until a full resync. @@ -28,6 +30,7 @@ Use provider `monday` with [Create Connector](/api-reference/v2/endpoint/create- - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/ms-graph.mdx b/essentials/v2/connectors/ms-graph.mdx index 0e20b0c8..aa17aa3a 100644 --- a/essentials/v2/connectors/ms-graph.mdx +++ b/essentials/v2/connectors/ms-graph.mdx @@ -15,11 +15,13 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + 1. Connect with an Azure AD app registration (app-only, client credentials): in the Azure portal open Microsoft Entra ID → App registrations → New registration (any name, no redirect URI). Copy the Directory (tenant) ID as tenant and the Application (client) ID as client_id, then under Certificates & secrets create a client secret and paste its Value (shown once) as client_secret. 2. Under API permissions → Add a permission → Microsoft Graph → Application permissions (not Delegated) add Team.ReadBasic.All, Channel.ReadBasic.All, ChannelMessage.Read.All, TeamMember.Read.All and ChannelMember.Read.All for Teams channels, User.ReadBasic.All plus Mail.Read for Outlook, and Chat.Read.All to offer people's Teams chats, then click Grant admin consent (a Global or Application Administrator). The connect step reads the token's roles and names any permission that is missing; a family whose permissions are absent simply does not appear in the picker. 3. Reading channel and chat messages with application permissions is a Microsoft Teams protected API: after consent, submit https://aka.ms/teamsgraph/requestaccess with the Application (client) ID and tenant ID (Microsoft usually answers within a week). Until it is approved every Teams sync fails with 403 even though the permission shows as granted; the picker and Outlook work regardless. 4. Pick the teams, the mailboxes and the people whose Teams chats to sync in the resource-selection step. A team syncs its standard channels (root posts and replies each become a message document, replies linked to their root); a mailbox syncs every message received in the history window outside Drafts, Junk Email, Deleted Items, Outbox and Conversation History, with text bodies and attachment names; a chat user syncs the 1:1, group and meeting chats they take part in. Chats are opted in per person on purpose: they are the most private surface Graph exposes. -5. Every message carries who may see it in Microsoft 365: the team's members for a standard channel, the channel's members (plus the teams it is shared with) for a private or shared channel, the participants for a chat, and the mailbox owner for mail. With acl_supported on for the provider, permission-aware search shows each message only to those people. A complete roster is authoritative; when Microsoft omits, truncates or refuses a roster, the message remains tenant-public under the current fail-open policy and carries a persistent rbac_warning instead of applying a partial allow-list. +5. Every message carries who may see it in Microsoft 365: the team's members for a standard channel, the channel's members (plus the teams it is shared with) for a private or shared channel, the participants for a chat, and the mailbox owner for mail. With Enforce ACL enabled for a provider reporting acl_supported: true, permission-aware search shows each message only to those people. A complete roster is authoritative; when Microsoft omits, truncates or refuses a roster, the message remains tenant-public under the current fail-open policy and carries a persistent rbac_warning instead of applying a partial allow-list. 6. Mail.Read grants the app every mailbox in the tenant. To limit it to the mailboxes you select, create an Exchange application access policy (New-ApplicationAccessPolicy -AppId `` -PolicyScopeGroupId `` -AccessRight RestrictAccess); a selected mailbox outside the policy fails the sync with a message naming the policy rather than syncing silently empty. Leave Mail.Read out entirely for a Teams-only connector. 7. Private and shared channels are skipped by default (Teams shows them only to their members); set include_private_channels to true to index them, restricted to their members. 8. Each sync reads only what changed: Graph orders a channel's posts by the last activity of the whole thread, so an old post that gets a new reply is picked up, and mail is filtered server-side on lastModifiedDateTime. Edits re-index the message. A message deleted in Teams, and mail moved to Deleted Items or Junk Email after it was indexed, is replaced by a hidden stub on the next sync; mail purged from Deleted Items leaves no trace until a full re-sync. @@ -31,6 +33,7 @@ Use provider `ms_graph` with [Create Connector](/api-reference/v2/endpoint/creat - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/netsuite.mdx b/essentials/v2/connectors/netsuite.mdx index f1b49c0d..0a0b5f5a 100644 --- a/essentials/v2/connectors/netsuite.mdx +++ b/essentials/v2/connectors/netsuite.mdx @@ -16,12 +16,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `netsuite` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/nextcloud.mdx b/essentials/v2/connectors/nextcloud.mdx index 185840e9..83fc7ea7 100644 --- a/essentials/v2/connectors/nextcloud.mdx +++ b/essentials/v2/connectors/nextcloud.mdx @@ -13,12 +13,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `nextcloud` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/notion.mdx b/essentials/v2/connectors/notion.mdx index 192c69b6..d023119b 100644 --- a/essentials/v2/connectors/notion.mdx +++ b/essentials/v2/connectors/notion.mdx @@ -13,12 +13,17 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + +Set a stable, distinct `provider_account_scope` for each connected account yourself, for example `notion-account-a` and `notion-account-b`. These are caller-provided example identifiers, not validated native account-ID formats. The API stores the supplied value; it does not derive or validate the provider's account identity. Reusing a scope can make sources with matching external IDs overwrite each other in the same destination. + Use provider `notion` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/okta.mdx b/essentials/v2/connectors/okta.mdx index c7213f2f..35fc35db 100644 --- a/essentials/v2/connectors/okta.mdx +++ b/essentials/v2/connectors/okta.mdx @@ -16,6 +16,8 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + 1. Create an API token: Okta admin console → Security → API → Tokens → Create Token. There is no scope picker and no role selector on that dialog; the token silently inherits the role of whoever creates it. 2. That inheritance is the thing to get right. To get a least-privilege token you must be signed in AS a Read-only Administrator when you mint it; minting as a Super Admin gives you a Super Admin token with nothing in the UI saying so. Check the Role column in the token list afterwards to confirm what you actually created. 3. The create form has a required dropdown, "API calls made with this token must originate from". Leaving it unset fails with only "We found some errors" and no indication of which field. Choose Any IP unless you have defined an Okta network zone covering HydraDB's egress addresses. @@ -29,6 +31,7 @@ Use provider `okta` with [Create Connector](/api-reference/v2/endpoint/create-co - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/outlook.mdx b/essentials/v2/connectors/outlook.mdx index 4709b65e..ed7d1dd3 100644 --- a/essentials/v2/connectors/outlook.mdx +++ b/essentials/v2/connectors/outlook.mdx @@ -13,10 +13,12 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + 1. Connect with an Azure AD app registration (app-only, client credentials): in the Azure portal open Microsoft Entra ID → App registrations → New registration (any name, no redirect URI). Copy the Directory (tenant) ID as tenant and the Application (client) ID as client_id, then under Certificates & secrets create a client secret and paste its Value (shown once) as client_secret. 2. Under API permissions → Add a permission → Microsoft Graph → Application permissions (not Delegated) add User.ReadBasic.All and Mail.Read, then click Grant admin consent (a Global or Application Administrator). The connect step fails with a message naming them when either is missing. 3. Pick the mailboxes to sync in the resource-selection step. A mailbox syncs every message received in the history window outside Drafts, Junk Email, Deleted Items, Outbox and Conversation History, with text bodies and attachment names. -4. Every email carries who may see it in Microsoft 365: the mailbox owner. With acl_supported on for the provider, permission-aware search shows each email only to that person; when the owner cannot be resolved the email remains tenant-public under the current fail-open policy and carries a persistent rbac_warning. +4. Every email carries who may see it in Microsoft 365: the mailbox owner. With Enforce ACL enabled for a provider reporting acl_supported: true, permission-aware search shows each email only to that person; when the owner cannot be resolved the email remains tenant-public under the current fail-open policy and carries a persistent rbac_warning. 5. Mail.Read grants the app every mailbox in the tenant. To limit it to the mailboxes you select, create an Exchange application access policy (New-ApplicationAccessPolicy -AppId `` -PolicyScopeGroupId `` -AccessRight RestrictAccess); a selected mailbox outside the policy fails the sync with a message naming the policy rather than syncing silently empty. 6. Each sync reads only what changed: mail is filtered server-side on lastModifiedDateTime. Mail moved to Deleted Items or Junk Email after it was indexed is replaced by a hidden stub on the next sync; mail purged from Deleted Items leaves no trace until a full re-sync. 7. Rotate the client secret before it expires (Azure defaults to 6-24 months): an expired secret stops every sync with a message naming the fix. Pasting a new secret value re-enables the connector. @@ -27,6 +29,7 @@ Use provider `outlook` with [Create Connector](/api-reference/v2/endpoint/create - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/outreach.mdx b/essentials/v2/connectors/outreach.mdx index 4ce79923..7875649f 100644 --- a/essentials/v2/connectors/outreach.mdx +++ b/essentials/v2/connectors/outreach.mdx @@ -16,12 +16,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `outreach` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/pagerduty.mdx b/essentials/v2/connectors/pagerduty.mdx index 45ffb1a9..b2e73ac7 100644 --- a/essentials/v2/connectors/pagerduty.mdx +++ b/essentials/v2/connectors/pagerduty.mdx @@ -15,6 +15,8 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + 1. Create a READ-ONLY REST API key: PagerDuty → Integrations → API Access Keys → Create New API Key, and tick Read-only. This connector never writes, and a full-access key would let a leaked token trigger or resolve real incidents. 2. Set the email field to the account the key belongs to. PagerDuty sends it as the From header and rejects calls where it does not match a real user, so a mistyped address fails every request rather than some of them. 3. Mint the key at the ACCOUNT level, not scoped to a single user. A user-scoped key cannot list services, so discovery returns nothing and there is no way to choose what to sync; an empty picker is what that mistake looks like. @@ -28,6 +30,7 @@ Use provider `pagerduty` with [Create Connector](/api-reference/v2/endpoint/crea - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/pardot.mdx b/essentials/v2/connectors/pardot.mdx index 17b0ab97..b25e816f 100644 --- a/essentials/v2/connectors/pardot.mdx +++ b/essentials/v2/connectors/pardot.mdx @@ -15,12 +15,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `pardot` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/pendo.mdx b/essentials/v2/connectors/pendo.mdx index b2c70a56..d5604b8d 100644 --- a/essentials/v2/connectors/pendo.mdx +++ b/essentials/v2/connectors/pendo.mdx @@ -27,12 +27,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `pendo` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/pipedrive.mdx b/essentials/v2/connectors/pipedrive.mdx index b61bd600..7b48b1a3 100644 --- a/essentials/v2/connectors/pipedrive.mdx +++ b/essentials/v2/connectors/pipedrive.mdx @@ -20,12 +20,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `pipedrive` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/posthog.mdx b/essentials/v2/connectors/posthog.mdx index ff98e84e..b451df9e 100644 --- a/essentials/v2/connectors/posthog.mdx +++ b/essentials/v2/connectors/posthog.mdx @@ -16,12 +16,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `posthog` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/quickbooks.mdx b/essentials/v2/connectors/quickbooks.mdx index 8fdb2a15..3d30b4b9 100644 --- a/essentials/v2/connectors/quickbooks.mdx +++ b/essentials/v2/connectors/quickbooks.mdx @@ -17,12 +17,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `quickbooks` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/recurly.mdx b/essentials/v2/connectors/recurly.mdx index 7fe6e609..4b1b38ef 100644 --- a/essentials/v2/connectors/recurly.mdx +++ b/essentials/v2/connectors/recurly.mdx @@ -16,12 +16,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `recurly` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/ringcentral.mdx b/essentials/v2/connectors/ringcentral.mdx index 8ad3d3ed..87d97843 100644 --- a/essentials/v2/connectors/ringcentral.mdx +++ b/essentials/v2/connectors/ringcentral.mdx @@ -14,12 +14,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `ringcentral` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/salesforce.mdx b/essentials/v2/connectors/salesforce.mdx index 05a59285..37de88cd 100644 --- a/essentials/v2/connectors/salesforce.mdx +++ b/essentials/v2/connectors/salesforce.mdx @@ -16,12 +16,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `salesforce` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/segment.mdx b/essentials/v2/connectors/segment.mdx index ea4e6837..758dad22 100644 --- a/essentials/v2/connectors/segment.mdx +++ b/essentials/v2/connectors/segment.mdx @@ -17,12 +17,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `segment` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/sendgrid.mdx b/essentials/v2/connectors/sendgrid.mdx index a227d413..81bbd5e0 100644 --- a/essentials/v2/connectors/sendgrid.mdx +++ b/essentials/v2/connectors/sendgrid.mdx @@ -16,12 +16,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `sendgrid` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/sentry.mdx b/essentials/v2/connectors/sentry.mdx index 11fab084..05c9f731 100644 --- a/essentials/v2/connectors/sentry.mdx +++ b/essentials/v2/connectors/sentry.mdx @@ -17,12 +17,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `sentry` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/servicenow.mdx b/essentials/v2/connectors/servicenow.mdx index 525cc16c..5baa9fa3 100644 --- a/essentials/v2/connectors/servicenow.mdx +++ b/essentials/v2/connectors/servicenow.mdx @@ -20,12 +20,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `servicenow` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/sharepoint.mdx b/essentials/v2/connectors/sharepoint.mdx index 81af5ab0..ab6b5155 100644 --- a/essentials/v2/connectors/sharepoint.mdx +++ b/essentials/v2/connectors/sharepoint.mdx @@ -15,6 +15,8 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + 1. Register a Microsoft Entra app for app-only client credentials. Copy the Directory (tenant) ID, Application (client) ID, and a client-secret Value into tenant, client_id, and client_secret; the Secret ID is not the secret value. 2. Grant Microsoft Graph APPLICATION permissions Sites.Read.All and Files.Read.All, then grant tenant-wide admin consent. Sites.Read.All is required for site discovery, document libraries, and site pages; Files.Read.All is required for drive delta metadata and file-content download. Delegated permissions do not satisfy this connector. 3. Pick the SharePoint sites to sync. Site pages and document-library files become searchable with human site, library, path, author, and MIME metadata; IDs remain provenance and stable identity rather than reader-facing labels. @@ -28,6 +30,7 @@ Use provider `sharepoint` with [Create Connector](/api-reference/v2/endpoint/cre - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/shortcut.mdx b/essentials/v2/connectors/shortcut.mdx index 51f86408..b0d32346 100644 --- a/essentials/v2/connectors/shortcut.mdx +++ b/essentials/v2/connectors/shortcut.mdx @@ -15,12 +15,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `shortcut` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/slack.mdx b/essentials/v2/connectors/slack.mdx index 4b82b52a..4b3b9182 100644 --- a/essentials/v2/connectors/slack.mdx +++ b/essentials/v2/connectors/slack.mdx @@ -13,12 +13,17 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + +Set a stable, distinct `provider_account_scope` for each connected account yourself, for example `slack-account-a` and `slack-account-b`. These are caller-provided example identifiers, not validated native account-ID formats. The API stores the supplied value; it does not derive or validate the provider's account identity. Reusing a scope can make sources with matching external IDs overwrite each other in the same destination. + Use provider `slack` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/smartsheet.mdx b/essentials/v2/connectors/smartsheet.mdx index fd6b61e8..fadecc8c 100644 --- a/essentials/v2/connectors/smartsheet.mdx +++ b/essentials/v2/connectors/smartsheet.mdx @@ -11,12 +11,15 @@ The provider description does not enumerate fixed indexed object types. Use the ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `smartsheet` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/stripe.mdx b/essentials/v2/connectors/stripe.mdx index fb7100a6..a020b861 100644 --- a/essentials/v2/connectors/stripe.mdx +++ b/essentials/v2/connectors/stripe.mdx @@ -16,12 +16,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `stripe` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/supabase.mdx b/essentials/v2/connectors/supabase.mdx index 40aef842..c6c15418 100644 --- a/essentials/v2/connectors/supabase.mdx +++ b/essentials/v2/connectors/supabase.mdx @@ -11,6 +11,8 @@ Selected table row changes arrive through database webhooks. There is no history ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + 1. List the tables you want indexed, one per line, as schema.table, for example public.customers. Always include the schema. 2. In your Supabase project, install the Database Webhooks integration if it is not already installed. 3. Establish the connection in the HydraDB dashboard, then select the tables you want to sync. @@ -23,6 +25,7 @@ Follow the Supabase connection flow in the dashboard. This is a push connector; - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/surveymonkey.mdx b/essentials/v2/connectors/surveymonkey.mdx index 6f0168d1..c3b6c0bb 100644 --- a/essentials/v2/connectors/surveymonkey.mdx +++ b/essentials/v2/connectors/surveymonkey.mdx @@ -14,6 +14,8 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + 1. Use a SurveyMonkey app access token with View Surveys (surveys_read) and View Response Details (responses_read_detail). A draft app token expires after 90 days unless the app is deployed. 2. Before a draft token expires, replace it in the connector and validate discovery and sync; deployed OAuth apps must retain their refresh-token flow and reauthorize when scopes change. 3. Pick surveys after connecting. The full questionnaire and human-readable response answers are indexed; collectors and contacts are not. Basic accounts expose at most 25 detailed responses per survey through the API, while paid plans allow the complete response history. @@ -25,6 +27,7 @@ Use provider `surveymonkey` with [Create Connector](/api-reference/v2/endpoint/c - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/tableau.mdx b/essentials/v2/connectors/tableau.mdx index ccd81e1b..2cb27f31 100644 --- a/essentials/v2/connectors/tableau.mdx +++ b/essentials/v2/connectors/tableau.mdx @@ -26,12 +26,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `tableau` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/trello.mdx b/essentials/v2/connectors/trello.mdx index 06e2f88a..e1e1f56d 100644 --- a/essentials/v2/connectors/trello.mdx +++ b/essentials/v2/connectors/trello.mdx @@ -13,12 +13,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `trello` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/twilio.mdx b/essentials/v2/connectors/twilio.mdx index 9f60a844..0171a12e 100644 --- a/essentials/v2/connectors/twilio.mdx +++ b/essentials/v2/connectors/twilio.mdx @@ -16,12 +16,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `twilio` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/twitter.mdx b/essentials/v2/connectors/twitter.mdx index ca0b27d1..87fdc6a2 100644 --- a/essentials/v2/connectors/twitter.mdx +++ b/essentials/v2/connectors/twitter.mdx @@ -14,6 +14,8 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + 1. You bring your own X developer app: X bills API reads per record to the app owner ($0.005/post, $0.010/user read), so the connector never fronts a shared app. 2. Posts only (recommended): in the X developer portal open Projects & Apps → your app, and complete 'User authentication settings' once if it is empty; that is what creates the app's OAuth 2.0 client. Then on the Keys and tokens page, in the 'OAuth 2.0 Client ID and Client Secret' section, copy the Client ID and Generate the Client Secret (X shows it only once); pass them as client_id and client_secret. Do NOT use the API Key and API Key Secret listed above them: those are OAuth 1.0a keys and will not work. The connector mints its own app-only token from them on every sync; nothing expires, so this connection never needs reconnecting. Add the handles to follow (any public account). 3. Direct messages additionally need an OAuth2 user-context token; X serves DMs to no other auth scheme. First set the app's permissions to 'Read and write and Direct message' (User authentication settings): that setting is what allows the dm.read scope to be granted at all, and changing it later invalidates tokens already issued. Set the app type to the confidential-client option (Web App, Automated App or Bot) so the app has a client secret; both the app-only mint and token refresh require one. @@ -29,6 +31,7 @@ Use provider `twitter` with [Create Connector](/api-reference/v2/endpoint/create - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/typeform.mdx b/essentials/v2/connectors/typeform.mdx index 469fb185..851cce65 100644 --- a/essentials/v2/connectors/typeform.mdx +++ b/essentials/v2/connectors/typeform.mdx @@ -15,12 +15,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `typeform` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/uservoice.mdx b/essentials/v2/connectors/uservoice.mdx index 5ec5d243..7608b77b 100644 --- a/essentials/v2/connectors/uservoice.mdx +++ b/essentials/v2/connectors/uservoice.mdx @@ -14,12 +14,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `uservoice` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/workday-raas.mdx b/essentials/v2/connectors/workday-raas.mdx index 581a9549..6726d2c4 100644 --- a/essentials/v2/connectors/workday-raas.mdx +++ b/essentials/v2/connectors/workday-raas.mdx @@ -14,12 +14,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `workday_raas` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/wrike.mdx b/essentials/v2/connectors/wrike.mdx index 2085aec0..0ebde53a 100644 --- a/essentials/v2/connectors/wrike.mdx +++ b/essentials/v2/connectors/wrike.mdx @@ -14,12 +14,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `wrike` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/xero.mdx b/essentials/v2/connectors/xero.mdx index de3f5df4..63f5e812 100644 --- a/essentials/v2/connectors/xero.mdx +++ b/essentials/v2/connectors/xero.mdx @@ -19,12 +19,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `xero` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/zendesk.mdx b/essentials/v2/connectors/zendesk.mdx index 9ba10274..c76503bb 100644 --- a/essentials/v2/connectors/zendesk.mdx +++ b/essentials/v2/connectors/zendesk.mdx @@ -15,12 +15,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `zendesk` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/zoho-crm.mdx b/essentials/v2/connectors/zoho-crm.mdx index 4c476315..af4f2a1a 100644 --- a/essentials/v2/connectors/zoho-crm.mdx +++ b/essentials/v2/connectors/zoho-crm.mdx @@ -17,12 +17,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `zoho-crm` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/zoom.mdx b/essentials/v2/connectors/zoom.mdx index 9e1c560e..82374e42 100644 --- a/essentials/v2/connectors/zoom.mdx +++ b/essentials/v2/connectors/zoom.mdx @@ -15,12 +15,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `zoom` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/connectors/zuora.mdx b/essentials/v2/connectors/zuora.mdx index d388a6f4..b01d3681 100644 --- a/essentials/v2/connectors/zuora.mdx +++ b/essentials/v2/connectors/zuora.mdx @@ -16,12 +16,15 @@ The provider description lists these indexed object types: ## Connect +Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + Use provider `zuora` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes - A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. - Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. +- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. ## Related diff --git a/essentials/v2/context.mdx b/essentials/v2/context.mdx index 59840a09..a2a6af18 100644 --- a/essentials/v2/context.mdx +++ b/essentials/v2/context.mdx @@ -93,6 +93,8 @@ HydraDB does not capture memories on its own: your application saves one when a Give each user their own collection, such as `user_john_123`, and send it on every ingest, status check, and query. Your backend picks the collection from the signed-in session, never from untrusted client input; the collection name itself does not authenticate anyone. +Apply the same server-derived scope and authorization to updates and deletes. Before any operation, authorize the signed-in user's access to the source in that collection; knowing a source ID or collection name is not permission to read or change it. + 1. **Let HydraDB infer**: `infer` controls whether HydraDB extracts memories and preferences from what you send. 1. `infer: true` (default): Extracts the preferences, trait, or fact from messy or indirect evidence. This also applies when `infer` is omitted from a legacy `memories` item. 2. `infer: false`: Disables memory inference for that item. Ingestion and indexing still run. @@ -106,6 +108,8 @@ When you omit `infer`, the acceptance response includes an `inference_enabled_by Set up your [SDK client](/api-reference/v2/sdks#client-setup) before running the Python or TypeScript example. +The `verified_session` / `verifiedSession` objects and `SESSION_MEMORY_COLLECTION` below stand in for scope already resolved by your backend from a verified session. Their values are examples, not authentication code. Replace them with your server's authenticated context, never a user ID or collection supplied in the incoming request. + ```python Python SDK @@ -114,11 +118,12 @@ import os from hydra_db import HydraDB client = HydraDB(token=os.environ["HYDRADB_API_KEY"]) +verified_session = {"memory_collection": "user_john_123"} result = client.context.ingest( type="memory", database="acme_corp", - collection="user_john_123", + collection=verified_session["memory_collection"], memories=json.dumps([ { "text": "Prefers short, direct answers with no preamble.", @@ -135,11 +140,12 @@ import { HydraDBClient } from "@hydradb/sdk"; const client = new HydraDBClient({ token: process.env.HYDRADB_API_KEY, }); +const verifiedSession = { memoryCollection: "user_john_123" }; const result = await client.context.ingest({ type: "memory", database: "acme_corp", - collection: "user_john_123", + collection: verifiedSession.memoryCollection, memories: JSON.stringify([ { text: "Prefers short, direct answers with no preamble.", @@ -151,12 +157,14 @@ const result = await client.context.ingest({ ``` ```bash cURL +SESSION_MEMORY_COLLECTION="user_john_123" + curl -X POST 'https://api.hydradb.com/context/ingest' \ -H "Authorization: Bearer $HYDRADB_API_KEY" \ -H "API-Version: 2" \ -F "type=memory" \ -F "database=acme_corp" \ - -F "collection=user_john_123" \ + -F "collection=$SESSION_MEMORY_COLLECTION" \ -F 'memories=[ { "text": "Prefers short, direct answers with no preamble.", @@ -196,7 +204,7 @@ The response lists each memory in `data.results` with its `id` and a `status` of | --- | --- | | `type` | `memory` | | `database` | An existing [database](/api-reference/v2/endpoint/create-database) | -| `collection` | The user's own collection, such as `user_john_123`. | +| `collection` | The user's own collection, resolved and authorized by your backend from the signed-in session. | | `memories` | One item or a list of items, as a JSON string | | `upsert` | Leave it out. It defaults to `true`, so sending an item again with the same `id` replaces the saved memory. | diff --git a/essentials/v2/query.mdx b/essentials/v2/query.mdx index 168b0a31..3ea29815 100644 --- a/essentials/v2/query.mdx +++ b/essentials/v2/query.mdx @@ -110,11 +110,11 @@ The following sample request searches the `acme_corp` database. `query_by` - `"hybrid"` (the default) matches by meaning and by keyword together, and `"text"` matches keywords only. Default is `"auto"`. HydraDB does a good job deciding on your behalf. + `"hybrid"` (the default) matches by meaning and by keyword together. `"text"` matches keywords only. These are the two supported values. `mode` - Decide how much compute the query requires. `"thinking"` mode takes more time and scans more nodes. `"fast"` mode uses less compute but returns results extremely fast. + `"auto"` (the default) chooses between `"thinking"` and `"fast"` per query. `"thinking"` takes more time and scans more nodes; `"fast"` uses less compute. `max_results` @@ -192,7 +192,7 @@ Table answers run in thinking mode only; `"fast"` returns the ranked chunks with ## 3. Tune the ranking -- `alpha`**:** the balance between semantic/meaning (`1.0`) and keywords (`0.0`) in a hybrid query. Default `0.8`, which `"auto"` +- `alpha`**:** the balance between semantic/meaning (`1.0`) and keywords (`0.0`) in a hybrid query. Default `0.8`; `"auto"` also resolves to `0.8`. - **`recency_bias`:** how much newer context is favored, from `0.0` to `1.0`. Default `0.6` - **`max_results`:** drop to `5` for tight context windows; raise to `20` when you rerank downstream. - **`additional_graph_context`:** a request-time string hint, such as `"user is on the billing page"`, that sharpens retrieval. It is not a filter. This is separate from the response map `data.additional_graph_context` containing linked sources. diff --git a/scripts/generate_connector_pages.py b/scripts/generate_connector_pages.py index b2054ebf..9b5bbef2 100644 --- a/scripts/generate_connector_pages.py +++ b/scripts/generate_connector_pages.py @@ -9,9 +9,16 @@ SNAPSHOT = ROOT / "scripts/connector_capabilities.json" DIRECTORY = ROOT / "essentials/v2/connectors" INDEX = ROOT / "essentials/v2/connector-providers.mdx" +SCOPED_PROVIDER_EXAMPLES = { + "slack": ("slack-account-a", "slack-account-b"), + "github": ("github-account-a", "github-account-b"), + "linear": ("linear-account-a", "linear-account-b"), + "notion": ("notion-account-a", "notion-account-b"), +} def prose(value): + value = value.replace("With acl_supported on for the provider, permission-aware search", "With Enforce ACL enabled for a provider reporting acl_supported: true, permission-aware search") escaped = html.escape(re.sub(r"\s*\u2014\s*", "; ", value), quote=False).replace("{", "{").replace("}", "}") escaped = re.sub(r"https?://[^\s]*<[^\s]*", lambda match: f"`{html.unescape(match.group())}`", escaped) return re.sub(r"<([A-Za-z_][\w-]*)>", r"`<\1>`", escaped) @@ -40,6 +47,16 @@ def pages(): elif not provider.get("summary"): lines.append("The provider description does not enumerate fixed indexed object types. Use the setup notes below when available; the resource picker shows what your connection can select.") lines.extend(["", "## Connect", ""]) + lines.extend([ + "Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access.", + "", + ]) + if identifier in SCOPED_PROVIDER_EXAMPLES: + first, second = SCOPED_PROVIDER_EXAMPLES[identifier] + lines.extend([ + f"Set a stable, distinct `provider_account_scope` for each connected account yourself, for example `{first}` and `{second}`. These are caller-provided example identifiers, not validated native account-ID formats. The API stores the supplied value; it does not derive or validate the provider's account identity. Reusing a scope can make sources with matching external IDs overwrite each other in the same destination.", + "", + ]) if provider.get("setup_guide"): lines.extend(f"{number}. {prose(step)}" for number, step in enumerate(provider["setup_guide"], 1)) lines.append("") @@ -51,6 +68,7 @@ def pages(): "", "## Common mistakes", "", "- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read.", "- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed.", + "- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`.", "", "## Related", "", "- [Connector providers](/essentials/v2/connector-providers)", "- [Connectors](/essentials/v2/connectors): setup, sync, and access control", diff --git a/scripts/test_connector_pages.py b/scripts/test_connector_pages.py index 4517cc5b..6a47b691 100644 --- a/scripts/test_connector_pages.py +++ b/scripts/test_connector_pages.py @@ -2,11 +2,44 @@ import re import unittest -from generate_connector_pages import DIRECTORY, ROOT, SNAPSHOT, pages, prose +from generate_connector_pages import DIRECTORY, ROOT, SNAPSHOT, SCOPED_PROVIDER_EXAMPLES, pages, prose from generate_llms_index import page_paths class ConnectorPagesTest(unittest.TestCase): + def test_scoped_provider_examples_are_distinct_and_match_the_guide(self): + guide = (ROOT / "essentials/v2/connectors.mdx").read_text() + rows = re.findall(r"^\| `(slack|github|linear|notion)` \| `([^`]+)` \| `([^`]+)` \|$", guide, re.M) + mapping = {provider: (first, second) for provider, first, second in rows} + self.assertEqual({"slack", "github", "linear", "notion"}, set(mapping)) + self.assertEqual(SCOPED_PROVIDER_EXAMPLES, mapping) + self.assertIn("does not derive or validate the native account identity or reject duplicate scopes", guide) + self.assertIn("Filter on `connector_id`", guide) + self.assertIn("same database and collection", guide) + for provider, pair in mapping.items(): + self.assertTrue(all(value.strip() for value in pair)) + self.assertNotEqual(pair[0], pair[1]) + text = (DIRECTORY / f"{provider}.mdx").read_text() + with self.subTest(provider=provider): + self.assertIn("`provider_account_scope`", text) + for value in pair: + self.assertIn(f"`{value}`", text) + self.assertIn("caller-provided example identifiers", text) + self.assertIn("not validated native account-ID formats", text) + + def test_all_provider_pages_keep_one_account_per_connector_and_human_enforcement(self): + paths = list(DIRECTORY.glob("*.mdx")) + self.assertEqual(98, len(paths)) + for path in paths: + text = path.read_text() + with self.subTest(provider=path.stem): + self.assertIn("one connector per account", text) + self.assertIn("collection names do not authorize access", text) + self.assertIn("API-key requests must omit `enforce_acl`", text) + self.assertIn("including `false`", text) + self.assertNotRegex(text, r"(?i)(?:multiple|several|two) accounts per connector") + self.assertNotIn("With acl_supported on for the provider", text) + def test_setup_placeholders_and_json_are_safe_mdx(self): self.assertEqual("Use ``", prose("Use ")) self.assertEqual("`https://.okta.com/api/v1/`", prose("https://.okta.com/api/v1/")) diff --git a/scripts/test_docs_consistency.py b/scripts/test_docs_consistency.py index 60741f17..87073981 100644 --- a/scripts/test_docs_consistency.py +++ b/scripts/test_docs_consistency.py @@ -118,6 +118,56 @@ class UnifiedNarrativeTest(unittest.TestCase): def read(self, relative): return (ROOT / relative).read_text(encoding="utf-8") + def test_query_method_and_alpha_defaults_do_not_confuse_auto_mode(self): + text = self.read("essentials/v2/query.mdx") + method = re.search(r"`query_by`\s*(.*?)", text, re.S) + self.assertIsNotNone(method) + values = set(re.findall(r'`"([^"]+)"`', method.group(1))) + spec = json.loads(self.read("api-reference/v2/openapi.json")) + self.assertEqual({"hybrid", "text"}, values) + self.assertEqual(set(spec["components"]["schemas"]["search.QueryBy"]["enum"]), values) + self.assertIn('`"hybrid"` (the default)', method.group(1)) + self.assertRegex(self.read("api-reference/v2/endpoint/query.mdx"), r'name="query_by"[^\n]*default=`"hybrid"`') + self.assertNotIn("auto", method.group(1)) + alpha = next(line for line in text.splitlines() if line.startswith("- `alpha`")) + self.assertIn("Default `0.8`", alpha) + self.assertIn('`"auto"` also resolves to `0.8`', alpha) + self.assertNotIn('which `"auto"`', alpha) + self.assertIn('`"auto"` (the default)', text.split('`mode`', 1)[1].split('', 1)[0]) + self.assertIn("auto selector", self.read("plugins/cli.mdx")) + + def test_connector_enforcement_requires_a_human_session_even_for_false(self): + text = self.read("essentials/v2/connectors.mdx") + section = text.split("## 5. ACL", 1)[1].split("### Examples", 1)[0] + for phrase in ("signed-in human", "owner or writer", "API-key clients must omit", "even `false`", "dashboard", "Enforce ACL", "`acl_supported: true`", "`false`", "persistent", "warning"): + self.assertIn(phrase, section) + self.assertIn("valid private ACLs", section) + self.assertNotRegex(section, r"API.key[^.\n]*send[^.\n]*false") + + def test_memory_authorization_covers_mutations_and_adjacent_examples(self): + text = self.read("essentials/v2/context.mdx") + memory = text.split("## Ingesting memory", 1)[1].split("## Wait for indexing", 1)[0] + self.assertIn("updates and deletes", memory) + self.assertIn("authorize", memory) + self.assertIn("source ID", memory) + self.assertIn("verified session", memory) + self.assertIn('collection=verified_session["memory_collection"]', memory) + self.assertIn("collection: verifiedSession.memoryCollection", memory) + self.assertIn('"collection=$SESSION_MEMORY_COLLECTION"', memory) + + def test_cli_shell_examples_do_not_recommend_api_keys_in_argv(self): + text = self.read("plugins/cli.mdx") + shell_blocks = re.findall(r"```(?:bash|sh|shell)[^\n]*\n(.*?)```", text, re.S) + self.assertTrue(shell_blocks) + for source in shell_blocks: + commands = "\n".join(line for line in source.splitlines() if not line.lstrip().startswith("#")) + commands = commands.replace("\\\n", " ") + self.assertNotRegex(commands, r"\bhydradb\b[^\n]*--api-key(?:[=\s]|$)") + self.assertNotRegex(commands, r"\bhydradb\s+config\s+set\s+api_key\b") + self.assertIn("masked prompt", text) + self.assertIn("`0600`", text) + self.assertIn("inject `HYDRADB_API_KEY` through your environment or secret manager", text) + def test_memory_scope_is_derived_from_the_signed_in_session(self): text = self.read("essentials/v2/context.mdx") memory = text.split("## Ingesting memory", 1)[1].split("## Wait for indexing", 1)[0] diff --git a/scripts/test_docs_examples.py b/scripts/test_docs_examples.py index 542e501d..b7d1149d 100644 --- a/scripts/test_docs_examples.py +++ b/scripts/test_docs_examples.py @@ -490,6 +490,55 @@ def test_every_typescript_block_type_checks(self): self.assertGreaterEqual(count, 85) +class CookbookPermissionDiagnostics(unittest.TestCase): + def test_permission_warning_distinguishes_local_abort_from_remote_sync(self): + import test_cookbooks + + for field, response_field in (("acl_warnings", "acl_warning"), ("page_acl_warnings", "page_acl_warning")): + with self.subTest(field=field): + hydra, stubs = test_cookbooks.CookbookTest.load_setup(self) + getattr(stubs, field)["C2"] = "provider returned 403" + with mock.patch.object(hydra.client.connectors, "pause") as pause, \ + mock.patch.object(hydra.client.connectors, "delete") as delete, \ + mock.patch("time.sleep", side_effect=AssertionError("connect kept polling")), \ + self.assertRaises(RuntimeError) as raised: + hydra.connect("slack", "T1", "db", "docs", {"access_token": "x"}) + message = str(raised.exception) + for phrase in ("only the cookbook", "does not pause", "may already be readable by every caller", "scheduled syncs may continue", "Pass acl"): + self.assertIn(phrase, message) + pause.assert_not_called() + delete.assert_not_called() + self.assertEqual(1, stubs.calls.count("ConnectorsClient.configure")) + self.assertNotIn("ConnectorsClient.update_resource_acl", stubs.calls) + self.assertTrue(all("acl" not in resource for resource in stubs.configured["conn_1"])) + status = hydra.client.connectors.status("conn_1") + self.assertEqual("active", status.lifecycle) + resource = next(resource for resource in status.resources if resource.resource_id == "C2") + self.assertEqual("provider returned 403", getattr(resource, response_field)) + + def test_explicit_resource_acl_recovers_without_erasing_provider_warning(self): + import test_cookbooks + + for field, response_field in (("acl_warnings", "acl_warning"), ("page_acl_warnings", "page_acl_warning")): + with self.subTest(field=field): + hydra, stubs = test_cookbooks.CookbookTest.load_setup(self) + getattr(stubs, field)["C2"] = "provider returned 403" + with test_cookbooks.bounded_sleep(), self.assertRaises(RuntimeError): + hydra.connect("slack", "T1", "db", "docs", {"access_token": "x"}) + with test_cookbooks.bounded_sleep(), \ + mock.patch.object(hydra.client.connectors, "pause") as pause, \ + mock.patch.object(hydra.client.connectors, "delete") as delete: + connector_id = hydra.connect("slack", "T1", "db", "docs", {"access_token": "x"}, acl=["domain:acme.com"]) + self.assertEqual("conn_1", connector_id) + self.assertTrue(all(resource["acl"] == ["domain:acme.com"] for resource in stubs.configured[connector_id])) + self.assertEqual(3, stubs.calls.count("ConnectorsClient.update_resource_acl")) + pause.assert_not_called() + delete.assert_not_called() + status = hydra.client.connectors.status(connector_id) + resource = next(resource for resource in status.resources if resource.resource_id == "C2") + self.assertEqual("provider returned 403", getattr(resource, response_field)) + + class EndpointPages(unittest.TestCase): """Checks on the pages bound to one operation with `openapi:` front matter.""" diff --git a/snippets/cookbook-setup.mdx b/snippets/cookbook-setup.mdx index f7df55cf..eb5c4657 100644 --- a/snippets/cookbook-setup.mdx +++ b/snippets/cookbook-setup.mdx @@ -6,6 +6,8 @@ Save this as `hydra.py`. Every cookbook imports it. It holds what every HydraDB application does around its own logic: wait for the database, connect an app, check what an ingest accepted, wait for indexing, and pass query results to a model. +If `connect` raises because provider permissions could not be read, it aborts only the cookbook. It does not pause or delete the remote connector: content without a valid ACL may already be readable by every caller, and scheduled syncs may continue. Inspect the persistent `acl_warning` / `page_acl_warning` in connector status, then repair provider permissions or rerun `connect` with an explicit resource `acl` to restrict that content. Existing valid private ACLs and revocations remain enforced. + ```python hydra.py import os import time @@ -45,8 +47,12 @@ def connect(provider, account, database, collection, credentials, a mailbox address, a Jira site. Each account gets its own connector. Pass acl for a provider that does not capture permissions, such as Gmail or Notion. Without it, everything that provider syncs is readable by every caller. - connect refuses such a provider when acl is left out, and stops if a provider's - permissions could not be read. An empty list lets nobody read the content. + connect refuses such a provider before setup when acl is left out. If a + permission read fails after sync, it stops only the cookbook, not the remote + connector: content without a valid ACL may already be public, and scheduled + syncs may continue. Inspect the persistent status warnings and pass an + explicit resource acl or repair provider permissions. Valid private ACLs + remain enforced. An empty explicit list lets nobody read the content. The credentials are used when the connector is created; to rotate them later, call client.connectors.update. """ @@ -115,6 +121,9 @@ def connect(provider, account, database, collection, credentials, f"The {provider} connector could not read the permissions of " + ", ".join(unread) + ". Pass acl to restrict them." + + " This exception stops only the cookbook; it does not pause or delete the remote connector." + + " Content without a valid ACL may already be readable by every caller, and scheduled syncs may continue." + + " Inspect acl_warning/page_acl_warning in connector status and repair provider permissions or rerun with an explicit resource acl." ) if status.status == "healthy": return connector_id From 929393a30bb018f971dd7b227430f1c587d9aed7 Mon Sep 17 00:00:00 2001 From: SohamRatnaparkhi <92905626+SohamRatnaparkhi@users.noreply.github.com> Date: Mon, 16 Nov 2026 08:06:02 +0000 Subject: [PATCH 15/33] fix(docs): verify cookbook account identity and clarify enrichment opt-outs Signed-off-by: SohamRatnaparkhi <92905626+SohamRatnaparkhi@users.noreply.github.com> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- api-reference/v2/endpoint/ingest-context.mdx | 4 +- api-reference/v2/openapi.json | 2 +- essentials/v2/context.mdx | 2 +- scripts/test_cookbooks.py | 108 +++++++++++++++++++ scripts/test_docs_consistency.py | 9 ++ snippets/cookbook-setup.mdx | 25 ++++- 6 files changed, 143 insertions(+), 7 deletions(-) diff --git a/api-reference/v2/endpoint/ingest-context.mdx b/api-reference/v2/endpoint/ingest-context.mdx index 737ae9ca..054aef02 100644 --- a/api-reference/v2/endpoint/ingest-context.mdx +++ b/api-reference/v2/endpoint/ingest-context.mdx @@ -77,6 +77,8 @@ The v2 acceptance envelope reports implicit processing defaults in `meta.warning Explicit `true` is intentional and produces no default warning, just like explicit `false`. Each code appears at most once per response and counts only accepted affected items, not failed items. Existing warnings and the request ID remain intact. The same rules apply to equivalent supported JSON and form requests; unrelated file/connector processing defaults are unchanged. +`infer: false` and `enrich: false` disable additional memory enrichment, not all processing. Ingestion, indexing, and entity/graph extraction may still run; neither control promises raw-only storage or no graph processing. + This real `202 Accepted` example contains one queued memory whose `infer` was omitted. The warning does not report successful inference or completed indexing; check the existing [processing status](/api-reference/v2/endpoint/source-status) before querying: ```json 202 @@ -401,7 +403,7 @@ curl -X POST 'https://api.hydradb.com/context/ingest' \ | | Raw text or markdown content. Required unless `user_assistant_pairs` is provided. | | | Conversation pairs `{ user, assistant }`. Required unless `text` is provided. | | | Treat `text` as markdown for chunking. (default=`false`) | - | | When omitted or `true`, HydraDB extracts the underlying preference from raw signal, using earlier context to improve accuracy. Explicit `false` stores the text verbatim. This default also applies to legacy `memories` items. (default=`true`) | + | | Enable additional memory enrichment. Explicit `false` skips that enrichment; ingestion, indexing, and entity/graph extraction may still run. This default also applies to legacy `memories` items. (default=`true`) | | | The user's name. Feeds inference. (default=`"User"`) | | | See [shared item fields](#shared-item-fields). | | | See [shared item fields](#shared-item-fields). | diff --git a/api-reference/v2/openapi.json b/api-reference/v2/openapi.json index 30563517..b6b9d576 100644 --- a/api-reference/v2/openapi.json +++ b/api-reference/v2/openapi.json @@ -11572,7 +11572,7 @@ "type": "string" }, "memories": { - "description": "Memories encoded as JSON. Use `type=memory`. Omitted infer enables inference; accepted memories using that default produce `inference_enabled_by_default`. Explicit values produce no default notice.", + "description": "Memories as JSON for `type=memory`. Omitted infer may emit `inference_enabled_by_default`. False skips additional memory enrichment, not entity/graph processing.", "title": "memories", "type": "string" }, diff --git a/essentials/v2/context.mdx b/essentials/v2/context.mdx index a2a6af18..1feddaaf 100644 --- a/essentials/v2/context.mdx +++ b/essentials/v2/context.mdx @@ -97,7 +97,7 @@ Apply the same server-derived scope and authorization to updates and deletes. Be 1. **Let HydraDB infer**: `infer` controls whether HydraDB extracts memories and preferences from what you send. 1. `infer: true` (default): Extracts the preferences, trait, or fact from messy or indirect evidence. This also applies when `infer` is omitted from a legacy `memories` item. - 2. `infer: false`: Disables memory inference for that item. Ingestion and indexing still run. + 2. `infer: false`: Disables additional memory enrichment for that item. Ingestion, indexing, and entity/graph extraction may still run. 2. **Ingest memory**: It can be via `text` or `user_assistant_pairs`, not both. - `text`: Any prose, such as observations, facts, meeting notes, or semi-structured records. Set `is_markdown: true` for Markdown content so HydraDB keeps its structure when chunking and embedding. - `user_assistant_pairs`: Dialogue, especially when a preference is implied rather than stated. Each pair is `{ "user": "...", "assistant": "..." }`. diff --git a/scripts/test_cookbooks.py b/scripts/test_cookbooks.py index 975384a1..6967a7f4 100644 --- a/scripts/test_cookbooks.py +++ b/scripts/test_cookbooks.py @@ -8,6 +8,7 @@ """ import ast +import copy import inspect import json import os @@ -448,6 +449,100 @@ def test_connect_gives_each_mailbox_its_own_connector(self): self.assertEqual(2, stubs.calls.count("ConnectorsClient.create")) self.assertEqual(2, stubs.calls.count("ConnectorsClient.configure")) + def test_connect_keeps_ambiguous_collection_account_pairs_separate(self): + for provider, credential in (("gmail", "refresh_token"), ("slack", "access_token")): + with self.subTest(provider=provider): + hydra, stubs = self.load_setup() + first_args = (provider, "carol@example.com", "db", "alice-bob", {credential: "first"}) + second_args = (provider, "bob-carol@example.com", "db", "alice", {credential: "second"}) + with bounded_sleep(): + first = hydra.connect(*first_args, acl=["carol@example.com"]) + original = copy.deepcopy(stubs.configured[first]) + second = hydra.connect(*second_args, acl=["bob-carol@example.com"]) + self.assertEqual(original, stubs.configured[first], "the second account changed the first account's resources or ACLs") + self.assertNotEqual(first, second) + self.assertEqual(first, hydra.connect(*first_args, acl=["carol@example.com"])) + self.assertEqual(second, hydra.connect(*second_args, acl=["bob-carol@example.com"])) + self.assertEqual(2, stubs.calls.count("ConnectorsClient.create")) + self.assertEqual(2, stubs.calls.count("ConnectorsClient.configure")) + self.assertNotEqual(stubs.connector(first).name, stubs.connector(second).name) + if provider == "gmail": + stubs.connectors = [connector.model_copy(update={"provider_account_scope": ""}) + for connector in stubs.connectors] + with bounded_sleep(): + self.assertEqual(first, hydra.connect(*first_args, acl=["carol@example.com"])) + self.assertEqual(second, hydra.connect(*second_args, acl=["bob-carol@example.com"])) + self.assertEqual(2, stubs.calls.count("ConnectorsClient.create")) + for connector_id, args, acl in ((first, first_args, ["carol@example.com"]), + (second, second_args, ["bob-carol@example.com"])): + connector = stubs.connector(connector_id) + self.assertEqual((args[0], args[2], args[3]), + (connector.provider, connector.database, connector.collection)) + self.assertEqual(args[1] if provider == "slack" else "", connector.provider_account_scope) + self.assertTrue(all(resource["acl"] == acl for resource in stubs.configured[connector_id])) + + def test_connect_name_includes_the_database_identity(self): + hydra, stubs = self.load_setup() + with bounded_sleep(): + first = hydra.connect("slack", "caller-chosen-account", "db-a", "docs", {"access_token": "x"}) + second = hydra.connect("slack", "caller-chosen-account", "db-b", "docs", {"access_token": "x"}) + self.assertNotEqual(first, second) + self.assertNotEqual(stubs.connector(first).name, stubs.connector(second).name) + self.assertEqual({"db-a", "db-b"}, {connector.database for connector in stubs.connectors}) + + def test_connect_rejects_same_name_with_missing_or_mismatched_identity_before_writes(self): + cases = [("slack", field, value) for field, value in ( + ("provider", "github"), ("database", "other-db"), ("collection", "other-collection"), + ("provider_account_scope", "other-caller-chosen-account"), + ("provider_account_scope", ""), + ("provider", None), ("database", None), ("collection", None), + ("provider_account_scope", None), ("connector_id", None), + )] + [("gmail", "provider_account_scope", "unexpected-account-scope")] + for configured in (False, True): + for provider, field, value in cases: + with self.subTest(configured=configured, provider=provider, field=field, value=value): + hydra, stubs = self.load_setup() + credential = "refresh_token" if provider == "gmail" else "access_token" + args = (provider, "caller-chosen-account", "db", "docs", {credential: "x"}) + with bounded_sleep(): + connector_id = hydra.connect(*args, acl=["first@example.com"]) + stubs.connectors[0] = stubs.connectors[0].model_copy(update={field: value}) + if not configured: + stubs.configured[connector_id] = None + before = copy.deepcopy(stubs.configured) + start = len(stubs.calls) + with bounded_sleep(), self.assertRaisesRegex(RuntimeError, "identity"): + hydra.connect(*args, acl=["second@example.com"]) + self.assertEqual(before, stubs.configured) + self.assertEqual(["ConnectorsClient.list"], stubs.calls[start:]) + + def test_connect_does_not_reuse_legacy_ambiguous_names(self): + hydra, stubs = self.load_setup() + args = ("gmail", "carol@example.com", "db", "alice-bob", {"refresh_token": "x"}) + with bounded_sleep(): + first = hydra.connect(*args, acl=["first@example.com"]) + original = copy.deepcopy(stubs.configured[first]) + old_name = "cookbook-gmail-alice-bob-carol@example.com" + stubs.connectors[0] = stubs.connectors[0].model_copy(update={"name": old_name}) + second = hydra.connect(*args, acl=["second@example.com"]) + self.assertNotEqual(first, second) + self.assertEqual(original, stubs.configured[first]) + self.assertNotEqual(old_name, stubs.connector(second).name) + + def test_connect_rejects_multiple_same_name_connectors_before_acl_writes(self): + hydra, stubs = self.load_setup() + args = ("slack", "caller-chosen-account", "db", "docs", {"access_token": "x"}) + with bounded_sleep(): + first = hydra.connect(*args, acl=["first@example.com"]) + hydra.connect("slack", "another-account", "other-db", "docs", {"access_token": "x"}, acl=["other@example.com"]) + stubs.connectors[1] = stubs.connectors[1].model_copy(update={"name": stubs.connector(first).name}) + before = copy.deepcopy(stubs.configured) + start = len(stubs.calls) + with bounded_sleep(), self.assertRaisesRegex(RuntimeError, "identity"): + hydra.connect(*args, acl=["second@example.com"]) + self.assertEqual(before, stubs.configured) + self.assertEqual(["ConnectorsClient.list"], stubs.calls[start:]) + def test_connect_configures_every_page_of_resources(self): hydra, stubs = self.load_setup() with bounded_sleep(): @@ -566,6 +661,19 @@ def test_connect_gives_up_after_its_timeout(self): self.assertRaisesRegex(TimeoutError, "synced nothing"): hydra.connect("slack", "T1", "db", "docs", {"access_token": "x"}, timeout=60) + def test_connect_reports_zero_and_immediate_timeouts_without_polling(self): + for timeout, times in ((0, [0, 0]), (60, [0, 100])): + with self.subTest(timeout=timeout): + hydra, stubs = self.load_setup() + with bounded_sleep(), mock.patch("time.time", side_effect=times), \ + self.assertRaises(TimeoutError) as raised: + hydra.connect("slack", "caller-chosen-account", "db", "docs", {"access_token": "x"}, timeout=timeout) + message = str(raised.exception) + self.assertIn(f"synced nothing within {timeout} seconds", message) + self.assertIn("first-sync polling did not run for conn_1", message) + self.assertEqual(1, stubs.calls.count("ConnectorsClient.status")) + self.assertEqual(["C1", "C2", "C3"], [r["resource_id"] for r in stubs.configured["conn_1"]]) + def load_setup(self): """Import hydra.py with stubbed SDK methods, outside any cookbook.""" hydra = types.ModuleType("hydra") diff --git a/scripts/test_docs_consistency.py b/scripts/test_docs_consistency.py index 87073981..565fe3c7 100644 --- a/scripts/test_docs_consistency.py +++ b/scripts/test_docs_consistency.py @@ -118,6 +118,15 @@ class UnifiedNarrativeTest(unittest.TestCase): def read(self, relative): return (ROOT / relative).read_text(encoding="utf-8") + def test_inference_opt_out_does_not_promise_no_graph_processing(self): + for relative in ("essentials/v2/context.mdx", "api-reference/v2/endpoint/ingest-context.mdx"): + text = self.read(relative) + with self.subTest(page=relative): + self.assertIn("additional memory enrichment", text) + self.assertIn("entity/graph extraction may still run", text) + self.assertNotIn("Explicit `false` stores the text verbatim", text) + self.assertNotIn("without preprocessing", text) + def test_query_method_and_alpha_defaults_do_not_confuse_auto_mode(self): text = self.read("essentials/v2/query.mdx") method = re.search(r"`query_by`\s*(.*?)", text, re.S) diff --git a/snippets/cookbook-setup.mdx b/snippets/cookbook-setup.mdx index eb5c4657..fa6a33a0 100644 --- a/snippets/cookbook-setup.mdx +++ b/snippets/cookbook-setup.mdx @@ -8,7 +8,11 @@ Save this as `hydra.py`. Every cookbook imports it. It holds what every HydraDB If `connect` raises because provider permissions could not be read, it aborts only the cookbook. It does not pause or delete the remote connector: content without a valid ACL may already be readable by every caller, and scheduled syncs may continue. Inspect the persistent `acl_warning` / `page_acl_warning` in connector status, then repair provider permissions or rerun `connect` with an explicit resource `acl` to restrict that content. Existing valid private ACLs and revocations remain enforced. +`connect` hashes the complete `(provider, database, collection, account)` tuple for its lookup name and checks returned connector metadata before reuse. `account` is your application's stable account label, not a validated native account identity. Resolve it from trusted server configuration and authorize the caller separately; a connector name is not authentication. An incomplete, mismatched, or ambiguous same-name identity raises before resource or ACL changes. The `timeout` bounds first-sync polling after setup; zero or an already-expired deadline raises `TimeoutError` with a diagnostic instead of polling. + ```python hydra.py +import hashlib +import json import os import time @@ -60,11 +64,23 @@ def connect(provider, account, database, collection, credentials, catalog = client.list_providers().providers or [] if not any(p.provider == provider and getattr(p, "acl_supported", False) for p in catalog): raise ValueError(f"{provider} captures no permissions: pass acl to say who may read it") - name = f"cookbook-{provider}-{collection}-{account}" - connectors = client.connectors.list(provider=provider).connectors or [] - existing = [c for c in connectors if c.name == name and c.database == database] + identity = json.dumps([provider, database, collection, account], separators=(",", ":")) + name = "cookbook-" + hashlib.sha256(identity.encode("utf-8")).hexdigest() + connectors = client.connectors.list().connectors or [] + existing = [c for c in connectors if c.name == name] if existing: # This account was connected on an earlier run. - connector_id = existing[0].connector_id + if len(existing) != 1: + raise RuntimeError(f"Cannot verify connector identity: multiple connectors named {name}") + connector = existing[0] + scope_matches = ( + connector.provider_account_scope == account if provider in SCOPED + else connector.provider_account_scope in (None, "") + ) + if (not connector.connector_id + or (connector.provider, connector.database, connector.collection) != (provider, database, collection) + or not scope_matches): + raise RuntimeError(f"Cannot verify connector identity for {name}; no resources or ACLs were changed") + connector_id = connector.connector_id else: scope = {"provider_account_scope": account} if provider in SCOPED else {} connector_id = client.connectors.create( @@ -101,6 +117,7 @@ def connect(provider, account, database, collection, credentials, connector_id, resource.resource_id, request={"acl": acl} ) + detail = f"first-sync polling did not run for {connector_id}" deadline = time.time() + timeout while time.time() < deadline: status = client.connectors.status(connector_id) From 848556f5763322635e7d3f5e416eb9f27ac00f3a Mon Sep 17 00:00:00 2001 From: SohamRatnaparkhi <92905626+SohamRatnaparkhi@users.noreply.github.com> Date: Mon, 16 Nov 2026 08:37:40 +0000 Subject: [PATCH 16/33] docs: require verified connector ownership before helper migration Signed-off-by: SohamRatnaparkhi <92905626+SohamRatnaparkhi@users.noreply.github.com> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- scripts/test_docs_consistency.py | 14 ++++++++++++++ snippets/cookbook-setup.mdx | 2 ++ 2 files changed, 16 insertions(+) diff --git a/scripts/test_docs_consistency.py b/scripts/test_docs_consistency.py index 565fe3c7..28455472 100644 --- a/scripts/test_docs_consistency.py +++ b/scripts/test_docs_consistency.py @@ -118,6 +118,20 @@ class UnifiedNarrativeTest(unittest.TestCase): def read(self, relative): return (ROOT / relative).read_text(encoding="utf-8") + def test_cookbook_migration_requires_verified_identity(self): + intro = self.read("snippets/cookbook-setup.mdx").split("```python hydra.py", 1)[0] + self.assertIn("**Existing deployments:**", intro) + migration = intro.split("**Existing deployments:**", 1)[1] + for phrase in ( + "does not adopt legacy connectors", "remote syncs can continue", + "Before switching", "client.connectors.list()", "`connector_id`", + "`(provider, database, collection, account)`", "ownership", + "trusted server configuration and credentials", "`provider_account_scope` where applicable", + "connector names are not proof of ownership", "only under that verified identity", + "without legacy-name adoption, automatic ACL reassignment, or blanket pause/delete", + ): + self.assertIn(phrase, migration) + def test_inference_opt_out_does_not_promise_no_graph_processing(self): for relative in ("essentials/v2/context.mdx", "api-reference/v2/endpoint/ingest-context.mdx"): text = self.read(relative) diff --git a/snippets/cookbook-setup.mdx b/snippets/cookbook-setup.mdx index fa6a33a0..c59c8936 100644 --- a/snippets/cookbook-setup.mdx +++ b/snippets/cookbook-setup.mdx @@ -10,6 +10,8 @@ If `connect` raises because provider permissions could not be read, it aborts on `connect` hashes the complete `(provider, database, collection, account)` tuple for its lookup name and checks returned connector metadata before reuse. `account` is your application's stable account label, not a validated native account identity. Resolve it from trusted server configuration and authorize the caller separately; a connector name is not authentication. An incomplete, mismatched, or ambiguous same-name identity raises before resource or ACL changes. The `timeout` bounds first-sync polling after setup; zero or an already-expired deadline raises `TimeoutError` with a diagnostic instead of polling. +**Existing deployments:** The hashed helper intentionally does not adopt legacy connectors, so older remote syncs can continue alongside a new one. Before switching, list connectors with `client.connectors.list()` and record their `connector_id` values. Verify full `(provider, database, collection, account)` ownership using trusted server configuration and credentials, checking `provider_account_scope` where applicable; connector names are not proof of ownership. Reconcile duplicate remote syncs only under that verified identity, without legacy-name adoption, automatic ACL reassignment, or blanket pause/delete. + ```python hydra.py import hashlib import json From d0d72503f20c00ad88b9458dc881cac2fae19b73 Mon Sep 17 00:00:00 2001 From: SohamRatnaparkhi Date: Mon, 16 Nov 2026 17:30:36 +0530 Subject: [PATCH 17/33] fix(docs): teach the published query contract in examples (ENG-1618) Query examples no longer send type "all". Omitting type searches knowledge and memories together on a split database and is the only form a unified database accepts, so an example without it works everywhere. The query guide keeps one row that explains the selector. The query reference no longer lists follow_forceful_relations or a `context` hint alias, the ingest reference drops the unified-only enrichment_enabled_by_default notice, and no page calls the memory ingest path "legacy". Link labels say "deterministic relations", the name the guides use. New tests in scripts/test_docs_consistency.py fail on any of these regressions, and the cookbook harness rejects an explicit type "all". Co-Authored-By: Claude Opus 5.5 Signed-off-by: SohamRatnaparkhi --- AGENTS.mdx | 13 +++--- .../v2/endpoint/context-overview.mdx | 4 +- api-reference/v2/endpoint/ingest-context.mdx | 11 ++--- api-reference/v2/endpoint/query-overview.mdx | 6 +-- api-reference/v2/endpoint/query.mdx | 13 ++---- api-reference/v2/endpoint/subgraph.mdx | 2 +- api-reference/v2/error-responses.mdx | 2 +- api-reference/v2/sdks.mdx | 2 - cookbooks/v2/chief-of-staff.mdx | 3 +- cookbooks/v2/personal-assistant.mdx | 3 +- cookbooks/v2/support-agent.mdx | 3 +- essentials/v2/context.mdx | 4 +- essentials/v2/query.mdx | 9 ++-- get-started/v2/quickstart.mdx | 3 -- llms.txt | 13 +++--- scripts/test_cookbooks.py | 3 +- scripts/test_docs_consistency.py | 46 +++++++++++++++++++ 17 files changed, 83 insertions(+), 57 deletions(-) diff --git a/AGENTS.mdx b/AGENTS.mdx index 58d7324e..4f06c80f 100644 --- a/AGENTS.mdx +++ b/AGENTS.mdx @@ -206,7 +206,7 @@ Knowledge is the documents and facts your AI reasons over: PDFs, Markdown, and C ### Memories -Memories are preferences, decisions, past conversations, behavioral signals, and inferred traits. Ingest them with `type: "memory"` into the collection you will query them from, and query with `type: "memory"` or `type: "all"`. Item fields, including `infer`, are in [6. Source ingestion](#6-source-ingestion). +Memories are preferences, decisions, past conversations, behavioral signals, and inferred traits. Ingest them with `type: "memory"` into the collection you will query them from, and query with `type: "memory"`, or leave `type` out to search memories and knowledge together. Item fields, including `infer`, are in [6. Source ingestion](#6-source-ingestion). ### Query @@ -656,7 +656,7 @@ Memory item fields: | `text` | raw text or Markdown; required unless `user_assistant_pairs` provided | | `user_assistant_pairs` | dialogue pairs `{ user, assistant }`; useful for implied preferences | | `is_markdown` | preserve Markdown structure during chunking | -| `infer` | defaults to `true`, including omitted `infer` on legacy `memories` items: HydraDB extracts the durable preference or fact. Explicit `false` stores the memory verbatim | +| `infer` | defaults to `true` when omitted: HydraDB extracts the durable preference or fact. Explicit `false` stores the memory verbatim | | `user_name` | helps inference | | `metadata` | schema-aligned fields, as an object (do not stringify it again inside `memories`). `tenant_metadata` is not read on memory items. | | `additional_metadata` | free-form fields; keep as objects | @@ -768,7 +768,7 @@ Rules: | `collection` | string/null | the collection the context was saved in; default collection if omitted | | `collections` | list of collection IDs, or an object of weights | query up to 100 collections at once; every listed collection must exist. Send weights, such as `{"user_alex": 2, "company_docs": 1}`, to rank one collection over another | | `query` | string | required | -| `type` | `knowledge`, `memory`, `all` | defaults to `all`, searching knowledge and memories; choose a type to narrow it | +| `type` | `knowledge`, `memory`, `all` | omit it to search knowledge and memories together, at most `max_results` chunks in total; choose a type to narrow it. Leave it out rather than sending `all` | | `acl` | list of principals | who is asking; see [Send `acl` on user queries](#send-acl-on-user-queries) | | `query_by` | `hybrid`, `text` | default `hybrid` (semantic + BM25); `text` is BM25 keyword/phrase search | | `operator` | `or`, `and`, `phrase` | only for `query_by: "text"` | @@ -782,7 +782,7 @@ Rules: | `metadata_filters` | object | deterministic filters before/around ranking | | `query_apps` | boolean | app-aware retrieval lane for content synced by connectors; still searches the full selected knowledge scope; defaults to `true` on `/query`, send `false` to disable | -`type: "all"` reads both stores from the same scope. When shared knowledge lives in its own collection, send `collections: ["", ""]`. +Leaving `type` out reads both stores from the same scope. When shared knowledge lives in its own collection, send `collections: ["", ""]`. ### Recommended configurations @@ -790,7 +790,7 @@ Rules: |---|---| | Fast document RAG | `type: "knowledge"`, `query_by: "hybrid"`, `mode: "fast"`, `graph_context: false`, `max_results: 5-10` | | Highest-quality document RAG | `type: "knowledge"`, `query_by: "hybrid"`, `mode: "thinking"`, `graph_context: true`, `alpha: "auto"` | -| Personalized grounded answer | `type: "all"`, `collections` listing the shared collection and the user's, `query_by: "hybrid"`, `mode: "thinking"` | +| Personalized grounded answer | `type` omitted, `collections` listing the shared collection and the user's, `query_by: "hybrid"`, `mode: "thinking"` | | User preferences only | `type: "memory"`, include `collection`, `query_by: "hybrid"` | | Exact keyword / phrase | `type: "knowledge"`, `query_by: "text"`, `operator: "phrase"` | | Recent operational updates | `query_by: "hybrid"`, `recency_bias: 0.6-0.8`, metadata filter to doc type/status | @@ -819,7 +819,6 @@ const result = await client.query({ database: "acme_corp", collections: ["company_docs", "user_alex"], // shared knowledge and this user's memories query: "What is our refund policy, and how should I explain it to this user?", - type: "all", queryBy: "hybrid", mode: "thinking", alpha: "auto", @@ -901,7 +900,7 @@ Use `chunks` as the primary LLM context. Preserve server order, which is the ran - Start with `max_results: 10`; reduce it for tight context windows. - Use graph context only when it helps the question. - Use `data.additional_graph_context` to attach explicitly related chunks by `chunk_uuid` / `extra_context_ids`. It is a response map, separate from the request's `additional_graph_context` string hint. The legacy `data.additional_context` response alias contains the same map. -- For personalized answers, `type: "all"` is simplest: one result set already merges knowledge and memories. +- For personalized answers, leave `type` out: one result set already merges knowledge and memories. Python: diff --git a/api-reference/v2/endpoint/context-overview.mdx b/api-reference/v2/endpoint/context-overview.mdx index c54a47e7..dcdf6476 100644 --- a/api-reference/v2/endpoint/context-overview.mdx +++ b/api-reference/v2/endpoint/context-overview.mdx @@ -73,7 +73,7 @@ flowchart LR ## Key concepts -- **Knowledge and memories:** Knowledge is the documents, content synced from your apps, and facts your AI uses. Memories are preferences, decisions, and past conversations. Both live in a collection, and `type: "all"` on `POST /query` searches both from the same scope. +- **Knowledge and memories:** Knowledge is the documents, content synced from your apps, and facts your AI uses. Memories are preferences, decisions, and past conversations. Both live in a collection, and a `POST /query` that leaves out `type` searches both from the same scope. - **IDs:** `/context/ingest` returns an ID for each source. To assign your own, set `id` in the `document_metadata` or `memories` item. Use IDs to poll status, inspect content, and delete context. - **Metadata:** [Metadata Filters](/essentials/v2/metadata) covers metadata fields, ingestion, updates, and filtering. - **Deterministic relations:** Links you declare between sources with `relations.ids`. In `thinking` mode, a query returns the linked sources in `data.additional_graph_context` alongside the matching chunks. Set relations on the same `document_metadata` item as the file's metadata: @@ -97,7 +97,7 @@ with open("runbook.pdf", "rb") as f: ## Related -- [Knowledge: forceful relations](/essentials/v2/context#6-link-sources-that-belong-together): linking sources at ingestion +- [Knowledge: deterministic relations](/essentials/v2/context#6-link-sources-that-belong-together): linking sources at ingestion - [Context](/essentials/v2/context#ingesting-memory): memories and knowledge, and when to use which - [Metadata Filters](/essentials/v2/metadata): schema-backed and free-form metadata - [Query: Overview](/api-reference/v2/endpoint/query-overview): retrieve ingested context diff --git a/api-reference/v2/endpoint/ingest-context.mdx b/api-reference/v2/endpoint/ingest-context.mdx index 054aef02..6d98d35e 100644 --- a/api-reference/v2/endpoint/ingest-context.mdx +++ b/api-reference/v2/endpoint/ingest-context.mdx @@ -66,18 +66,17 @@ curl -X POST 'https://api.hydradb.com/context/ingest' \ - **Multipart, not JSON:** This endpoint uses `multipart/form-data`. Stringify all JSON arrays (`document_metadata`, `memories`) before placing them in the form field. A body that is neither a form nor JSON returns `415`. - **`202 Accepted` means queued, not indexed:** A successful response only confirms your sources were accepted, not that they are ready to query. Before querying, poll [`GET /context/status`](/api-reference/v2/endpoint/source-status) with the returned IDs until each source reaches `graph_creation` (searchable), `completed`, or `errored`. Alternatively, register a webhook for `indexing.status_changed` events (see [Webhooks](/api-reference/v2/endpoint/webhooks-overview)). -- **Memory and knowledge:** Use `type: "memory"` for memory ingestion, listing, and deletion. Use `type: "all"` on `POST /query` when results should combine both. +- **Memory and knowledge:** Use `type: "memory"` for memory ingestion, listing, and deletion. Leave `type` out on `POST /query` when results should combine both. ## Default processing warnings The v2 acceptance envelope reports implicit processing defaults in `meta.warnings`, separately from CLI/MCP scope notices: -- `inference_enabled_by_default` counts accepted legacy memory items whose `infer` was omitted. Set `infer: false` on an item to disable inference. -- `enrichment_enabled_by_default` counts accepted unified context items whose item-level and request-level `enrich` were both omitted. Set `enrich: false` on an item or request to disable enrichment. An explicit item value overrides the request value; items inheriting an explicit request value do not produce a default warning. +- `inference_enabled_by_default` counts accepted memory items whose `infer` was omitted. Set `infer: false` on an item to disable inference. -Explicit `true` is intentional and produces no default warning, just like explicit `false`. Each code appears at most once per response and counts only accepted affected items, not failed items. Existing warnings and the request ID remain intact. The same rules apply to equivalent supported JSON and form requests; unrelated file/connector processing defaults are unchanged. +Explicit `true` is intentional and produces no default warning, just like explicit `false`. The notice appears at most once per response and counts only accepted affected items, not failed items. Existing warnings and the request ID remain intact. The same rules apply to equivalent supported JSON and form requests; unrelated file/connector processing defaults are unchanged. -`infer: false` and `enrich: false` disable additional memory enrichment, not all processing. Ingestion, indexing, and entity/graph extraction may still run; neither control promises raw-only storage or no graph processing. +`infer: false` disables additional memory enrichment, not all processing. Ingestion, indexing, and entity/graph extraction may still run; it does not promise raw-only storage or no graph processing. This real `202 Accepted` example contains one queued memory whose `infer` was omitted. The warning does not report successful inference or completed indexing; check the existing [processing status](/api-reference/v2/endpoint/source-status) before querying: @@ -403,7 +402,7 @@ curl -X POST 'https://api.hydradb.com/context/ingest' \ | | Raw text or markdown content. Required unless `user_assistant_pairs` is provided. | | | Conversation pairs `{ user, assistant }`. Required unless `text` is provided. | | | Treat `text` as markdown for chunking. (default=`false`) | - | | Enable additional memory enrichment. Explicit `false` skips that enrichment; ingestion, indexing, and entity/graph extraction may still run. This default also applies to legacy `memories` items. (default=`true`) | + | | Enable additional memory enrichment. Explicit `false` skips that enrichment; ingestion, indexing, and entity/graph extraction may still run. (default=`true`) | | | The user's name. Feeds inference. (default=`"User"`) | | | See [shared item fields](#shared-item-fields). | | | See [shared item fields](#shared-item-fields). | diff --git a/api-reference/v2/endpoint/query-overview.mdx b/api-reference/v2/endpoint/query-overview.mdx index 63ccd21e..66bac703 100644 --- a/api-reference/v2/endpoint/query-overview.mdx +++ b/api-reference/v2/endpoint/query-overview.mdx @@ -62,7 +62,7 @@ These parameters shape most queries. [Query](/api-reference/v2/endpoint/query#re |---|---| | Fast answers from documents | `type="knowledge"`, `query_by="hybrid"`, `mode="fast"`, `max_results=5-10`, `graph_context=false` | | Broader document search | `type="knowledge"`, `query_by="hybrid"`, `mode="thinking"` (thinking always includes graph context) | -| Personalized answer | `type="all"`, the user's `collection`, `query_by="hybrid"`, `mode="thinking"`. If shared knowledge lives in another collection, list both in `collections` | +| Personalized answer | `type` omitted, the user's `collection`, `query_by="hybrid"`, `mode="thinking"`. If shared knowledge lives in another collection, list both in `collections` | | User preferences only | `type="memory"`, include `collection`, `query_by="hybrid"` | | Exact keyword or phrase | `type="knowledge"`, `query_by="text"`, `operator="phrase"` | | Recent operational updates | `query_by="hybrid"`, `recency_bias=0.6-0.8`, a metadata filter for the right document type | @@ -100,7 +100,6 @@ Search the shared knowledge collection and the collection the user's memories we "database": "acme", "collections": ["company_docs", "user_alex"], "query": "What is our refund policy, and how should I explain it to this user?", - "type": "all", "query_by": "hybrid", "mode": "thinking" } @@ -120,7 +119,6 @@ Search several collections and return one ranked result set. Use a list for equa "user_alex": 1 }, "query": "What renewal risks should we discuss?", - "type": "all", "query_by": "hybrid", "mode": "thinking" } @@ -177,4 +175,4 @@ The response also includes ranked `data.chunks[]` with source IDs and titles, pl - [Query](/api-reference/v2/endpoint/query): every request and response field - [Query guide](/essentials/v2/query): retrieval modes, ranking, and tuning - [Metadata Filters](/essentials/v2/metadata): filter with schema-backed and free-form metadata -- [Query](/essentials/v2/query#5-understanding-relationships-in-your-context): graph context and forceful relations +- [Query](/essentials/v2/query#5-understanding-relationships-in-your-context): graph context and deterministic relations diff --git a/api-reference/v2/endpoint/query.mdx b/api-reference/v2/endpoint/query.mdx index 5451be41..c8885021 100644 --- a/api-reference/v2/endpoint/query.mdx +++ b/api-reference/v2/endpoint/query.mdx @@ -225,7 +225,7 @@ By default, `data.llm_prompt` contains the question and matching context as Mark | | Exact source titles, matched case-insensitively. Matches any listed title, then intersects with `ids` if both are sent. | | | Principals for the caller, used to filter sources by ACL. Omitting `acl`, sending `[]`, or sending `["*"]` disables caller-supplied filtering. For enforced connectors, the authenticated caller is used instead; see [ACL enforcement](/essentials/v2/connectors#enforce-acl). | | | Omit for the result object with `llm_prompt`. `"structured"` leaves out the prompt string. `"markdown"` returns the prompt string directly as `data`. | -| | What to query. `"all"` runs knowledge and memory in parallel over the same scope and merges by `relevancy_score`. (default=`"all"`) | +| | What to query. Omitted, or `"all"`, runs knowledge and memory in parallel over the same scope, merges by `relevancy_score`, and returns at most `max_results` chunks in total. Leave it out rather than sending `"all"`. (default=`"all"`) | | | Retrieval method. See [Query methods](#decision-matrix). (default=`"hybrid"`) | | | Applies to knowledge queries only. Adds app-aware retrieval for messages, threads, and linked records synced by connectors. It still searches all selected knowledge, rather than only synced content. Send `false` to disable app-aware retrieval. (default=`true`) | | | BM25 operator for `query_by: "text"`. `"and"` or `"phrase"` with any other `query_by` returns `400`. (default=`"or"`) | @@ -241,7 +241,7 @@ By default, `data.llm_prompt` contains the question and matching context as Mark To tune `alpha`, `recency_bias`, and `max_results` for your content, see the [Query guide](/essentials/v2/query). -Legacy request aliases remain accepted: `follow_forceful_relations` and `query_forceful_relations` for `query_explicit_relations`, and `additional_context` and `context` for the string hint `additional_graph_context`. Prefer the canonical names. When several are sent, precedence is `query_explicit_relations` > `follow_forceful_relations` > `query_forceful_relations`, and `additional_graph_context` > `additional_context` > `context`. Explicit `false` and an empty canonical hint are preserved. In the response, the legacy `data.additional_context` alias contains the same linked-source map as `data.additional_graph_context`; neither response map is the request hint. +Legacy request aliases remain accepted: `query_forceful_relations` for `query_explicit_relations`, and `additional_context` for the string hint `additional_graph_context`. Prefer the canonical names. When both spellings are sent, the canonical name wins. Explicit `false` and an empty canonical hint are preserved. In the response, the legacy `data.additional_context` alias contains the same linked-source map as `data.additional_graph_context`; neither response map is the request hint. ### Querying multiple collections @@ -251,8 +251,7 @@ Use `collections` to search several collections in one request. The field accept { "database": "acme_corp", "collections": ["workspace_42", "user_alex"], - "query": "What renewal risks should I know about?", - "type": "all" + "query": "What renewal risks should I know about?" } ``` @@ -263,8 +262,7 @@ Use `collections` to search several collections in one request. The field accept "workspace_42": 2, "user_alex": 1 }, - "query": "What renewal risks should I know about?", - "type": "all" + "query": "What renewal risks should I know about?" } ``` @@ -385,7 +383,6 @@ curl -X POST 'https://api.hydradb.com/query' \ "database": "acme_corp", "collections": ["company_docs", "user_alex"], "query": "What is our refund policy, and how should I explain it to this user?", - "type": "all", "query_by": "hybrid", "mode": "thinking" }' @@ -396,7 +393,6 @@ const result = await client.query({ database: "acme_corp", collections: ["company_docs", "user_alex"], query: "What is our refund policy, and how should I explain it to this user?", - type: "all", queryBy: "hybrid", mode: "thinking", }); @@ -407,7 +403,6 @@ result = client.query( database="acme_corp", collections=["company_docs", "user_alex"], query="What is our refund policy, and how should I explain it to this user?", - type="all", query_by="hybrid", mode="thinking", ) diff --git a/api-reference/v2/endpoint/subgraph.mdx b/api-reference/v2/endpoint/subgraph.mdx index 73fab044..8e3fc5b0 100644 --- a/api-reference/v2/endpoint/subgraph.mdx +++ b/api-reference/v2/endpoint/subgraph.mdx @@ -6,7 +6,7 @@ description: "Retrieve the thread, parent and child sources, and declared links Use this endpoint when a query result needs more context, such as the replies to a Slack message. Pass an `id` returned by [Query](/api-reference/v2/endpoint/query), [List Context](/api-reference/v2/endpoint/list-context), or [Ingest Context](/api-reference/v2/endpoint/ingest-context) to retrieve the starting source, the sources connected to it, and their relationships. -The endpoint follows threads, parent-child relationships, and forceful relations (links you declare between sources). For relationships extracted from text, such as service dependencies, use [Inspecting Context Relations](/api-reference/v2/endpoint/source-relations). +The endpoint follows threads, parent-child relationships, and deterministic relations (links you declare between sources). For relationships extracted from text, such as service dependencies, use [Inspecting Context Relations](/api-reference/v2/endpoint/source-relations). diff --git a/api-reference/v2/error-responses.mdx b/api-reference/v2/error-responses.mdx index 048db19d..1600b57e 100644 --- a/api-reference/v2/error-responses.mdx +++ b/api-reference/v2/error-responses.mdx @@ -228,7 +228,7 @@ An empty result is a successful response, not an error. Common causes: - The source is still `queued` or `processing`. Poll [`GET /context/status`](/api-reference/v2/endpoint/source-status). - `metadata_filters` is too restrictive or targets the wrong metadata namespace. - The query is scoped to the wrong `database` or `collection`. -- The `type` value excludes the store you need. Use `type: "all"` to combine knowledge and memories in `POST /query`. +- The `type` value excludes the store you need. Leave `type` out of `POST /query` to combine knowledge and memories. ## Related diff --git a/api-reference/v2/sdks.mdx b/api-reference/v2/sdks.mdx index c1b65963..898e0ad8 100644 --- a/api-reference/v2/sdks.mdx +++ b/api-reference/v2/sdks.mdx @@ -388,7 +388,6 @@ personalized = client.query( database="my_first_database", collections=["company_docs", "user_alex"], query="What is our refund policy, and how should I explain it to this user?", - type="all", query_by="hybrid", mode="thinking", ) @@ -420,7 +419,6 @@ const personalized = await client.query({ database: "my_first_database", collections: ["company_docs", "user_alex"], query: "What is our refund policy, and how should I explain it to this user?", - type: "all", queryBy: "hybrid", mode: "thinking", }); diff --git a/cookbooks/v2/chief-of-staff.mdx b/cookbooks/v2/chief-of-staff.mdx index 59639263..ca2dbbb4 100644 --- a/cookbooks/v2/chief-of-staff.mdx +++ b/cookbooks/v2/chief-of-staff.mdx @@ -85,7 +85,7 @@ remember("2026-10-02: Moved the EU launch to November 17 because legal needs two ## 4. Ask what is current -Query both collections at once with `type: "all"`, as the executive. `acl` keeps the brief to what this person may see: their own mail, and the Slack channels they belong to. `recency_bias` favors newer context, and `thinking` mode reranks, so the current launch date ranks above the one it replaced. +Query both collections at once, as the executive. `acl` keeps the brief to what this person may see: their own mail, and the Slack channels they belong to. `recency_bias` favors newer context, and `thinking` mode reranks, so the current launch date ranks above the one it replaced. ```python chief_of_staff.py def brief(question): @@ -93,7 +93,6 @@ def brief(question): database=DATABASE, collections=[RECORDS, EXECUTIVE], query=question, - type="all", mode="thinking", recency_bias=0.6, acl=[EXECUTIVE_EMAIL], diff --git a/cookbooks/v2/personal-assistant.mdx b/cookbooks/v2/personal-assistant.mdx index 90ffa57b..51e303d0 100644 --- a/cookbooks/v2/personal-assistant.mdx +++ b/cookbooks/v2/personal-assistant.mdx @@ -108,7 +108,7 @@ add_photo( ## 4. Answer from memories and items together -`type: "all"` searches the user's memories and knowledge in one call. `acl` is the user's own email, so the query returns only what this person may see. +Leaving `type` out searches the user's memories and knowledge in one call. `acl` is the user's own email, so the query returns only what this person may see. ```python assistant.py def ask(question): @@ -116,7 +116,6 @@ def ask(question): database=DATABASE, collection=USER, query=question, - type="all", mode="thinking", acl=[USER_EMAIL], ) diff --git a/cookbooks/v2/support-agent.mdx b/cookbooks/v2/support-agent.mdx index ebb53314..852da0eb 100644 --- a/cookbooks/v2/support-agent.mdx +++ b/cookbooks/v2/support-agent.mdx @@ -89,7 +89,7 @@ remember("4821", [ ## 4. Answer from both collections -Name both collections and set `type: "all"`. The query reads this customer's memories and the shared help center, and nothing else. Take `customer_id` from the authenticated session, never from the message: the collection name is what keeps one customer's history out of another's answers. +Name both collections and leave `type` out. The query reads this customer's memories and the shared help center, and nothing else. Take `customer_id` from the authenticated session, never from the message: the collection name is what keeps one customer's history out of another's answers. ```python support.py ROLES = { @@ -104,7 +104,6 @@ def support_agent(role, customer_id, question): database=DATABASE, collections=[HELP_CENTER, customer_collection(customer_id)], query=question, - type="all", mode="thinking", ) return answer(question, result, ROLES[role]) diff --git a/essentials/v2/context.mdx b/essentials/v2/context.mdx index 1feddaaf..32ced56d 100644 --- a/essentials/v2/context.mdx +++ b/essentials/v2/context.mdx @@ -48,7 +48,7 @@ import { Field } from "/snippets/field.jsx"; Ingestion - CLI/MCP: auto selection by default. The public multipart API defaults to `type=knowledge`; send `type=memory` with legacy memory items. `auto` is not an API wire value. + CLI/MCP: auto selection by default. The public multipart API defaults to `type=knowledge`; send `type=memory` with `memories` items. `auto` is not an API wire value. `type=knowledge` `type=memory` Not a public ingestion type. Store trace text as knowledge or memories. @@ -96,7 +96,7 @@ Give each user their own collection, such as `user_john_123`, and send it on eve Apply the same server-derived scope and authorization to updates and deletes. Before any operation, authorize the signed-in user's access to the source in that collection; knowing a source ID or collection name is not permission to read or change it. 1. **Let HydraDB infer**: `infer` controls whether HydraDB extracts memories and preferences from what you send. - 1. `infer: true` (default): Extracts the preferences, trait, or fact from messy or indirect evidence. This also applies when `infer` is omitted from a legacy `memories` item. + 1. `infer: true` (default): Extracts the preferences, trait, or fact from messy or indirect evidence. Omitting `infer` means `true`. 2. `infer: false`: Disables additional memory enrichment for that item. Ingestion, indexing, and entity/graph extraction may still run. 2. **Ingest memory**: It can be via `text` or `user_assistant_pairs`, not both. - `text`: Any prose, such as observations, facts, meeting notes, or semi-structured records. Set `is_markdown: true` for Markdown content so HydraDB keeps its structure when chunking and embedding. diff --git a/essentials/v2/query.mdx b/essentials/v2/query.mdx index 3ea29815..2ad218b2 100644 --- a/essentials/v2/query.mdx +++ b/essentials/v2/query.mdx @@ -122,7 +122,7 @@ The following sample request searches the `acme_corp` database. `type` - Defaults to `"all"`, searching knowledge and memories together. Set `"knowledge"` for documents or `"memory"` for saved preferences. + Leave it out to search knowledge and memories together and get one ranked list of at most `max_results` chunks. Set `"knowledge"` for documents and synced app content, or `"memory"` for saved preferences and conversations. `"all"` names the same default explicitly, but leaving `type` out is the form that works on every database. @@ -210,7 +210,6 @@ Table answers run in thinking mode only; `"fast"` returns the ranked chunks with database="acme_corp", collections=["company_docs", "user_john_123"], query="How do I reset my password?", - type="all", mode="thinking", max_results=8, ) @@ -221,7 +220,6 @@ Table answers run in thinking mode only; `"fast"` returns the ranked chunks with database: "acme_corp", collections: ["company_docs", "user_john_123"], query: "How do I reset my password?", - type: "all", mode: "thinking", maxResults: 8, }); @@ -236,7 +234,6 @@ Table answers run in thinking mode only; `"fast"` returns the ranked chunks with "database": "acme_corp", "collections": ["company_docs", "user_john_123"], "query": "How do I reset my password?", - "type": "all", "mode": "thinking", "max_results": 8 }' @@ -373,8 +370,8 @@ console.log(completion.choices[0].message.content); | Empty `query_paths` or `chunk_relations` | `graph_context` set to `false`, or no relationships exist for the result set | Leave `graph_context` on (the default). Empty arrays are normal when there is nothing to return. | | Recent uploads do not appear in results | Indexing not finished | Poll [`GET /context/status`](/api-reference/v2/endpoint/source-status) with the source ids. Chunks are invisible until indexing reaches at least `graph_creation`. | | `metadata_filters` does not narrow results | Filter key is in the wrong namespace, the value does not match exactly, or the top-level field was not declared in the metadata schema | Top-level keys match `metadata`; free-form per-source fields must be nested under `additional_metadata`. Declare hot filter keys in `database_metadata_schema` before production ingest. | -| Memories missing from a `type: "knowledge"` query | Wrong store selected | Use `type: "memory"` or `type: "all"`. | -| Knowledge missing from a `type: "all"` query | The documents live in a different collection from the one you sent | List both collections in `collections`. | +| Memories missing from a `type: "knowledge"` query | Wrong store selected | Use `type: "memory"`, or leave `type` out to search both. | +| Knowledge missing from a query over both stores | The documents live in a different collection from the one you sent | List both collections in `collections`. | | Recency does not seem to matter | `recency_bias` was sent as `0`, or the default `0.6` tilt is too mild | Raise it toward `1.0`. | | `operator: "phrase"` returns `400` | `query_by` not set to `"text"` | `"and"` and `"phrase"` only apply to BM25 text queries: switch `query_by` to `"text"`. | | `query_explicit_relations` ignored | Request runs in `mode: "fast"` (or `auto` routed to fast) | Deterministically linked sources are fetched only in thinking mode. Set `mode: "thinking"`. | diff --git a/get-started/v2/quickstart.mdx b/get-started/v2/quickstart.mdx index dc6717a4..eeab4f70 100644 --- a/get-started/v2/quickstart.mdx +++ b/get-started/v2/quickstart.mdx @@ -102,7 +102,6 @@ wait_for("user_123", mem.data.results[0].id) results = client.query( database=database, collections=["company_docs", "user_123"], - type="all", query="Can this customer get a refund, and what have we told them so far?", ) @@ -164,7 +163,6 @@ await waitFor("user_123", mem.data?.results?.[0]?.id); const results = await client.query({ database, collections: ["company_docs", "user_123"], - type: "all", query: "Can this customer get a refund, and what have we told them so far?", }); @@ -233,7 +231,6 @@ curl -s -X POST "$API/query" "${AUTH[@]}" \ { "database": "${DATABASE}", "collections": ["company_docs", "user_123"], - "type": "all", "query": "Can this customer get a refund, and what have we told them so far?" } EOF diff --git a/llms.txt b/llms.txt index 072fb5eb..7027729a 100644 --- a/llms.txt +++ b/llms.txt @@ -205,7 +205,7 @@ Knowledge is the documents and facts your AI reasons over: PDFs, Markdown, and C ### Memories -Memories are preferences, decisions, past conversations, behavioral signals, and inferred traits. Ingest them with `type: "memory"` into the collection you will query them from, and query with `type: "memory"` or `type: "all"`. Item fields, including `infer`, are in [6. Source ingestion](#6-source-ingestion). +Memories are preferences, decisions, past conversations, behavioral signals, and inferred traits. Ingest them with `type: "memory"` into the collection you will query them from, and query with `type: "memory"`, or leave `type` out to search memories and knowledge together. Item fields, including `infer`, are in [6. Source ingestion](#6-source-ingestion). ### Query @@ -655,7 +655,7 @@ Memory item fields: | `text` | raw text or Markdown; required unless `user_assistant_pairs` provided | | `user_assistant_pairs` | dialogue pairs `{ user, assistant }`; useful for implied preferences | | `is_markdown` | preserve Markdown structure during chunking | -| `infer` | defaults to `true`, including omitted `infer` on legacy `memories` items: HydraDB extracts the durable preference or fact. Explicit `false` stores the memory verbatim | +| `infer` | defaults to `true` when omitted: HydraDB extracts the durable preference or fact. Explicit `false` stores the memory verbatim | | `user_name` | helps inference | | `metadata` | schema-aligned fields, as an object (do not stringify it again inside `memories`). `tenant_metadata` is not read on memory items. | | `additional_metadata` | free-form fields; keep as objects | @@ -767,7 +767,7 @@ Rules: | `collection` | string/null | the collection the context was saved in; default collection if omitted | | `collections` | list of collection IDs, or an object of weights | query up to 100 collections at once; every listed collection must exist. Send weights, such as `{"user_alex": 2, "company_docs": 1}`, to rank one collection over another | | `query` | string | required | -| `type` | `knowledge`, `memory`, `all` | defaults to `all`, searching knowledge and memories; choose a type to narrow it | +| `type` | `knowledge`, `memory`, `all` | omit it to search knowledge and memories together, at most `max_results` chunks in total; choose a type to narrow it. Leave it out rather than sending `all` | | `acl` | list of principals | who is asking; see [Send `acl` on user queries](#send-acl-on-user-queries) | | `query_by` | `hybrid`, `text` | default `hybrid` (semantic + BM25); `text` is BM25 keyword/phrase search | | `operator` | `or`, `and`, `phrase` | only for `query_by: "text"` | @@ -781,7 +781,7 @@ Rules: | `metadata_filters` | object | deterministic filters before/around ranking | | `query_apps` | boolean | app-aware retrieval lane for content synced by connectors; still searches the full selected knowledge scope; defaults to `true` on `/query`, send `false` to disable | -`type: "all"` reads both stores from the same scope. When shared knowledge lives in its own collection, send `collections: ["", ""]`. +Leaving `type` out reads both stores from the same scope. When shared knowledge lives in its own collection, send `collections: ["", ""]`. ### Recommended configurations @@ -789,7 +789,7 @@ Rules: |---|---| | Fast document RAG | `type: "knowledge"`, `query_by: "hybrid"`, `mode: "fast"`, `graph_context: false`, `max_results: 5-10` | | Highest-quality document RAG | `type: "knowledge"`, `query_by: "hybrid"`, `mode: "thinking"`, `graph_context: true`, `alpha: "auto"` | -| Personalized grounded answer | `type: "all"`, `collections` listing the shared collection and the user's, `query_by: "hybrid"`, `mode: "thinking"` | +| Personalized grounded answer | `type` omitted, `collections` listing the shared collection and the user's, `query_by: "hybrid"`, `mode: "thinking"` | | User preferences only | `type: "memory"`, include `collection`, `query_by: "hybrid"` | | Exact keyword / phrase | `type: "knowledge"`, `query_by: "text"`, `operator: "phrase"` | | Recent operational updates | `query_by: "hybrid"`, `recency_bias: 0.6-0.8`, metadata filter to doc type/status | @@ -818,7 +818,6 @@ const result = await client.query({ database: "acme_corp", collections: ["company_docs", "user_alex"], // shared knowledge and this user's memories query: "What is our refund policy, and how should I explain it to this user?", - type: "all", queryBy: "hybrid", mode: "thinking", alpha: "auto", @@ -900,7 +899,7 @@ Use `chunks` as the primary LLM context. Preserve server order, which is the ran - Start with `max_results: 10`; reduce it for tight context windows. - Use graph context only when it helps the question. - Use `data.additional_graph_context` to attach explicitly related chunks by `chunk_uuid` / `extra_context_ids`. It is a response map, separate from the request's `additional_graph_context` string hint. The legacy `data.additional_context` response alias contains the same map. -- For personalized answers, `type: "all"` is simplest: one result set already merges knowledge and memories. +- For personalized answers, leave `type` out: one result set already merges knowledge and memories. Python: diff --git a/scripts/test_cookbooks.py b/scripts/test_cookbooks.py index 6967a7f4..6ec23a38 100644 --- a/scripts/test_cookbooks.py +++ b/scripts/test_cookbooks.py @@ -301,7 +301,8 @@ def query(self, **kwargs): scopes = kwargs.get("collections") or [kwargs["collection"]] test.assertFalse("collection" in kwargs and "collections" in kwargs) test.assertLessEqual(set(scopes), self.collections) - test.assertIn(kwargs["type"], {"knowledge", "memory", "all"}) + test.assertIn(kwargs.get("type"), {None, "knowledge", "memory"}, + "omit type to search both stores; a unified database rejects an explicit all") test.assertIn(kwargs.get("mode", "auto"), {"fast", "thinking", "auto"}) if "max_results" in kwargs: test.assertLessEqual(kwargs["max_results"], 250) diff --git a/scripts/test_docs_consistency.py b/scripts/test_docs_consistency.py index 28455472..f4d4d895 100644 --- a/scripts/test_docs_consistency.py +++ b/scripts/test_docs_consistency.py @@ -431,5 +431,51 @@ def test_guides_do_not_show_internal_query_fields(self): path.relative_to(ROOT)) + +def v2_pages(): + for path in live_files("*.mdx"): + relative = path.relative_to(ROOT).as_posix() + if "/v2/" in f"/{relative}" or relative == "AGENTS.mdx": + yield relative, path.read_text(encoding="utf-8") + + +class PublishedQueryContractTest(unittest.TestCase): + """The production query contract the guides teach (PRO-1618 review, 2026-11-16).""" + + def test_examples_leave_the_default_query_type_out(self): + explicit_all = re.compile(r"""\btype\b["']?\s*[:=]\s*["']all["']""") + offenders = [ + f"{relative}: {match.group(0)}" + for relative, text in v2_pages() + for block in re.findall(r"```.*?```", text, re.S) + for match in explicit_all.finditer(block) + ] + self.assertEqual([], offenders, "omit type to search both stores; a unified database rejects an explicit all") + + def test_withdrawn_query_aliases_and_notices_are_not_documented(self): + withdrawn = re.compile( + r"follow_forceful_relations|enrichment_enabled_by_default" + r"|alias(?:es)?\b[^.\n]*`context`|> `context`" + ) + offenders = [f"{relative}: {m.group(0)}" for relative, text in v2_pages() for m in withdrawn.finditer(text)] + self.assertEqual([], offenders) + + def test_declared_links_use_the_deterministic_relations_name(self): + offenders = [ + f"{relative}: {m.group(0)}" + for relative, text in v2_pages() + for m in re.finditer(r"(?i)forceful[ -]relations?\b", text) + ] + self.assertEqual([], offenders) + + def test_memory_ingest_path_is_not_called_legacy(self): + offenders = [ + f"{relative}: {m.group(0)}" + for relative, text in v2_pages() + for m in re.finditer(r"(?i)legacy\s+`?memor", text) + ] + self.assertEqual([], offenders) + + if __name__ == "__main__": unittest.main() From c80c7bc51b1f424bd5ba9bdc207819fe76e09817 Mon Sep 17 00:00:00 2001 From: SohamRatnaparkhi Date: Mon, 16 Nov 2026 17:31:04 +0530 Subject: [PATCH 18/33] docs: fix editor leftovers in the rewritten guides (ENG-1618) Plain corrections in the pages rewritten in the Mintlify editor: half-edited sentences, stray spaces inside code spans, a non-breaking space, `collection` where the read field is `collections`, `POST /connectors/{id}/sync` described as changing the interval, `$KEY` in the BYOG overview where every other page reads `$HYDRADB_API_KEY`, the MCP upgrade note naming `@1.x.x` instead of the old `@1.0.0` pin, and a deprecation section that the "Migrating from tenant fields" links land on but that no longer named the old fields. Co-Authored-By: Claude Opus 5.5 Signed-off-by: SohamRatnaparkhi --- essentials/v2/byog-overview.mdx | 4 ++-- essentials/v2/connectors.mdx | 14 +++++++------- essentials/v2/context.mdx | 2 +- essentials/v2/databases-and-collections.mdx | 10 +++++++--- essentials/v2/query.mdx | 6 +++--- get-started/v2/quickstart.mdx | 2 +- plugins/cli.mdx | 2 +- plugins/mcp.mdx | 6 +++--- 8 files changed, 25 insertions(+), 21 deletions(-) diff --git a/essentials/v2/byog-overview.mdx b/essentials/v2/byog-overview.mdx index dd7e39a4..b5e149ea 100644 --- a/essentials/v2/byog-overview.mdx +++ b/essentials/v2/byog-overview.mdx @@ -34,12 +34,12 @@ This page is an overview of how BYOG works. For the complete guide with every en ```bash # 1. Create a database curl -X POST "https://api.hydradb.com/byog/databases" \ - -H "Authorization: Bearer $KEY" -H "API-Version: 2" -H "Content-Type: application/json" \ + -H "Authorization: Bearer $HYDRADB_API_KEY" -H "API-Version: 2" -H "Content-Type: application/json" \ -d '{"database": "crm"}' # 2. Write nodes (the collection is created on first write) curl -X POST "https://api.hydradb.com/byog/query" \ - -H "Authorization: Bearer $KEY" -H "API-Version: 2" -H "Content-Type: application/json" \ + -H "Authorization: Bearer $HYDRADB_API_KEY" -H "API-Version: 2" -H "Content-Type: application/json" \ -d '{ "database": "crm", "collection": "contacts", diff --git a/essentials/v2/connectors.mdx b/essentials/v2/connectors.mdx index a473c553..fb633653 100644 --- a/essentials/v2/connectors.mdx +++ b/essentials/v2/connectors.mdx @@ -54,7 +54,7 @@ You don't have to write or maintain ingestion code, infrastructure or organize d ## Setting up a connector -They are the same for every provider; only the credentials and resource types change. Set up your [SDK client](/api-reference/v2/sdks#client-setup) first. +The steps are the same for every provider; only the credentials and resource types change. Set up your [SDK client](/api-reference/v2/sdks#client-setup) first. ### Step 1: Pick a provider @@ -316,7 +316,7 @@ curl -X POST 'https://api.hydradb.com/connectors/{id}/configure' \ [`GET /connectors/{id}/status`](/api-reference/v2/endpoint/get-connector-status) reports the connector and each resource. `lifecycle` reads as `ingesting` until the first sync ingests data fully, then it says `active`. Query the data once it's `active`. -After that, HydraDB syncs every `sync_interval_seconds` (1 hour by default). Call `POST /connectors/{id}/sync` to change. +After that, HydraDB syncs every `sync_interval_seconds` (1 hour by default). Call `POST /connectors/{id}/sync` to sync now, or change the interval with `PATCH /connectors/{id}`. @@ -324,7 +324,7 @@ After that, HydraDB syncs every `sync_interval_seconds` (1 hour by default). Cal | To change | Call | | --- | --- | -| A resource's instructions around ACL | [`PATCH /connectors/{id}/resources/{resource_id}`](/api-reference/v2/endpoint/update-connector-resource) | +| A resource's ACL rule | [`PATCH /connectors/{id}/resources/{resource_id}`](/api-reference/v2/endpoint/update-connector-resource) | | Connector custom ingestion instructions, interval, or credentials | [`PATCH /connectors/{id}`](/api-reference/v2/endpoint/update-connector). Sending new credentials reconnects it and keeps its resources. | | Stop syncing a resource. | [Delete Connector Resource](/api-reference/v2/endpoint/delete-connector-resource). You can also look into [Pause](/api-reference/v2/endpoint/pause-connector) or [Resume](/api-reference/v2/endpoint/resume-connector). Nothing created in the meantime is skipped. | | Deleting the entire connector | [Delete Connector](/api-reference/v2/endpoint/delete-connector) | @@ -395,7 +395,7 @@ Only a signed-in human workspace owner or writer can supply `enforce_acl` on cre - **Google Drive**: Per-file sharing: user, group, domain, and public grants. - **Confluence:** Space view permissions and per-page restrictions. -and so forth. For other providers, check `acl_supported` in the [provider catalog](/api-reference/v2/endpoint/list-connector-providers). For other providers that don't you can [set your own rule on the resource](#set-your-own-rule-on-a-resource). +and so forth. For other providers, check `acl_supported` in the [provider catalog](/api-reference/v2/endpoint/list-connector-providers). For a provider that does not capture permissions, [set your own rule on the resource](#set-your-own-rule-on-a-resource). While `enforce_acl` is `false` (the default), a request without `acl` is **not** filtered by caller identity. Send identity in `acl`, or ask a signed-in human workspace owner or writer to enable **Enforce ACL** in the dashboard connector settings. Do not send `enforce_acl: false` as an API-key workaround. @@ -534,11 +534,11 @@ Several connectors can write to the same database and collection. Filter on `con - - **Editing a resource with** `POST /connectors/{id}/resources`**:** it returns `409` and changes nothing. Use `PATCH /connectors/{id}/resources/{resource_id}` instead, or configure again. - - **Configuring again without** `name `**and** `resource_type`**:** omitted values are cleared. + - **Editing a resource with `POST /connectors/{id}/resources`:** it returns `409` and changes nothing. Use `PATCH /connectors/{id}/resources/{resource_id}` instead, or configure again. + - **Configuring again without `name` and `resource_type`:** omitted values are cleared. - **Expecting a resource instruction to add to the connector default:** it replaces the default. - **Two accounts with the same** `provider_account_scope`**:** their sources overwrite each other. - **Filtering a provider field as a top-level key:** provider-native fields live in `additional_metadata`. Use the `filter_key` from the provider description. - - **Querying before** `lifecycle `**is** `active`**:** the first sync hasn't landed yet. + - **Querying before `lifecycle` is `active`:** the first sync hasn't landed yet. diff --git a/essentials/v2/context.mdx b/essentials/v2/context.mdx index 32ced56d..cb97ab18 100644 --- a/essentials/v2/context.mdx +++ b/essentials/v2/context.mdx @@ -210,7 +210,7 @@ The response lists each memory in `data.results` with its `id` and a `status` of ## Wait for indexing -Use polling or webhooks for verify indexing status: +Use polling or webhooks to check indexing status: - **Webhooks:** register a [webhook](/api-reference/v2/endpoint/webhooks-overview) and HydraDB notifies you when indexing finishes, so you don't need to poll. - **Polling:** call [`GET /context/status`](/api-reference/v2/endpoint/source-status) with those ids and the same `collection` every few seconds until `indexing_status` is `completed` or `errored`. diff --git a/essentials/v2/databases-and-collections.mdx b/essentials/v2/databases-and-collections.mdx index 85b5f869..8d787d8b 100644 --- a/essentials/v2/databases-and-collections.mdx +++ b/essentials/v2/databases-and-collections.mdx @@ -22,11 +22,11 @@ Some examples of goals and outcomes to help shape up your mental model ## How writes and reads scope -**Writes:** Send the `collection` you will query the context from. John's memories go in John's collection; shared knowledge goes in the shared one. When omit `collection` HydraDB uses a universal default collection, which is automatically created. +**Writes:** Send the `collection` you will query the context from. John's memories go in John's collection; shared knowledge goes in the shared one. When you omit `collection`, HydraDB uses a universal default collection, which is automatically created. -**Reads:** A query containing one `collection` reads only that collection. To read several collections at once, send `collection` names as a list, or as an object that maps each collection to a relative ranking weight, as in `{"company_docs": 1.5, "user_123": 0.8}`. +**Reads:** A query containing one `collection` reads only that collection. To read several collections at once, send `collections` as a list, or as an object that maps each collection to a relative ranking weight, as in `{"company_docs": 1.5, "user_123": 0.8}`. -**Deleting a collection:** `DELETE /databases/collections` permanently deletes that collection and everything in it. The parent database and its other collections unaffected. +**Deleting a collection:** `DELETE /databases/collections` permanently deletes that collection and everything in it. The parent database and its other collections are unaffected. @@ -38,6 +38,10 @@ When a request uses a deprecated route or field, HydraDB adds a deprecation noti **Response headers:** `Deprecation: true`, plus a `Warning` header carrying the migration message. +**Response body:** `meta.deprecation` lists each notice with its `message`. + +The deprecated names map one to one: `tenant_id` is `database`, `sub_tenant_id` is `collection`, `sub_tenant_ids` on `/query` is `collections`, and the `/tenants/*` routes are the `/databases/*` routes. The old names still work. + ## Common mistakes **Mismatched `collection` between write and read:** diff --git a/essentials/v2/query.mdx b/essentials/v2/query.mdx index 2ad218b2..f04d0e78 100644 --- a/essentials/v2/query.mdx +++ b/essentials/v2/query.mdx @@ -3,7 +3,7 @@ title: "Query" description: "Agents query differently. They ask harder, longer, and multi part questions. " --- -Imagine your AI at the center of a web of information and it can keep crawling the web gathers all relevant information. +Imagine your AI at the center of a web of information and it can keep crawling that web to gather all relevant information. This is where the real magic happens. Agents perform better searches with graphs i.e. you notice agents asking less up front, while consistently delivering accurate work that is verifiable with citations across sources. @@ -263,7 +263,7 @@ Table answers run in thinking mode only; `"fast"` returns the ranked chunks with ## 6. As an admin you can query the app on behalf of a user - **From ingested context, and connectors without ACL enforcement:** send the caller's email in `acl`, such as `"acl": ["grace@acme.com"]`, to filter results to documents that person may have retrieved themselves. Without `acl`, this content is not filtered by caller identity. -- **From connectors with** `enforce_acl `**enabled:** HydraDB uses the authenticated caller and ignores a request `acl` for that connector's content. API keys use the key creator's email; MCP OAuth and dashboard requests use the signed-in user. If you send `acl` anyway, a successful response includes one `meta.warnings` entry with code `acl_ignored_by_connector_enforcement`. +- **From connectors with `enforce_acl` enabled:** HydraDB uses the authenticated caller and ignores a request `acl` for that connector's content. API keys use the key creator's email; MCP OAuth and dashboard requests use the signed-in user. If you send `acl` anyway, a successful response includes one `meta.warnings` entry with code `acl_ignored_by_connector_enforcement`. An `acl` entry on a source or a query is a **principal**: @@ -276,7 +276,7 @@ An `acl` entry on a source or a query is a **principal**: ## 7. Use the results -HydraDB recreates complete context that is helpful to your agents: your application. `build_string(result)` in Python and `buildString(result)` in TypeScript return `data.llm_prompt`, which numbers the ranked results `[1]`, `[2]`, and so on, so you can ask the agent use that for citations. +HydraDB recreates complete context that is helpful to your agents: your application. `build_string(result)` in Python and `buildString(result)` in TypeScript return `data.llm_prompt`, which numbers the ranked results `[1]`, `[2]`, and so on, so you can ask the agent to cite by those numbers. diff --git a/get-started/v2/quickstart.mdx b/get-started/v2/quickstart.mdx index eeab4f70..efda56b9 100644 --- a/get-started/v2/quickstart.mdx +++ b/get-started/v2/quickstart.mdx @@ -248,4 +248,4 @@ Customer asked for a refund on 2026-09-30 and was told to wait for the billing c Send these chunks to your model as context. `build_string` in Python and `buildString` in TypeScript format them for a prompt. See [Query](/essentials/v2/query#7-use-the-results). -HydraDB is serverless: there is nothing to provision, and the same code works at any scale, whether the context is a markdown file or a slack messages synced by a [connector](/essentials/v2/connectors). +HydraDB is serverless: there is nothing to provision, and the same code works at any scale, whether the context is a Markdown file or Slack messages synced by a [connector](/essentials/v2/connectors). diff --git a/plugins/cli.mdx b/plugins/cli.mdx index 2cc9241f..346b9040 100644 --- a/plugins/cli.mdx +++ b/plugins/cli.mdx @@ -1,6 +1,6 @@ --- title: "CLI" -description: "Ingest, inpsect infrastructure, from your terminal with the CLI." +description: "Ingest, query, and inspect infrastructure from your terminal with the CLI." --- ## Quickstart diff --git a/plugins/mcp.mdx b/plugins/mcp.mdx index bc3febb8..92ab2141 100644 --- a/plugins/mcp.mdx +++ b/plugins/mcp.mdx @@ -3,7 +3,7 @@ title: "MCP" description: "Connect your agents to HydraDB through MCP server." --- -The MCP is open source. [Raise an issue](https://github.com/hydra-db/hydradb-mcp/issues) or [contribute on GitHub](https://github.com/hydra-db/hydradb-mcp). The MCP server for HydraDB is`https://mcp.hydradb.com` +The MCP is open source. [Raise an issue](https://github.com/hydra-db/hydradb-mcp/issues) or [contribute on GitHub](https://github.com/hydra-db/hydradb-mcp). The MCP server for HydraDB is `https://mcp.hydradb.com`. ## Quickstart @@ -227,8 +227,8 @@ the easiest: add one URL to your AI app and approve it in the browser. the new MCP server. - - If your config points `@0.0.1` or `@1.x.x`, change it to `@^1.1.0` and restart. The caret keeps you on the 1.x line this page documents. + + If your config pins `@0.0.1` or `@1.0.0`, change it to `@^1.1.0` and restart. The caret keeps you on the 1.x line this page documents. From 574ae8276e02523bc35ae85dbbaa940bd9f03556 Mon Sep 17 00:00:00 2001 From: SohamRatnaparkhi Date: Mon, 16 Nov 2026 18:15:18 +0530 Subject: [PATCH 19/33] fix(docs): keep today's query, infer and recency defaults on split databases (ENG-1618) Every existing database is split and must behave as it does today, so the guides state the defaults the server applies there: a query without type searches knowledge, a memory without infer is stored without inference, and recency_bias is 0.4. Query examples that read memories alongside knowledge send type "all" again, as they did before d0d7250. The ingest reference no longer documents the inference_enabled_by_default and enrichment_enabled_by_default notices, which will not ship. The databases guide notes that unified databases bring new defaults for these three and existing databases keep theirs. The consistency tests now pin the knowledge, false and 0.4 defaults, and require a query that reads a user collection to send its store. Co-Authored-By: Claude Opus 5.5 Signed-off-by: SohamRatnaparkhi --- AGENTS.mdx | 15 ++-- .../v2/endpoint/context-overview.mdx | 2 +- api-reference/v2/endpoint/ingest-context.mdx | 56 +-------------- api-reference/v2/endpoint/query-overview.mdx | 6 +- api-reference/v2/endpoint/query.mdx | 13 ++-- api-reference/v2/error-responses.mdx | 2 +- api-reference/v2/sdks.mdx | 2 + cookbooks/v2/chief-of-staff.mdx | 3 +- cookbooks/v2/personal-assistant.mdx | 3 +- cookbooks/v2/support-agent.mdx | 3 +- essentials/v2/context.mdx | 6 +- essentials/v2/databases-and-collections.mdx | 4 ++ essentials/v2/query.mdx | 13 ++-- get-started/v2/quickstart.mdx | 3 + llms.txt | 15 ++-- plugins/cli.mdx | 4 +- scripts/test_cookbooks.py | 3 +- scripts/test_docs_consistency.py | 70 +++++++++++++++---- 18 files changed, 116 insertions(+), 107 deletions(-) diff --git a/AGENTS.mdx b/AGENTS.mdx index 4f06c80f..841afddb 100644 --- a/AGENTS.mdx +++ b/AGENTS.mdx @@ -206,7 +206,7 @@ Knowledge is the documents and facts your AI reasons over: PDFs, Markdown, and C ### Memories -Memories are preferences, decisions, past conversations, behavioral signals, and inferred traits. Ingest them with `type: "memory"` into the collection you will query them from, and query with `type: "memory"`, or leave `type` out to search memories and knowledge together. Item fields, including `infer`, are in [6. Source ingestion](#6-source-ingestion). +Memories are preferences, decisions, past conversations, behavioral signals, and inferred traits. Ingest them with `type: "memory"` into the collection you will query them from, and query with `type: "memory"` or `type: "all"`. Item fields, including `infer`, are in [6. Source ingestion](#6-source-ingestion). ### Query @@ -656,7 +656,7 @@ Memory item fields: | `text` | raw text or Markdown; required unless `user_assistant_pairs` provided | | `user_assistant_pairs` | dialogue pairs `{ user, assistant }`; useful for implied preferences | | `is_markdown` | preserve Markdown structure during chunking | -| `infer` | defaults to `true` when omitted: HydraDB extracts the durable preference or fact. Explicit `false` stores the memory verbatim | +| `infer` | defaults to `false` when omitted, which stores the memory verbatim. Send `true` when the input is raw signal and HydraDB should extract the durable preference or fact | | `user_name` | helps inference | | `metadata` | schema-aligned fields, as an object (do not stringify it again inside `memories`). `tenant_metadata` is not read on memory items. | | `additional_metadata` | free-form fields; keep as objects | @@ -768,21 +768,21 @@ Rules: | `collection` | string/null | the collection the context was saved in; default collection if omitted | | `collections` | list of collection IDs, or an object of weights | query up to 100 collections at once; every listed collection must exist. Send weights, such as `{"user_alex": 2, "company_docs": 1}`, to rank one collection over another | | `query` | string | required | -| `type` | `knowledge`, `memory`, `all` | omit it to search knowledge and memories together, at most `max_results` chunks in total; choose a type to narrow it. Leave it out rather than sending `all` | +| `type` | `knowledge`, `memory`, `all` | defaults to `knowledge`; send `all` to search knowledge and memories together, at most `max_results` chunks in total | | `acl` | list of principals | who is asking; see [Send `acl` on user queries](#send-acl-on-user-queries) | | `query_by` | `hybrid`, `text` | default `hybrid` (semantic + BM25); `text` is BM25 keyword/phrase search | | `operator` | `or`, `and`, `phrase` | only for `query_by: "text"` | | `mode` | `fast`, `thinking`, `auto` | applies to hybrid; omitted means `auto`, which picks fast or thinking per query (thinking when unsure). `fast` is low latency. `thinking` adds query expansion, reranking, richer graph traversal, and explicit-relation expansion; it improves quality but adds latency | | `max_results` | integer/null | default 10; max 250 | | `alpha` | `0.0` to `1.0`, or `auto` | hybrid weight; `1.0` semantic, `0.0` BM25 | -| `recency_bias` | `0.0` to `1.0` | boost newer content; omitted means `0.6`, send `0` to disable | +| `recency_bias` | `0.0` to `1.0` | boost newer content; omitted means `0.4`, send `0` to disable | | `graph_context` | boolean | default true; include graph slice; `false` only takes effect in fast mode, thinking always includes it | | `query_explicit_relations` | boolean | default true; returns explicitly related chunks in `data.additional_graph_context`; only effective in `thinking` mode | | `additional_graph_context` | string | short factual hint that sharpens retrieval; not a hard filter | | `metadata_filters` | object | deterministic filters before/around ranking | | `query_apps` | boolean | app-aware retrieval lane for content synced by connectors; still searches the full selected knowledge scope; defaults to `true` on `/query`, send `false` to disable | -Leaving `type` out reads both stores from the same scope. When shared knowledge lives in its own collection, send `collections: ["", ""]`. +`type: "all"` reads both stores from the same scope. When shared knowledge lives in its own collection, send `collections: ["", ""]`. ### Recommended configurations @@ -790,7 +790,7 @@ Leaving `type` out reads both stores from the same scope. When shared knowledge |---|---| | Fast document RAG | `type: "knowledge"`, `query_by: "hybrid"`, `mode: "fast"`, `graph_context: false`, `max_results: 5-10` | | Highest-quality document RAG | `type: "knowledge"`, `query_by: "hybrid"`, `mode: "thinking"`, `graph_context: true`, `alpha: "auto"` | -| Personalized grounded answer | `type` omitted, `collections` listing the shared collection and the user's, `query_by: "hybrid"`, `mode: "thinking"` | +| Personalized grounded answer | `type: "all"`, `collections` listing the shared collection and the user's, `query_by: "hybrid"`, `mode: "thinking"` | | User preferences only | `type: "memory"`, include `collection`, `query_by: "hybrid"` | | Exact keyword / phrase | `type: "knowledge"`, `query_by: "text"`, `operator: "phrase"` | | Recent operational updates | `query_by: "hybrid"`, `recency_bias: 0.6-0.8`, metadata filter to doc type/status | @@ -819,6 +819,7 @@ const result = await client.query({ database: "acme_corp", collections: ["company_docs", "user_alex"], // shared knowledge and this user's memories query: "What is our refund policy, and how should I explain it to this user?", + type: "all", queryBy: "hybrid", mode: "thinking", alpha: "auto", @@ -900,7 +901,7 @@ Use `chunks` as the primary LLM context. Preserve server order, which is the ran - Start with `max_results: 10`; reduce it for tight context windows. - Use graph context only when it helps the question. - Use `data.additional_graph_context` to attach explicitly related chunks by `chunk_uuid` / `extra_context_ids`. It is a response map, separate from the request's `additional_graph_context` string hint. The legacy `data.additional_context` response alias contains the same map. -- For personalized answers, leave `type` out: one result set already merges knowledge and memories. +- For personalized answers, `type: "all"` is simplest: one result set already merges knowledge and memories. Python: diff --git a/api-reference/v2/endpoint/context-overview.mdx b/api-reference/v2/endpoint/context-overview.mdx index dcdf6476..4f1dd082 100644 --- a/api-reference/v2/endpoint/context-overview.mdx +++ b/api-reference/v2/endpoint/context-overview.mdx @@ -73,7 +73,7 @@ flowchart LR ## Key concepts -- **Knowledge and memories:** Knowledge is the documents, content synced from your apps, and facts your AI uses. Memories are preferences, decisions, and past conversations. Both live in a collection, and a `POST /query` that leaves out `type` searches both from the same scope. +- **Knowledge and memories:** Knowledge is the documents, content synced from your apps, and facts your AI uses. Memories are preferences, decisions, and past conversations. Both live in a collection, and `type: "all"` on `POST /query` searches both from the same scope. - **IDs:** `/context/ingest` returns an ID for each source. To assign your own, set `id` in the `document_metadata` or `memories` item. Use IDs to poll status, inspect content, and delete context. - **Metadata:** [Metadata Filters](/essentials/v2/metadata) covers metadata fields, ingestion, updates, and filtering. - **Deterministic relations:** Links you declare between sources with `relations.ids`. In `thinking` mode, a query returns the linked sources in `data.additional_graph_context` alongside the matching chunks. Set relations on the same `document_metadata` item as the file's metadata: diff --git a/api-reference/v2/endpoint/ingest-context.mdx b/api-reference/v2/endpoint/ingest-context.mdx index 6d98d35e..0b2d0c98 100644 --- a/api-reference/v2/endpoint/ingest-context.mdx +++ b/api-reference/v2/endpoint/ingest-context.mdx @@ -66,59 +66,7 @@ curl -X POST 'https://api.hydradb.com/context/ingest' \ - **Multipart, not JSON:** This endpoint uses `multipart/form-data`. Stringify all JSON arrays (`document_metadata`, `memories`) before placing them in the form field. A body that is neither a form nor JSON returns `415`. - **`202 Accepted` means queued, not indexed:** A successful response only confirms your sources were accepted, not that they are ready to query. Before querying, poll [`GET /context/status`](/api-reference/v2/endpoint/source-status) with the returned IDs until each source reaches `graph_creation` (searchable), `completed`, or `errored`. Alternatively, register a webhook for `indexing.status_changed` events (see [Webhooks](/api-reference/v2/endpoint/webhooks-overview)). -- **Memory and knowledge:** Use `type: "memory"` for memory ingestion, listing, and deletion. Leave `type` out on `POST /query` when results should combine both. - -## Default processing warnings - -The v2 acceptance envelope reports implicit processing defaults in `meta.warnings`, separately from CLI/MCP scope notices: - -- `inference_enabled_by_default` counts accepted memory items whose `infer` was omitted. Set `infer: false` on an item to disable inference. - -Explicit `true` is intentional and produces no default warning, just like explicit `false`. The notice appears at most once per response and counts only accepted affected items, not failed items. Existing warnings and the request ID remain intact. The same rules apply to equivalent supported JSON and form requests; unrelated file/connector processing defaults are unchanged. - -`infer: false` disables additional memory enrichment, not all processing. Ingestion, indexing, and entity/graph extraction may still run; it does not promise raw-only storage or no graph processing. - -This real `202 Accepted` example contains one queued memory whose `infer` was omitted. The warning does not report successful inference or completed indexing; check the existing [processing status](/api-reference/v2/endpoint/source-status) before querying: - -```json 202 -{ - "success": true, - "data": { - "generation_started_at_ms": 1794807761771, - "success": true, - "message": "Memories queued for ingestion successfully. Ingestion is asynchronous: this 202 means the sources were accepted and queued, not indexed. Poll GET /context/status?database=&id= until each source's indexing_status reaches a terminal state (completed or errored) before querying. See https://docs.hydradb.com/api-reference/v2/endpoint/source-status for usage details. ", - "results": [ - { - "id": "example-memory", - "title": null, - "status": "queued", - "infer": true, - "error": null, - "error_code": null - } - ], - "success_count": 1, - "failed_count": 0 - }, - "error": null, - "meta": { - "request_id": "ingest-warning-request", - "api_version": "2.0.1", - "latency_ms": null, - "tenant_id": "crm", - "database": "crm", - "sub_tenant_id": "docs", - "collection": "docs", - "source_type": "memory", - "warnings": [ - { - "code": "inference_enabled_by_default", - "message": "Inference is enabled by default for 1 accepted item because infer was omitted. Set infer to false on an item to disable inference for that item." - } - ] - } -} -``` +- **Memory and knowledge:** Use `type: "memory"` for memory ingestion, listing, and deletion. Use `type: "all"` on `POST /query` when results should combine both. ## Supported file formats @@ -402,7 +350,7 @@ curl -X POST 'https://api.hydradb.com/context/ingest' \ | | Raw text or markdown content. Required unless `user_assistant_pairs` is provided. | | | Conversation pairs `{ user, assistant }`. Required unless `text` is provided. | | | Treat `text` as markdown for chunking. (default=`false`) | - | | Enable additional memory enrichment. Explicit `false` skips that enrichment; ingestion, indexing, and entity/graph extraction may still run. (default=`true`) | + | | Enable additional memory enrichment. Omitted or `false` skips that enrichment; ingestion, indexing, and entity/graph extraction may still run. (default=`false`) | | | The user's name. Feeds inference. (default=`"User"`) | | | See [shared item fields](#shared-item-fields). | | | See [shared item fields](#shared-item-fields). | diff --git a/api-reference/v2/endpoint/query-overview.mdx b/api-reference/v2/endpoint/query-overview.mdx index 66bac703..4e993344 100644 --- a/api-reference/v2/endpoint/query-overview.mdx +++ b/api-reference/v2/endpoint/query-overview.mdx @@ -46,7 +46,7 @@ These parameters shape most queries. [Query](/api-reference/v2/endpoint/query#re | Parameter | Values | Use it for | |---|---|---| -| | `"knowledge"`, `"memory"`, `"all"` | Defaults to `"all"`, searching knowledge and memories. Use `"knowledge"` for shared documents and content synced by connectors, or `"memory"` for memories only. | +| | `"knowledge"`, `"memory"`, `"all"` | Defaults to `"knowledge"`, searching shared documents and content synced by connectors. Use `"memory"` for memories only, or `"all"` to search knowledge and memories together. | | | `"hybrid"`, `"text"` | Choose the matching method. Use `"hybrid"` by default and `"text"` for exact terms or phrases. | | | `"fast"`, `"thinking"`, `"auto"` | Choose a single pass with `"fast"`, broader retrieval with `"thinking"`, or automatic routing with `"auto"`. Defaults to `"auto"`. | | | integer | Limit the returned chunks. Defaults to `10` for one collection. Maximum `250`. | @@ -62,7 +62,7 @@ These parameters shape most queries. [Query](/api-reference/v2/endpoint/query#re |---|---| | Fast answers from documents | `type="knowledge"`, `query_by="hybrid"`, `mode="fast"`, `max_results=5-10`, `graph_context=false` | | Broader document search | `type="knowledge"`, `query_by="hybrid"`, `mode="thinking"` (thinking always includes graph context) | -| Personalized answer | `type` omitted, the user's `collection`, `query_by="hybrid"`, `mode="thinking"`. If shared knowledge lives in another collection, list both in `collections` | +| Personalized answer | `type="all"`, the user's `collection`, `query_by="hybrid"`, `mode="thinking"`. If shared knowledge lives in another collection, list both in `collections` | | User preferences only | `type="memory"`, include `collection`, `query_by="hybrid"` | | Exact keyword or phrase | `type="knowledge"`, `query_by="text"`, `operator="phrase"` | | Recent operational updates | `query_by="hybrid"`, `recency_bias=0.6-0.8`, a metadata filter for the right document type | @@ -100,6 +100,7 @@ Search the shared knowledge collection and the collection the user's memories we "database": "acme", "collections": ["company_docs", "user_alex"], "query": "What is our refund policy, and how should I explain it to this user?", + "type": "all", "query_by": "hybrid", "mode": "thinking" } @@ -119,6 +120,7 @@ Search several collections and return one ranked result set. Use a list for equa "user_alex": 1 }, "query": "What renewal risks should we discuss?", + "type": "all", "query_by": "hybrid", "mode": "thinking" } diff --git a/api-reference/v2/endpoint/query.mdx b/api-reference/v2/endpoint/query.mdx index c8885021..f13d2a19 100644 --- a/api-reference/v2/endpoint/query.mdx +++ b/api-reference/v2/endpoint/query.mdx @@ -225,7 +225,7 @@ By default, `data.llm_prompt` contains the question and matching context as Mark | | Exact source titles, matched case-insensitively. Matches any listed title, then intersects with `ids` if both are sent. | | | Principals for the caller, used to filter sources by ACL. Omitting `acl`, sending `[]`, or sending `["*"]` disables caller-supplied filtering. For enforced connectors, the authenticated caller is used instead; see [ACL enforcement](/essentials/v2/connectors#enforce-acl). | | | Omit for the result object with `llm_prompt`. `"structured"` leaves out the prompt string. `"markdown"` returns the prompt string directly as `data`. | -| | What to query. Omitted, or `"all"`, runs knowledge and memory in parallel over the same scope, merges by `relevancy_score`, and returns at most `max_results` chunks in total. Leave it out rather than sending `"all"`. (default=`"all"`) | +| | What to query. `"all"` runs knowledge and memory in parallel over the same scope, merges by `relevancy_score`, and returns at most `max_results` chunks in total. (default=`"knowledge"`) | | | Retrieval method. See [Query methods](#decision-matrix). (default=`"hybrid"`) | | | Applies to knowledge queries only. Adds app-aware retrieval for messages, threads, and linked records synced by connectors. It still searches all selected knowledge, rather than only synced content. Send `false` to disable app-aware retrieval. (default=`true`) | | | BM25 operator for `query_by: "text"`. `"and"` or `"phrase"` with any other `query_by` returns `400`. (default=`"or"`) | @@ -233,7 +233,7 @@ By default, `data.llm_prompt` contains the question and matching context as Mark | | When the collection holds spreadsheets and the question is tabular, returns the SQL statement HydraDB ran in `tabular_data.sql`. It carries no row data. Applies in thinking mode only. (default=`false`) | | | Maximum chunks to return, from `1` to `250`. Defaults to `10` for a single collection. See [multi-collection defaults](#querying-multiple-collections) when searching several collections. Counts chunks, not bytes or model tokens. | | | Hybrid weight (`1.0` = pure semantic, `0.0` = pure BM25). Applies to `query_by: "hybrid"` only. `"auto"` currently resolves to `0.8`. (default=`0.8`) | -| | Boost newer content. Omitted applies a `0.6` tilt; send `0` to turn it off. (default=`0.6`) | +| | Boost newer content. Omitted applies a mild `0.4` tilt; send `0` to turn it off. (default=`0.4`) | | | When `true`, includes the entity and relation graph slice in the response under `graph_context`. Set to `false` when you only need ranked chunks. Relations you supplied via [Bring Your Own Graph](/essentials/v2/bring-your-own-graph#using-byog-without-cypher) appear here identically to extracted ones. (default=`true`). **`false` only takes effect in `fast` mode: `thinking`, and `auto` when it resolves to thinking, always include the graph slice.** | | | Pull deterministically linked sources (links you declare at ingestion) into `data.additional_graph_context`. **Only takes effect when `mode` resolves to `"thinking"`;** silently skipped in `fast` mode, and under `mode: "auto"` whether it takes effect depends on the automatic routing decision. (default=`true`) | | | A request-time hint to guide retrieval (for example, "user is on the billing page"), not a filter. This is different from the response map `data.additional_graph_context` of linked sources. (default=`null`) | @@ -251,7 +251,8 @@ Use `collections` to search several collections in one request. The field accept { "database": "acme_corp", "collections": ["workspace_42", "user_alex"], - "query": "What renewal risks should I know about?" + "query": "What renewal risks should I know about?", + "type": "all" } ``` @@ -262,7 +263,8 @@ Use `collections` to search several collections in one request. The field accept "workspace_42": 2, "user_alex": 1 }, - "query": "What renewal risks should I know about?" + "query": "What renewal risks should I know about?", + "type": "all" } ``` @@ -383,6 +385,7 @@ curl -X POST 'https://api.hydradb.com/query' \ "database": "acme_corp", "collections": ["company_docs", "user_alex"], "query": "What is our refund policy, and how should I explain it to this user?", + "type": "all", "query_by": "hybrid", "mode": "thinking" }' @@ -393,6 +396,7 @@ const result = await client.query({ database: "acme_corp", collections: ["company_docs", "user_alex"], query: "What is our refund policy, and how should I explain it to this user?", + type: "all", queryBy: "hybrid", mode: "thinking", }); @@ -403,6 +407,7 @@ result = client.query( database="acme_corp", collections=["company_docs", "user_alex"], query="What is our refund policy, and how should I explain it to this user?", + type="all", query_by="hybrid", mode="thinking", ) diff --git a/api-reference/v2/error-responses.mdx b/api-reference/v2/error-responses.mdx index 1600b57e..048db19d 100644 --- a/api-reference/v2/error-responses.mdx +++ b/api-reference/v2/error-responses.mdx @@ -228,7 +228,7 @@ An empty result is a successful response, not an error. Common causes: - The source is still `queued` or `processing`. Poll [`GET /context/status`](/api-reference/v2/endpoint/source-status). - `metadata_filters` is too restrictive or targets the wrong metadata namespace. - The query is scoped to the wrong `database` or `collection`. -- The `type` value excludes the store you need. Leave `type` out of `POST /query` to combine knowledge and memories. +- The `type` value excludes the store you need. Use `type: "all"` to combine knowledge and memories in `POST /query`. ## Related diff --git a/api-reference/v2/sdks.mdx b/api-reference/v2/sdks.mdx index 898e0ad8..c1b65963 100644 --- a/api-reference/v2/sdks.mdx +++ b/api-reference/v2/sdks.mdx @@ -388,6 +388,7 @@ personalized = client.query( database="my_first_database", collections=["company_docs", "user_alex"], query="What is our refund policy, and how should I explain it to this user?", + type="all", query_by="hybrid", mode="thinking", ) @@ -419,6 +420,7 @@ const personalized = await client.query({ database: "my_first_database", collections: ["company_docs", "user_alex"], query: "What is our refund policy, and how should I explain it to this user?", + type: "all", queryBy: "hybrid", mode: "thinking", }); diff --git a/cookbooks/v2/chief-of-staff.mdx b/cookbooks/v2/chief-of-staff.mdx index ca2dbbb4..59639263 100644 --- a/cookbooks/v2/chief-of-staff.mdx +++ b/cookbooks/v2/chief-of-staff.mdx @@ -85,7 +85,7 @@ remember("2026-10-02: Moved the EU launch to November 17 because legal needs two ## 4. Ask what is current -Query both collections at once, as the executive. `acl` keeps the brief to what this person may see: their own mail, and the Slack channels they belong to. `recency_bias` favors newer context, and `thinking` mode reranks, so the current launch date ranks above the one it replaced. +Query both collections at once with `type: "all"`, as the executive. `acl` keeps the brief to what this person may see: their own mail, and the Slack channels they belong to. `recency_bias` favors newer context, and `thinking` mode reranks, so the current launch date ranks above the one it replaced. ```python chief_of_staff.py def brief(question): @@ -93,6 +93,7 @@ def brief(question): database=DATABASE, collections=[RECORDS, EXECUTIVE], query=question, + type="all", mode="thinking", recency_bias=0.6, acl=[EXECUTIVE_EMAIL], diff --git a/cookbooks/v2/personal-assistant.mdx b/cookbooks/v2/personal-assistant.mdx index 51e303d0..90ffa57b 100644 --- a/cookbooks/v2/personal-assistant.mdx +++ b/cookbooks/v2/personal-assistant.mdx @@ -108,7 +108,7 @@ add_photo( ## 4. Answer from memories and items together -Leaving `type` out searches the user's memories and knowledge in one call. `acl` is the user's own email, so the query returns only what this person may see. +`type: "all"` searches the user's memories and knowledge in one call. `acl` is the user's own email, so the query returns only what this person may see. ```python assistant.py def ask(question): @@ -116,6 +116,7 @@ def ask(question): database=DATABASE, collection=USER, query=question, + type="all", mode="thinking", acl=[USER_EMAIL], ) diff --git a/cookbooks/v2/support-agent.mdx b/cookbooks/v2/support-agent.mdx index 852da0eb..ebb53314 100644 --- a/cookbooks/v2/support-agent.mdx +++ b/cookbooks/v2/support-agent.mdx @@ -89,7 +89,7 @@ remember("4821", [ ## 4. Answer from both collections -Name both collections and leave `type` out. The query reads this customer's memories and the shared help center, and nothing else. Take `customer_id` from the authenticated session, never from the message: the collection name is what keeps one customer's history out of another's answers. +Name both collections and set `type: "all"`. The query reads this customer's memories and the shared help center, and nothing else. Take `customer_id` from the authenticated session, never from the message: the collection name is what keeps one customer's history out of another's answers. ```python support.py ROLES = { @@ -104,6 +104,7 @@ def support_agent(role, customer_id, question): database=DATABASE, collections=[HELP_CENTER, customer_collection(customer_id)], query=question, + type="all", mode="thinking", ) return answer(question, result, ROLES[role]) diff --git a/essentials/v2/context.mdx b/essentials/v2/context.mdx index cb97ab18..79e45259 100644 --- a/essentials/v2/context.mdx +++ b/essentials/v2/context.mdx @@ -96,14 +96,12 @@ Give each user their own collection, such as `user_john_123`, and send it on eve Apply the same server-derived scope and authorization to updates and deletes. Before any operation, authorize the signed-in user's access to the source in that collection; knowing a source ID or collection name is not permission to read or change it. 1. **Let HydraDB infer**: `infer` controls whether HydraDB extracts memories and preferences from what you send. - 1. `infer: true` (default): Extracts the preferences, trait, or fact from messy or indirect evidence. Omitting `infer` means `true`. - 2. `infer: false`: Disables additional memory enrichment for that item. Ingestion, indexing, and entity/graph extraction may still run. + 1. `infer: true`: Extracts the preferences, trait, or fact from messy or indirect evidence. Send it for dialogue, behavior logs, and other raw signal. + 2. `infer: false` (default): Stores the memory as you sent it, without additional memory enrichment. Omitting `infer` means `false`. Ingestion, indexing, and entity/graph extraction may still run. 2. **Ingest memory**: It can be via `text` or `user_assistant_pairs`, not both. - `text`: Any prose, such as observations, facts, meeting notes, or semi-structured records. Set `is_markdown: true` for Markdown content so HydraDB keeps its structure when chunking and embedding. - `user_assistant_pairs`: Dialogue, especially when a preference is implied rather than stated. Each pair is `{ "user": "...", "assistant": "..." }`. -When you omit `infer`, the acceptance response includes an `inference_enabled_by_default` notice for the accepted items that used this default. Explicit `true` or `false` does not produce that notice. See [Default processing warnings](/api-reference/v2/endpoint/ingest-context#default-processing-warnings) for the response and opt-out rules. - Set up your [SDK client](/api-reference/v2/sdks#client-setup) before running the Python or TypeScript example. diff --git a/essentials/v2/databases-and-collections.mdx b/essentials/v2/databases-and-collections.mdx index 8d787d8b..cf845c6a 100644 --- a/essentials/v2/databases-and-collections.mdx +++ b/essentials/v2/databases-and-collections.mdx @@ -5,6 +5,10 @@ description: "HydraDB is multi tenant by design. Every database can hold multipl Every write and read is scoped with two fields: `database`, an isolated store for one environment (for eg - one enterprise could be one database), and `collection`, a group separated by logic, not infrastructure, inside a database. Most products need one database and multiple collections. + +Three defaults apply to the databases these guides describe: a query without `type` searches knowledge only, a memory without `infer` is stored without inference, and `recency_bias` is `0.4`. Unified databases will come with new defaults for these three. Existing databases keep the defaults above. + + diff --git a/essentials/v2/query.mdx b/essentials/v2/query.mdx index f04d0e78..a846a176 100644 --- a/essentials/v2/query.mdx +++ b/essentials/v2/query.mdx @@ -122,7 +122,7 @@ The following sample request searches the `acme_corp` database. `type` - Leave it out to search knowledge and memories together and get one ranked list of at most `max_results` chunks. Set `"knowledge"` for documents and synced app content, or `"memory"` for saved preferences and conversations. `"all"` names the same default explicitly, but leaving `type` out is the form that works on every database. + Defaults to `"knowledge"`, searching documents and synced app content. Set `"memory"` for saved preferences and conversations, or `"all"` to search knowledge and memories together. @@ -193,7 +193,7 @@ Table answers run in thinking mode only; `"fast"` returns the ranked chunks with ## 3. Tune the ranking - `alpha`**:** the balance between semantic/meaning (`1.0`) and keywords (`0.0`) in a hybrid query. Default `0.8`; `"auto"` also resolves to `0.8`. -- **`recency_bias`:** how much newer context is favored, from `0.0` to `1.0`. Default `0.6` +- **`recency_bias`:** how much newer context is favored, from `0.0` to `1.0`. Default `0.4`, a mild tilt that only reorders close results. - **`max_results`:** drop to `5` for tight context windows; raise to `20` when you rerank downstream. - **`additional_graph_context`:** a request-time string hint, such as `"user is on the billing page"`, that sharpens retrieval. It is not a filter. This is separate from the response map `data.additional_graph_context` containing linked sources. @@ -210,6 +210,7 @@ Table answers run in thinking mode only; `"fast"` returns the ranked chunks with database="acme_corp", collections=["company_docs", "user_john_123"], query="How do I reset my password?", + type="all", mode="thinking", max_results=8, ) @@ -220,6 +221,7 @@ Table answers run in thinking mode only; `"fast"` returns the ranked chunks with database: "acme_corp", collections: ["company_docs", "user_john_123"], query: "How do I reset my password?", + type: "all", mode: "thinking", maxResults: 8, }); @@ -234,6 +236,7 @@ Table answers run in thinking mode only; `"fast"` returns the ranked chunks with "database": "acme_corp", "collections": ["company_docs", "user_john_123"], "query": "How do I reset my password?", + "type": "all", "mode": "thinking", "max_results": 8 }' @@ -370,9 +373,9 @@ console.log(completion.choices[0].message.content); | Empty `query_paths` or `chunk_relations` | `graph_context` set to `false`, or no relationships exist for the result set | Leave `graph_context` on (the default). Empty arrays are normal when there is nothing to return. | | Recent uploads do not appear in results | Indexing not finished | Poll [`GET /context/status`](/api-reference/v2/endpoint/source-status) with the source ids. Chunks are invisible until indexing reaches at least `graph_creation`. | | `metadata_filters` does not narrow results | Filter key is in the wrong namespace, the value does not match exactly, or the top-level field was not declared in the metadata schema | Top-level keys match `metadata`; free-form per-source fields must be nested under `additional_metadata`. Declare hot filter keys in `database_metadata_schema` before production ingest. | -| Memories missing from a `type: "knowledge"` query | Wrong store selected | Use `type: "memory"`, or leave `type` out to search both. | -| Knowledge missing from a query over both stores | The documents live in a different collection from the one you sent | List both collections in `collections`. | -| Recency does not seem to matter | `recency_bias` was sent as `0`, or the default `0.6` tilt is too mild | Raise it toward `1.0`. | +| Memories missing from a `type: "knowledge"` query | Wrong store selected | Use `type: "memory"` or `type: "all"`. | +| Knowledge missing from a `type: "all"` query | The documents live in a different collection from the one you sent | List both collections in `collections`. | +| Recency does not seem to matter | `recency_bias` was sent as `0`, or the default `0.4` tilt is too mild | Raise it toward `1.0`. | | `operator: "phrase"` returns `400` | `query_by` not set to `"text"` | `"and"` and `"phrase"` only apply to BM25 text queries: switch `query_by` to `"text"`. | | `query_explicit_relations` ignored | Request runs in `mode: "fast"` (or `auto` routed to fast) | Deterministically linked sources are fetched only in thinking mode. Set `mode: "thinking"`. | | `graph_context: false` ignored | Request runs in thinking mode (`mode: "thinking"`, or `auto` routed to thinking) | Thinking always includes the graph slice; `false` takes effect only in fast mode. Set `mode: "fast"` to drop it. | diff --git a/get-started/v2/quickstart.mdx b/get-started/v2/quickstart.mdx index efda56b9..c36963eb 100644 --- a/get-started/v2/quickstart.mdx +++ b/get-started/v2/quickstart.mdx @@ -102,6 +102,7 @@ wait_for("user_123", mem.data.results[0].id) results = client.query( database=database, collections=["company_docs", "user_123"], + type="all", query="Can this customer get a refund, and what have we told them so far?", ) @@ -163,6 +164,7 @@ await waitFor("user_123", mem.data?.results?.[0]?.id); const results = await client.query({ database, collections: ["company_docs", "user_123"], + type: "all", query: "Can this customer get a refund, and what have we told them so far?", }); @@ -231,6 +233,7 @@ curl -s -X POST "$API/query" "${AUTH[@]}" \ { "database": "${DATABASE}", "collections": ["company_docs", "user_123"], + "type": "all", "query": "Can this customer get a refund, and what have we told them so far?" } EOF diff --git a/llms.txt b/llms.txt index 7027729a..f493660e 100644 --- a/llms.txt +++ b/llms.txt @@ -205,7 +205,7 @@ Knowledge is the documents and facts your AI reasons over: PDFs, Markdown, and C ### Memories -Memories are preferences, decisions, past conversations, behavioral signals, and inferred traits. Ingest them with `type: "memory"` into the collection you will query them from, and query with `type: "memory"`, or leave `type` out to search memories and knowledge together. Item fields, including `infer`, are in [6. Source ingestion](#6-source-ingestion). +Memories are preferences, decisions, past conversations, behavioral signals, and inferred traits. Ingest them with `type: "memory"` into the collection you will query them from, and query with `type: "memory"` or `type: "all"`. Item fields, including `infer`, are in [6. Source ingestion](#6-source-ingestion). ### Query @@ -655,7 +655,7 @@ Memory item fields: | `text` | raw text or Markdown; required unless `user_assistant_pairs` provided | | `user_assistant_pairs` | dialogue pairs `{ user, assistant }`; useful for implied preferences | | `is_markdown` | preserve Markdown structure during chunking | -| `infer` | defaults to `true` when omitted: HydraDB extracts the durable preference or fact. Explicit `false` stores the memory verbatim | +| `infer` | defaults to `false` when omitted, which stores the memory verbatim. Send `true` when the input is raw signal and HydraDB should extract the durable preference or fact | | `user_name` | helps inference | | `metadata` | schema-aligned fields, as an object (do not stringify it again inside `memories`). `tenant_metadata` is not read on memory items. | | `additional_metadata` | free-form fields; keep as objects | @@ -767,21 +767,21 @@ Rules: | `collection` | string/null | the collection the context was saved in; default collection if omitted | | `collections` | list of collection IDs, or an object of weights | query up to 100 collections at once; every listed collection must exist. Send weights, such as `{"user_alex": 2, "company_docs": 1}`, to rank one collection over another | | `query` | string | required | -| `type` | `knowledge`, `memory`, `all` | omit it to search knowledge and memories together, at most `max_results` chunks in total; choose a type to narrow it. Leave it out rather than sending `all` | +| `type` | `knowledge`, `memory`, `all` | defaults to `knowledge`; send `all` to search knowledge and memories together, at most `max_results` chunks in total | | `acl` | list of principals | who is asking; see [Send `acl` on user queries](#send-acl-on-user-queries) | | `query_by` | `hybrid`, `text` | default `hybrid` (semantic + BM25); `text` is BM25 keyword/phrase search | | `operator` | `or`, `and`, `phrase` | only for `query_by: "text"` | | `mode` | `fast`, `thinking`, `auto` | applies to hybrid; omitted means `auto`, which picks fast or thinking per query (thinking when unsure). `fast` is low latency. `thinking` adds query expansion, reranking, richer graph traversal, and explicit-relation expansion; it improves quality but adds latency | | `max_results` | integer/null | default 10; max 250 | | `alpha` | `0.0` to `1.0`, or `auto` | hybrid weight; `1.0` semantic, `0.0` BM25 | -| `recency_bias` | `0.0` to `1.0` | boost newer content; omitted means `0.6`, send `0` to disable | +| `recency_bias` | `0.0` to `1.0` | boost newer content; omitted means `0.4`, send `0` to disable | | `graph_context` | boolean | default true; include graph slice; `false` only takes effect in fast mode, thinking always includes it | | `query_explicit_relations` | boolean | default true; returns explicitly related chunks in `data.additional_graph_context`; only effective in `thinking` mode | | `additional_graph_context` | string | short factual hint that sharpens retrieval; not a hard filter | | `metadata_filters` | object | deterministic filters before/around ranking | | `query_apps` | boolean | app-aware retrieval lane for content synced by connectors; still searches the full selected knowledge scope; defaults to `true` on `/query`, send `false` to disable | -Leaving `type` out reads both stores from the same scope. When shared knowledge lives in its own collection, send `collections: ["", ""]`. +`type: "all"` reads both stores from the same scope. When shared knowledge lives in its own collection, send `collections: ["", ""]`. ### Recommended configurations @@ -789,7 +789,7 @@ Leaving `type` out reads both stores from the same scope. When shared knowledge |---|---| | Fast document RAG | `type: "knowledge"`, `query_by: "hybrid"`, `mode: "fast"`, `graph_context: false`, `max_results: 5-10` | | Highest-quality document RAG | `type: "knowledge"`, `query_by: "hybrid"`, `mode: "thinking"`, `graph_context: true`, `alpha: "auto"` | -| Personalized grounded answer | `type` omitted, `collections` listing the shared collection and the user's, `query_by: "hybrid"`, `mode: "thinking"` | +| Personalized grounded answer | `type: "all"`, `collections` listing the shared collection and the user's, `query_by: "hybrid"`, `mode: "thinking"` | | User preferences only | `type: "memory"`, include `collection`, `query_by: "hybrid"` | | Exact keyword / phrase | `type: "knowledge"`, `query_by: "text"`, `operator: "phrase"` | | Recent operational updates | `query_by: "hybrid"`, `recency_bias: 0.6-0.8`, metadata filter to doc type/status | @@ -818,6 +818,7 @@ const result = await client.query({ database: "acme_corp", collections: ["company_docs", "user_alex"], // shared knowledge and this user's memories query: "What is our refund policy, and how should I explain it to this user?", + type: "all", queryBy: "hybrid", mode: "thinking", alpha: "auto", @@ -899,7 +900,7 @@ Use `chunks` as the primary LLM context. Preserve server order, which is the ran - Start with `max_results: 10`; reduce it for tight context windows. - Use graph context only when it helps the question. - Use `data.additional_graph_context` to attach explicitly related chunks by `chunk_uuid` / `extra_context_ids`. It is a response map, separate from the request's `additional_graph_context` string hint. The legacy `data.additional_context` response alias contains the same map. -- For personalized answers, leave `type` out: one result set already merges knowledge and memories. +- For personalized answers, `type: "all"` is simplest: one result set already merges knowledge and memories. Python: diff --git a/plugins/cli.mdx b/plugins/cli.mdx index 346b9040..e7cd7666 100644 --- a/plugins/cli.mdx +++ b/plugins/cli.mdx @@ -154,12 +154,12 @@ hydradb query "PostgreSQL migration" --operator and --database my-db | Command | Description | | --- | --- | -| `--type` | Context type to query: `memory` or `knowledge`. Omit to search both | +| `--type` | Context type to query: `knowledge`, `memory`, or `all`. Omitted means `knowledge`; pass `all` to search knowledge and memories together | | `--operator` | Keyword operator: `or`, `and`, or `phrase`. Setting it switches the query to keyword (text) search | | `--max-results`, `-n` | Maximum results, 1 to 50 (default `10`) | | `--mode`, `-m` | Retrieval mode: `fast` or `thinking`. Omit it and the API picks one per query (`auto`) | | `--alpha` | Hybrid search weight (`0.0` keyword to `1.0` semantic). Omitted means the API default, `0.8` | -| `--recency-bias` | Preference for newer content (`0.0` to `1.0`). Omitted means `0.6`. Pass `0` to turn it off | +| `--recency-bias` | Preference for newer content (`0.0` to `1.0`). Omitted means the API default, a mild `0.4` tilt. Pass `0` to turn it off | | `--graph-context` / `--no-graph-context` | Include context graph relations. On by default. `--no-graph-context` only takes effect in `fast` mode | | `--query-explicit-relations` / `--no-query-explicit-relations` | Include or skip deterministically linked sources in thinking mode. On by default | | `--additional-graph-context` | A factual string hint to guide retrieval, not a filter. `--additional_graph_context` is also accepted | diff --git a/scripts/test_cookbooks.py b/scripts/test_cookbooks.py index 6ec23a38..6967a7f4 100644 --- a/scripts/test_cookbooks.py +++ b/scripts/test_cookbooks.py @@ -301,8 +301,7 @@ def query(self, **kwargs): scopes = kwargs.get("collections") or [kwargs["collection"]] test.assertFalse("collection" in kwargs and "collections" in kwargs) test.assertLessEqual(set(scopes), self.collections) - test.assertIn(kwargs.get("type"), {None, "knowledge", "memory"}, - "omit type to search both stores; a unified database rejects an explicit all") + test.assertIn(kwargs["type"], {"knowledge", "memory", "all"}) test.assertIn(kwargs.get("mode", "auto"), {"fast", "thinking", "auto"}) if "max_results" in kwargs: test.assertLessEqual(kwargs["max_results"], 250) diff --git a/scripts/test_docs_consistency.py b/scripts/test_docs_consistency.py index f4d4d895..3c1fc78f 100644 --- a/scripts/test_docs_consistency.py +++ b/scripts/test_docs_consistency.py @@ -197,8 +197,9 @@ def test_memory_scope_is_derived_from_the_signed_in_session(self): self.assertIn("signed-in session", memory) self.assertIn("does not authenticate", memory) self.assertIn("every ingest, status check, and query", memory) - self.assertIn("`infer: true` (default)", memory) - self.assertIn("`infer: false`", memory) + self.assertIn("`infer: false` (default)", memory) + self.assertIn("Omitting `infer` means `false`", memory) + self.assertIn("`infer: true`", memory) def test_legacy_memory_instructions_are_not_public_guidance(self): for relative in ( @@ -224,10 +225,10 @@ def test_query_names_and_defaults_match_the_canonical_contract(self): self.assertIn("query_explicit_relations", text) self.assertIn("additional_graph_context", text) self.assertIn("data.additional_graph_context", text) - self.assertNotRegex(text, r'(?:Default|default|omitted means)[^\n|]*`0\.4`') + self.assertNotRegex(text, r'(?:Default|default|omitted means)[^\n|]*`0\.6`') reference = self.read("api-reference/v2/endpoint/query.mdx") - self.assertRegex(reference, r'name="type"[^\n]*default=`"all"`') - self.assertRegex(reference, r'name="recency_bias"[^\n]*default=`0\.6`') + self.assertRegex(reference, r'name="type"[^\n]*default=`"knowledge"`') + self.assertRegex(reference, r'name="recency_bias"[^\n]*default=`0\.4`') self.assertIn('name="query_explicit_relations"', reference) self.assertIn('name="additional_graph_context"', reference) self.assertIn("request-time hint", reference) @@ -442,19 +443,58 @@ def v2_pages(): class PublishedQueryContractTest(unittest.TestCase): """The production query contract the guides teach (PRO-1618 review, 2026-11-16).""" - def test_examples_leave_the_default_query_type_out(self): - explicit_all = re.compile(r"""\btype\b["']?\s*[:=]\s*["']all["']""") - offenders = [ - f"{relative}: {match.group(0)}" - for relative, text in v2_pages() - for block in re.findall(r"```.*?```", text, re.S) - for match in explicit_all.finditer(block) - ] - self.assertEqual([], offenders, "omit type to search both stores; a unified database rejects an explicit all") + def read(self, relative): + return (ROOT / relative).read_text(encoding="utf-8") + + def test_query_type_defaults_to_knowledge(self): + claims_all = re.compile( + r"(?i)defaults? to `\"?all|default=`\"all\"`|leav\w* `?type`? out|omit\w* `?type`? to search both" + r"|`type` omitted|that leaves out `type`|without `type` searches (?:both|knowledge and)" + ) + offenders = [f"{relative}: {m.group(0)}" for relative, text in v2_pages() for m in claims_all.finditer(text)] + self.assertEqual([], offenders, "a split database searches knowledge when type is omitted") + self.assertIn("defaults to `knowledge`; send `all`", self.read("AGENTS.mdx")) + self.assertIn('Defaults to `"knowledge"`', self.read("essentials/v2/query.mdx")) + self.assertIn('Defaults to `"knowledge"`', self.read("api-reference/v2/endpoint/query-overview.mdx")) + self.assertIn("Omitted means `knowledge`; pass `all`", self.read("plugins/cli.mdx")) + + def test_examples_that_read_a_user_collection_send_the_store(self): + user_scope = re.compile(r"""collections["']?\s*[:=]\s*[\[{][^\]}]*["']user_""") + offenders = [] + for relative, text in v2_pages(): + for block in re.findall(r"```.*?```", text, re.S): + calls = re.split(r"(?=\bclient\.query\(|POST /query|/query\b)", block) + for call in calls: + asks = re.search(r"""\bquery["']?\s*[:=]\s*["']""", call) + if asks and user_scope.search(call) and not re.search(r"""\btype\b["']?\s*[:=]\s*["'](?:all|memory)["']""", call): + offenders.append(f"{relative}: {call.strip()[:80]}") + self.assertEqual([], offenders, "an untyped query skips memories on a split database") + + def test_memory_infer_defaults_to_false(self): + claims_true = re.compile( + r"`infer: true` \(default\)|`infer`[^\n|]*defaults? to `true`|Omitting `infer` means `true`" + r"|name=\"infer\"[^\n]*memory enrichment[^\n]*default=`true`" + ) + offenders = [f"{relative}: {m.group(0)}" for relative, text in v2_pages() for m in claims_true.finditer(text)] + self.assertEqual([], offenders, "a split database stores a memory without inference when infer is omitted") + self.assertRegex(self.read("api-reference/v2/endpoint/ingest-context.mdx"), + r'name="infer"[^\n]*memory enrichment[^\n]*default=`false`') + self.assertIn("defaults to `false` when omitted", self.read("AGENTS.mdx")) + + def test_recency_bias_defaults_to_a_mild_tilt(self): + self.assertIn("Default `0.4`", self.read("essentials/v2/query.mdx")) + self.assertIn("omitted means `0.4`", self.read("AGENTS.mdx")) + self.assertIn("a mild `0.4` tilt", self.read("plugins/cli.mdx")) + self.assertNotRegex(self.read("plugins/cli.mdx"), r"Omitted means `0\.6`") + + def test_databases_guide_says_existing_databases_keep_their_defaults(self): + guide = self.read("essentials/v2/databases-and-collections.mdx") + self.assertIn("Existing databases keep the defaults above", guide) def test_withdrawn_query_aliases_and_notices_are_not_documented(self): withdrawn = re.compile( - r"follow_forceful_relations|enrichment_enabled_by_default" + r"follow_forceful_relations|enrichment_enabled_by_default|inference_enabled_by_default" + r"|default-processing-warnings" r"|alias(?:es)?\b[^.\n]*`context`|> `context`" ) offenders = [f"{relative}: {m.group(0)}" for relative, text in v2_pages() for m in withdrawn.finditer(text)] From 6c11bb7c791fd07fab50b389cfcc1a8476dc9e99 Mon Sep 17 00:00:00 2001 From: SohamRatnaparkhi Date: Mon, 16 Nov 2026 18:22:25 +0530 Subject: [PATCH 20/33] revert(docs): restore the founder's stated defaults (ENG-1618) This reverts commit 574ae8276e02523bc35ae85dbbaa940bd9f03556 at Soham's direction: the guides keep the defaults Nishkarsh wrote (query type, memory infer, recency_bias), the examples without an explicit type, and no note about defaults per database layout. Co-Authored-By: Claude Opus 5.5 Signed-off-by: SohamRatnaparkhi --- AGENTS.mdx | 15 ++-- .../v2/endpoint/context-overview.mdx | 2 +- api-reference/v2/endpoint/ingest-context.mdx | 56 ++++++++++++++- api-reference/v2/endpoint/query-overview.mdx | 6 +- api-reference/v2/endpoint/query.mdx | 13 ++-- api-reference/v2/error-responses.mdx | 2 +- api-reference/v2/sdks.mdx | 2 - cookbooks/v2/chief-of-staff.mdx | 3 +- cookbooks/v2/personal-assistant.mdx | 3 +- cookbooks/v2/support-agent.mdx | 3 +- essentials/v2/context.mdx | 6 +- essentials/v2/databases-and-collections.mdx | 4 -- essentials/v2/query.mdx | 13 ++-- get-started/v2/quickstart.mdx | 3 - llms.txt | 15 ++-- plugins/cli.mdx | 4 +- scripts/test_cookbooks.py | 3 +- scripts/test_docs_consistency.py | 70 ++++--------------- 18 files changed, 107 insertions(+), 116 deletions(-) diff --git a/AGENTS.mdx b/AGENTS.mdx index 841afddb..4f06c80f 100644 --- a/AGENTS.mdx +++ b/AGENTS.mdx @@ -206,7 +206,7 @@ Knowledge is the documents and facts your AI reasons over: PDFs, Markdown, and C ### Memories -Memories are preferences, decisions, past conversations, behavioral signals, and inferred traits. Ingest them with `type: "memory"` into the collection you will query them from, and query with `type: "memory"` or `type: "all"`. Item fields, including `infer`, are in [6. Source ingestion](#6-source-ingestion). +Memories are preferences, decisions, past conversations, behavioral signals, and inferred traits. Ingest them with `type: "memory"` into the collection you will query them from, and query with `type: "memory"`, or leave `type` out to search memories and knowledge together. Item fields, including `infer`, are in [6. Source ingestion](#6-source-ingestion). ### Query @@ -656,7 +656,7 @@ Memory item fields: | `text` | raw text or Markdown; required unless `user_assistant_pairs` provided | | `user_assistant_pairs` | dialogue pairs `{ user, assistant }`; useful for implied preferences | | `is_markdown` | preserve Markdown structure during chunking | -| `infer` | defaults to `false` when omitted, which stores the memory verbatim. Send `true` when the input is raw signal and HydraDB should extract the durable preference or fact | +| `infer` | defaults to `true` when omitted: HydraDB extracts the durable preference or fact. Explicit `false` stores the memory verbatim | | `user_name` | helps inference | | `metadata` | schema-aligned fields, as an object (do not stringify it again inside `memories`). `tenant_metadata` is not read on memory items. | | `additional_metadata` | free-form fields; keep as objects | @@ -768,21 +768,21 @@ Rules: | `collection` | string/null | the collection the context was saved in; default collection if omitted | | `collections` | list of collection IDs, or an object of weights | query up to 100 collections at once; every listed collection must exist. Send weights, such as `{"user_alex": 2, "company_docs": 1}`, to rank one collection over another | | `query` | string | required | -| `type` | `knowledge`, `memory`, `all` | defaults to `knowledge`; send `all` to search knowledge and memories together, at most `max_results` chunks in total | +| `type` | `knowledge`, `memory`, `all` | omit it to search knowledge and memories together, at most `max_results` chunks in total; choose a type to narrow it. Leave it out rather than sending `all` | | `acl` | list of principals | who is asking; see [Send `acl` on user queries](#send-acl-on-user-queries) | | `query_by` | `hybrid`, `text` | default `hybrid` (semantic + BM25); `text` is BM25 keyword/phrase search | | `operator` | `or`, `and`, `phrase` | only for `query_by: "text"` | | `mode` | `fast`, `thinking`, `auto` | applies to hybrid; omitted means `auto`, which picks fast or thinking per query (thinking when unsure). `fast` is low latency. `thinking` adds query expansion, reranking, richer graph traversal, and explicit-relation expansion; it improves quality but adds latency | | `max_results` | integer/null | default 10; max 250 | | `alpha` | `0.0` to `1.0`, or `auto` | hybrid weight; `1.0` semantic, `0.0` BM25 | -| `recency_bias` | `0.0` to `1.0` | boost newer content; omitted means `0.4`, send `0` to disable | +| `recency_bias` | `0.0` to `1.0` | boost newer content; omitted means `0.6`, send `0` to disable | | `graph_context` | boolean | default true; include graph slice; `false` only takes effect in fast mode, thinking always includes it | | `query_explicit_relations` | boolean | default true; returns explicitly related chunks in `data.additional_graph_context`; only effective in `thinking` mode | | `additional_graph_context` | string | short factual hint that sharpens retrieval; not a hard filter | | `metadata_filters` | object | deterministic filters before/around ranking | | `query_apps` | boolean | app-aware retrieval lane for content synced by connectors; still searches the full selected knowledge scope; defaults to `true` on `/query`, send `false` to disable | -`type: "all"` reads both stores from the same scope. When shared knowledge lives in its own collection, send `collections: ["", ""]`. +Leaving `type` out reads both stores from the same scope. When shared knowledge lives in its own collection, send `collections: ["", ""]`. ### Recommended configurations @@ -790,7 +790,7 @@ Rules: |---|---| | Fast document RAG | `type: "knowledge"`, `query_by: "hybrid"`, `mode: "fast"`, `graph_context: false`, `max_results: 5-10` | | Highest-quality document RAG | `type: "knowledge"`, `query_by: "hybrid"`, `mode: "thinking"`, `graph_context: true`, `alpha: "auto"` | -| Personalized grounded answer | `type: "all"`, `collections` listing the shared collection and the user's, `query_by: "hybrid"`, `mode: "thinking"` | +| Personalized grounded answer | `type` omitted, `collections` listing the shared collection and the user's, `query_by: "hybrid"`, `mode: "thinking"` | | User preferences only | `type: "memory"`, include `collection`, `query_by: "hybrid"` | | Exact keyword / phrase | `type: "knowledge"`, `query_by: "text"`, `operator: "phrase"` | | Recent operational updates | `query_by: "hybrid"`, `recency_bias: 0.6-0.8`, metadata filter to doc type/status | @@ -819,7 +819,6 @@ const result = await client.query({ database: "acme_corp", collections: ["company_docs", "user_alex"], // shared knowledge and this user's memories query: "What is our refund policy, and how should I explain it to this user?", - type: "all", queryBy: "hybrid", mode: "thinking", alpha: "auto", @@ -901,7 +900,7 @@ Use `chunks` as the primary LLM context. Preserve server order, which is the ran - Start with `max_results: 10`; reduce it for tight context windows. - Use graph context only when it helps the question. - Use `data.additional_graph_context` to attach explicitly related chunks by `chunk_uuid` / `extra_context_ids`. It is a response map, separate from the request's `additional_graph_context` string hint. The legacy `data.additional_context` response alias contains the same map. -- For personalized answers, `type: "all"` is simplest: one result set already merges knowledge and memories. +- For personalized answers, leave `type` out: one result set already merges knowledge and memories. Python: diff --git a/api-reference/v2/endpoint/context-overview.mdx b/api-reference/v2/endpoint/context-overview.mdx index 4f1dd082..dcdf6476 100644 --- a/api-reference/v2/endpoint/context-overview.mdx +++ b/api-reference/v2/endpoint/context-overview.mdx @@ -73,7 +73,7 @@ flowchart LR ## Key concepts -- **Knowledge and memories:** Knowledge is the documents, content synced from your apps, and facts your AI uses. Memories are preferences, decisions, and past conversations. Both live in a collection, and `type: "all"` on `POST /query` searches both from the same scope. +- **Knowledge and memories:** Knowledge is the documents, content synced from your apps, and facts your AI uses. Memories are preferences, decisions, and past conversations. Both live in a collection, and a `POST /query` that leaves out `type` searches both from the same scope. - **IDs:** `/context/ingest` returns an ID for each source. To assign your own, set `id` in the `document_metadata` or `memories` item. Use IDs to poll status, inspect content, and delete context. - **Metadata:** [Metadata Filters](/essentials/v2/metadata) covers metadata fields, ingestion, updates, and filtering. - **Deterministic relations:** Links you declare between sources with `relations.ids`. In `thinking` mode, a query returns the linked sources in `data.additional_graph_context` alongside the matching chunks. Set relations on the same `document_metadata` item as the file's metadata: diff --git a/api-reference/v2/endpoint/ingest-context.mdx b/api-reference/v2/endpoint/ingest-context.mdx index 0b2d0c98..6d98d35e 100644 --- a/api-reference/v2/endpoint/ingest-context.mdx +++ b/api-reference/v2/endpoint/ingest-context.mdx @@ -66,7 +66,59 @@ curl -X POST 'https://api.hydradb.com/context/ingest' \ - **Multipart, not JSON:** This endpoint uses `multipart/form-data`. Stringify all JSON arrays (`document_metadata`, `memories`) before placing them in the form field. A body that is neither a form nor JSON returns `415`. - **`202 Accepted` means queued, not indexed:** A successful response only confirms your sources were accepted, not that they are ready to query. Before querying, poll [`GET /context/status`](/api-reference/v2/endpoint/source-status) with the returned IDs until each source reaches `graph_creation` (searchable), `completed`, or `errored`. Alternatively, register a webhook for `indexing.status_changed` events (see [Webhooks](/api-reference/v2/endpoint/webhooks-overview)). -- **Memory and knowledge:** Use `type: "memory"` for memory ingestion, listing, and deletion. Use `type: "all"` on `POST /query` when results should combine both. +- **Memory and knowledge:** Use `type: "memory"` for memory ingestion, listing, and deletion. Leave `type` out on `POST /query` when results should combine both. + +## Default processing warnings + +The v2 acceptance envelope reports implicit processing defaults in `meta.warnings`, separately from CLI/MCP scope notices: + +- `inference_enabled_by_default` counts accepted memory items whose `infer` was omitted. Set `infer: false` on an item to disable inference. + +Explicit `true` is intentional and produces no default warning, just like explicit `false`. The notice appears at most once per response and counts only accepted affected items, not failed items. Existing warnings and the request ID remain intact. The same rules apply to equivalent supported JSON and form requests; unrelated file/connector processing defaults are unchanged. + +`infer: false` disables additional memory enrichment, not all processing. Ingestion, indexing, and entity/graph extraction may still run; it does not promise raw-only storage or no graph processing. + +This real `202 Accepted` example contains one queued memory whose `infer` was omitted. The warning does not report successful inference or completed indexing; check the existing [processing status](/api-reference/v2/endpoint/source-status) before querying: + +```json 202 +{ + "success": true, + "data": { + "generation_started_at_ms": 1794807761771, + "success": true, + "message": "Memories queued for ingestion successfully. Ingestion is asynchronous: this 202 means the sources were accepted and queued, not indexed. Poll GET /context/status?database=&id= until each source's indexing_status reaches a terminal state (completed or errored) before querying. See https://docs.hydradb.com/api-reference/v2/endpoint/source-status for usage details. ", + "results": [ + { + "id": "example-memory", + "title": null, + "status": "queued", + "infer": true, + "error": null, + "error_code": null + } + ], + "success_count": 1, + "failed_count": 0 + }, + "error": null, + "meta": { + "request_id": "ingest-warning-request", + "api_version": "2.0.1", + "latency_ms": null, + "tenant_id": "crm", + "database": "crm", + "sub_tenant_id": "docs", + "collection": "docs", + "source_type": "memory", + "warnings": [ + { + "code": "inference_enabled_by_default", + "message": "Inference is enabled by default for 1 accepted item because infer was omitted. Set infer to false on an item to disable inference for that item." + } + ] + } +} +``` ## Supported file formats @@ -350,7 +402,7 @@ curl -X POST 'https://api.hydradb.com/context/ingest' \ | | Raw text or markdown content. Required unless `user_assistant_pairs` is provided. | | | Conversation pairs `{ user, assistant }`. Required unless `text` is provided. | | | Treat `text` as markdown for chunking. (default=`false`) | - | | Enable additional memory enrichment. Omitted or `false` skips that enrichment; ingestion, indexing, and entity/graph extraction may still run. (default=`false`) | + | | Enable additional memory enrichment. Explicit `false` skips that enrichment; ingestion, indexing, and entity/graph extraction may still run. (default=`true`) | | | The user's name. Feeds inference. (default=`"User"`) | | | See [shared item fields](#shared-item-fields). | | | See [shared item fields](#shared-item-fields). | diff --git a/api-reference/v2/endpoint/query-overview.mdx b/api-reference/v2/endpoint/query-overview.mdx index 4e993344..66bac703 100644 --- a/api-reference/v2/endpoint/query-overview.mdx +++ b/api-reference/v2/endpoint/query-overview.mdx @@ -46,7 +46,7 @@ These parameters shape most queries. [Query](/api-reference/v2/endpoint/query#re | Parameter | Values | Use it for | |---|---|---| -| | `"knowledge"`, `"memory"`, `"all"` | Defaults to `"knowledge"`, searching shared documents and content synced by connectors. Use `"memory"` for memories only, or `"all"` to search knowledge and memories together. | +| | `"knowledge"`, `"memory"`, `"all"` | Defaults to `"all"`, searching knowledge and memories. Use `"knowledge"` for shared documents and content synced by connectors, or `"memory"` for memories only. | | | `"hybrid"`, `"text"` | Choose the matching method. Use `"hybrid"` by default and `"text"` for exact terms or phrases. | | | `"fast"`, `"thinking"`, `"auto"` | Choose a single pass with `"fast"`, broader retrieval with `"thinking"`, or automatic routing with `"auto"`. Defaults to `"auto"`. | | | integer | Limit the returned chunks. Defaults to `10` for one collection. Maximum `250`. | @@ -62,7 +62,7 @@ These parameters shape most queries. [Query](/api-reference/v2/endpoint/query#re |---|---| | Fast answers from documents | `type="knowledge"`, `query_by="hybrid"`, `mode="fast"`, `max_results=5-10`, `graph_context=false` | | Broader document search | `type="knowledge"`, `query_by="hybrid"`, `mode="thinking"` (thinking always includes graph context) | -| Personalized answer | `type="all"`, the user's `collection`, `query_by="hybrid"`, `mode="thinking"`. If shared knowledge lives in another collection, list both in `collections` | +| Personalized answer | `type` omitted, the user's `collection`, `query_by="hybrid"`, `mode="thinking"`. If shared knowledge lives in another collection, list both in `collections` | | User preferences only | `type="memory"`, include `collection`, `query_by="hybrid"` | | Exact keyword or phrase | `type="knowledge"`, `query_by="text"`, `operator="phrase"` | | Recent operational updates | `query_by="hybrid"`, `recency_bias=0.6-0.8`, a metadata filter for the right document type | @@ -100,7 +100,6 @@ Search the shared knowledge collection and the collection the user's memories we "database": "acme", "collections": ["company_docs", "user_alex"], "query": "What is our refund policy, and how should I explain it to this user?", - "type": "all", "query_by": "hybrid", "mode": "thinking" } @@ -120,7 +119,6 @@ Search several collections and return one ranked result set. Use a list for equa "user_alex": 1 }, "query": "What renewal risks should we discuss?", - "type": "all", "query_by": "hybrid", "mode": "thinking" } diff --git a/api-reference/v2/endpoint/query.mdx b/api-reference/v2/endpoint/query.mdx index f13d2a19..c8885021 100644 --- a/api-reference/v2/endpoint/query.mdx +++ b/api-reference/v2/endpoint/query.mdx @@ -225,7 +225,7 @@ By default, `data.llm_prompt` contains the question and matching context as Mark | | Exact source titles, matched case-insensitively. Matches any listed title, then intersects with `ids` if both are sent. | | | Principals for the caller, used to filter sources by ACL. Omitting `acl`, sending `[]`, or sending `["*"]` disables caller-supplied filtering. For enforced connectors, the authenticated caller is used instead; see [ACL enforcement](/essentials/v2/connectors#enforce-acl). | | | Omit for the result object with `llm_prompt`. `"structured"` leaves out the prompt string. `"markdown"` returns the prompt string directly as `data`. | -| | What to query. `"all"` runs knowledge and memory in parallel over the same scope, merges by `relevancy_score`, and returns at most `max_results` chunks in total. (default=`"knowledge"`) | +| | What to query. Omitted, or `"all"`, runs knowledge and memory in parallel over the same scope, merges by `relevancy_score`, and returns at most `max_results` chunks in total. Leave it out rather than sending `"all"`. (default=`"all"`) | | | Retrieval method. See [Query methods](#decision-matrix). (default=`"hybrid"`) | | | Applies to knowledge queries only. Adds app-aware retrieval for messages, threads, and linked records synced by connectors. It still searches all selected knowledge, rather than only synced content. Send `false` to disable app-aware retrieval. (default=`true`) | | | BM25 operator for `query_by: "text"`. `"and"` or `"phrase"` with any other `query_by` returns `400`. (default=`"or"`) | @@ -233,7 +233,7 @@ By default, `data.llm_prompt` contains the question and matching context as Mark | | When the collection holds spreadsheets and the question is tabular, returns the SQL statement HydraDB ran in `tabular_data.sql`. It carries no row data. Applies in thinking mode only. (default=`false`) | | | Maximum chunks to return, from `1` to `250`. Defaults to `10` for a single collection. See [multi-collection defaults](#querying-multiple-collections) when searching several collections. Counts chunks, not bytes or model tokens. | | | Hybrid weight (`1.0` = pure semantic, `0.0` = pure BM25). Applies to `query_by: "hybrid"` only. `"auto"` currently resolves to `0.8`. (default=`0.8`) | -| | Boost newer content. Omitted applies a mild `0.4` tilt; send `0` to turn it off. (default=`0.4`) | +| | Boost newer content. Omitted applies a `0.6` tilt; send `0` to turn it off. (default=`0.6`) | | | When `true`, includes the entity and relation graph slice in the response under `graph_context`. Set to `false` when you only need ranked chunks. Relations you supplied via [Bring Your Own Graph](/essentials/v2/bring-your-own-graph#using-byog-without-cypher) appear here identically to extracted ones. (default=`true`). **`false` only takes effect in `fast` mode: `thinking`, and `auto` when it resolves to thinking, always include the graph slice.** | | | Pull deterministically linked sources (links you declare at ingestion) into `data.additional_graph_context`. **Only takes effect when `mode` resolves to `"thinking"`;** silently skipped in `fast` mode, and under `mode: "auto"` whether it takes effect depends on the automatic routing decision. (default=`true`) | | | A request-time hint to guide retrieval (for example, "user is on the billing page"), not a filter. This is different from the response map `data.additional_graph_context` of linked sources. (default=`null`) | @@ -251,8 +251,7 @@ Use `collections` to search several collections in one request. The field accept { "database": "acme_corp", "collections": ["workspace_42", "user_alex"], - "query": "What renewal risks should I know about?", - "type": "all" + "query": "What renewal risks should I know about?" } ``` @@ -263,8 +262,7 @@ Use `collections` to search several collections in one request. The field accept "workspace_42": 2, "user_alex": 1 }, - "query": "What renewal risks should I know about?", - "type": "all" + "query": "What renewal risks should I know about?" } ``` @@ -385,7 +383,6 @@ curl -X POST 'https://api.hydradb.com/query' \ "database": "acme_corp", "collections": ["company_docs", "user_alex"], "query": "What is our refund policy, and how should I explain it to this user?", - "type": "all", "query_by": "hybrid", "mode": "thinking" }' @@ -396,7 +393,6 @@ const result = await client.query({ database: "acme_corp", collections: ["company_docs", "user_alex"], query: "What is our refund policy, and how should I explain it to this user?", - type: "all", queryBy: "hybrid", mode: "thinking", }); @@ -407,7 +403,6 @@ result = client.query( database="acme_corp", collections=["company_docs", "user_alex"], query="What is our refund policy, and how should I explain it to this user?", - type="all", query_by="hybrid", mode="thinking", ) diff --git a/api-reference/v2/error-responses.mdx b/api-reference/v2/error-responses.mdx index 048db19d..1600b57e 100644 --- a/api-reference/v2/error-responses.mdx +++ b/api-reference/v2/error-responses.mdx @@ -228,7 +228,7 @@ An empty result is a successful response, not an error. Common causes: - The source is still `queued` or `processing`. Poll [`GET /context/status`](/api-reference/v2/endpoint/source-status). - `metadata_filters` is too restrictive or targets the wrong metadata namespace. - The query is scoped to the wrong `database` or `collection`. -- The `type` value excludes the store you need. Use `type: "all"` to combine knowledge and memories in `POST /query`. +- The `type` value excludes the store you need. Leave `type` out of `POST /query` to combine knowledge and memories. ## Related diff --git a/api-reference/v2/sdks.mdx b/api-reference/v2/sdks.mdx index c1b65963..898e0ad8 100644 --- a/api-reference/v2/sdks.mdx +++ b/api-reference/v2/sdks.mdx @@ -388,7 +388,6 @@ personalized = client.query( database="my_first_database", collections=["company_docs", "user_alex"], query="What is our refund policy, and how should I explain it to this user?", - type="all", query_by="hybrid", mode="thinking", ) @@ -420,7 +419,6 @@ const personalized = await client.query({ database: "my_first_database", collections: ["company_docs", "user_alex"], query: "What is our refund policy, and how should I explain it to this user?", - type: "all", queryBy: "hybrid", mode: "thinking", }); diff --git a/cookbooks/v2/chief-of-staff.mdx b/cookbooks/v2/chief-of-staff.mdx index 59639263..ca2dbbb4 100644 --- a/cookbooks/v2/chief-of-staff.mdx +++ b/cookbooks/v2/chief-of-staff.mdx @@ -85,7 +85,7 @@ remember("2026-10-02: Moved the EU launch to November 17 because legal needs two ## 4. Ask what is current -Query both collections at once with `type: "all"`, as the executive. `acl` keeps the brief to what this person may see: their own mail, and the Slack channels they belong to. `recency_bias` favors newer context, and `thinking` mode reranks, so the current launch date ranks above the one it replaced. +Query both collections at once, as the executive. `acl` keeps the brief to what this person may see: their own mail, and the Slack channels they belong to. `recency_bias` favors newer context, and `thinking` mode reranks, so the current launch date ranks above the one it replaced. ```python chief_of_staff.py def brief(question): @@ -93,7 +93,6 @@ def brief(question): database=DATABASE, collections=[RECORDS, EXECUTIVE], query=question, - type="all", mode="thinking", recency_bias=0.6, acl=[EXECUTIVE_EMAIL], diff --git a/cookbooks/v2/personal-assistant.mdx b/cookbooks/v2/personal-assistant.mdx index 90ffa57b..51e303d0 100644 --- a/cookbooks/v2/personal-assistant.mdx +++ b/cookbooks/v2/personal-assistant.mdx @@ -108,7 +108,7 @@ add_photo( ## 4. Answer from memories and items together -`type: "all"` searches the user's memories and knowledge in one call. `acl` is the user's own email, so the query returns only what this person may see. +Leaving `type` out searches the user's memories and knowledge in one call. `acl` is the user's own email, so the query returns only what this person may see. ```python assistant.py def ask(question): @@ -116,7 +116,6 @@ def ask(question): database=DATABASE, collection=USER, query=question, - type="all", mode="thinking", acl=[USER_EMAIL], ) diff --git a/cookbooks/v2/support-agent.mdx b/cookbooks/v2/support-agent.mdx index ebb53314..852da0eb 100644 --- a/cookbooks/v2/support-agent.mdx +++ b/cookbooks/v2/support-agent.mdx @@ -89,7 +89,7 @@ remember("4821", [ ## 4. Answer from both collections -Name both collections and set `type: "all"`. The query reads this customer's memories and the shared help center, and nothing else. Take `customer_id` from the authenticated session, never from the message: the collection name is what keeps one customer's history out of another's answers. +Name both collections and leave `type` out. The query reads this customer's memories and the shared help center, and nothing else. Take `customer_id` from the authenticated session, never from the message: the collection name is what keeps one customer's history out of another's answers. ```python support.py ROLES = { @@ -104,7 +104,6 @@ def support_agent(role, customer_id, question): database=DATABASE, collections=[HELP_CENTER, customer_collection(customer_id)], query=question, - type="all", mode="thinking", ) return answer(question, result, ROLES[role]) diff --git a/essentials/v2/context.mdx b/essentials/v2/context.mdx index 79e45259..cb97ab18 100644 --- a/essentials/v2/context.mdx +++ b/essentials/v2/context.mdx @@ -96,12 +96,14 @@ Give each user their own collection, such as `user_john_123`, and send it on eve Apply the same server-derived scope and authorization to updates and deletes. Before any operation, authorize the signed-in user's access to the source in that collection; knowing a source ID or collection name is not permission to read or change it. 1. **Let HydraDB infer**: `infer` controls whether HydraDB extracts memories and preferences from what you send. - 1. `infer: true`: Extracts the preferences, trait, or fact from messy or indirect evidence. Send it for dialogue, behavior logs, and other raw signal. - 2. `infer: false` (default): Stores the memory as you sent it, without additional memory enrichment. Omitting `infer` means `false`. Ingestion, indexing, and entity/graph extraction may still run. + 1. `infer: true` (default): Extracts the preferences, trait, or fact from messy or indirect evidence. Omitting `infer` means `true`. + 2. `infer: false`: Disables additional memory enrichment for that item. Ingestion, indexing, and entity/graph extraction may still run. 2. **Ingest memory**: It can be via `text` or `user_assistant_pairs`, not both. - `text`: Any prose, such as observations, facts, meeting notes, or semi-structured records. Set `is_markdown: true` for Markdown content so HydraDB keeps its structure when chunking and embedding. - `user_assistant_pairs`: Dialogue, especially when a preference is implied rather than stated. Each pair is `{ "user": "...", "assistant": "..." }`. +When you omit `infer`, the acceptance response includes an `inference_enabled_by_default` notice for the accepted items that used this default. Explicit `true` or `false` does not produce that notice. See [Default processing warnings](/api-reference/v2/endpoint/ingest-context#default-processing-warnings) for the response and opt-out rules. + Set up your [SDK client](/api-reference/v2/sdks#client-setup) before running the Python or TypeScript example. diff --git a/essentials/v2/databases-and-collections.mdx b/essentials/v2/databases-and-collections.mdx index cf845c6a..8d787d8b 100644 --- a/essentials/v2/databases-and-collections.mdx +++ b/essentials/v2/databases-and-collections.mdx @@ -5,10 +5,6 @@ description: "HydraDB is multi tenant by design. Every database can hold multipl Every write and read is scoped with two fields: `database`, an isolated store for one environment (for eg - one enterprise could be one database), and `collection`, a group separated by logic, not infrastructure, inside a database. Most products need one database and multiple collections. - -Three defaults apply to the databases these guides describe: a query without `type` searches knowledge only, a memory without `infer` is stored without inference, and `recency_bias` is `0.4`. Unified databases will come with new defaults for these three. Existing databases keep the defaults above. - - diff --git a/essentials/v2/query.mdx b/essentials/v2/query.mdx index a846a176..f04d0e78 100644 --- a/essentials/v2/query.mdx +++ b/essentials/v2/query.mdx @@ -122,7 +122,7 @@ The following sample request searches the `acme_corp` database. `type` - Defaults to `"knowledge"`, searching documents and synced app content. Set `"memory"` for saved preferences and conversations, or `"all"` to search knowledge and memories together. + Leave it out to search knowledge and memories together and get one ranked list of at most `max_results` chunks. Set `"knowledge"` for documents and synced app content, or `"memory"` for saved preferences and conversations. `"all"` names the same default explicitly, but leaving `type` out is the form that works on every database. @@ -193,7 +193,7 @@ Table answers run in thinking mode only; `"fast"` returns the ranked chunks with ## 3. Tune the ranking - `alpha`**:** the balance between semantic/meaning (`1.0`) and keywords (`0.0`) in a hybrid query. Default `0.8`; `"auto"` also resolves to `0.8`. -- **`recency_bias`:** how much newer context is favored, from `0.0` to `1.0`. Default `0.4`, a mild tilt that only reorders close results. +- **`recency_bias`:** how much newer context is favored, from `0.0` to `1.0`. Default `0.6` - **`max_results`:** drop to `5` for tight context windows; raise to `20` when you rerank downstream. - **`additional_graph_context`:** a request-time string hint, such as `"user is on the billing page"`, that sharpens retrieval. It is not a filter. This is separate from the response map `data.additional_graph_context` containing linked sources. @@ -210,7 +210,6 @@ Table answers run in thinking mode only; `"fast"` returns the ranked chunks with database="acme_corp", collections=["company_docs", "user_john_123"], query="How do I reset my password?", - type="all", mode="thinking", max_results=8, ) @@ -221,7 +220,6 @@ Table answers run in thinking mode only; `"fast"` returns the ranked chunks with database: "acme_corp", collections: ["company_docs", "user_john_123"], query: "How do I reset my password?", - type: "all", mode: "thinking", maxResults: 8, }); @@ -236,7 +234,6 @@ Table answers run in thinking mode only; `"fast"` returns the ranked chunks with "database": "acme_corp", "collections": ["company_docs", "user_john_123"], "query": "How do I reset my password?", - "type": "all", "mode": "thinking", "max_results": 8 }' @@ -373,9 +370,9 @@ console.log(completion.choices[0].message.content); | Empty `query_paths` or `chunk_relations` | `graph_context` set to `false`, or no relationships exist for the result set | Leave `graph_context` on (the default). Empty arrays are normal when there is nothing to return. | | Recent uploads do not appear in results | Indexing not finished | Poll [`GET /context/status`](/api-reference/v2/endpoint/source-status) with the source ids. Chunks are invisible until indexing reaches at least `graph_creation`. | | `metadata_filters` does not narrow results | Filter key is in the wrong namespace, the value does not match exactly, or the top-level field was not declared in the metadata schema | Top-level keys match `metadata`; free-form per-source fields must be nested under `additional_metadata`. Declare hot filter keys in `database_metadata_schema` before production ingest. | -| Memories missing from a `type: "knowledge"` query | Wrong store selected | Use `type: "memory"` or `type: "all"`. | -| Knowledge missing from a `type: "all"` query | The documents live in a different collection from the one you sent | List both collections in `collections`. | -| Recency does not seem to matter | `recency_bias` was sent as `0`, or the default `0.4` tilt is too mild | Raise it toward `1.0`. | +| Memories missing from a `type: "knowledge"` query | Wrong store selected | Use `type: "memory"`, or leave `type` out to search both. | +| Knowledge missing from a query over both stores | The documents live in a different collection from the one you sent | List both collections in `collections`. | +| Recency does not seem to matter | `recency_bias` was sent as `0`, or the default `0.6` tilt is too mild | Raise it toward `1.0`. | | `operator: "phrase"` returns `400` | `query_by` not set to `"text"` | `"and"` and `"phrase"` only apply to BM25 text queries: switch `query_by` to `"text"`. | | `query_explicit_relations` ignored | Request runs in `mode: "fast"` (or `auto` routed to fast) | Deterministically linked sources are fetched only in thinking mode. Set `mode: "thinking"`. | | `graph_context: false` ignored | Request runs in thinking mode (`mode: "thinking"`, or `auto` routed to thinking) | Thinking always includes the graph slice; `false` takes effect only in fast mode. Set `mode: "fast"` to drop it. | diff --git a/get-started/v2/quickstart.mdx b/get-started/v2/quickstart.mdx index c36963eb..efda56b9 100644 --- a/get-started/v2/quickstart.mdx +++ b/get-started/v2/quickstart.mdx @@ -102,7 +102,6 @@ wait_for("user_123", mem.data.results[0].id) results = client.query( database=database, collections=["company_docs", "user_123"], - type="all", query="Can this customer get a refund, and what have we told them so far?", ) @@ -164,7 +163,6 @@ await waitFor("user_123", mem.data?.results?.[0]?.id); const results = await client.query({ database, collections: ["company_docs", "user_123"], - type: "all", query: "Can this customer get a refund, and what have we told them so far?", }); @@ -233,7 +231,6 @@ curl -s -X POST "$API/query" "${AUTH[@]}" \ { "database": "${DATABASE}", "collections": ["company_docs", "user_123"], - "type": "all", "query": "Can this customer get a refund, and what have we told them so far?" } EOF diff --git a/llms.txt b/llms.txt index f493660e..7027729a 100644 --- a/llms.txt +++ b/llms.txt @@ -205,7 +205,7 @@ Knowledge is the documents and facts your AI reasons over: PDFs, Markdown, and C ### Memories -Memories are preferences, decisions, past conversations, behavioral signals, and inferred traits. Ingest them with `type: "memory"` into the collection you will query them from, and query with `type: "memory"` or `type: "all"`. Item fields, including `infer`, are in [6. Source ingestion](#6-source-ingestion). +Memories are preferences, decisions, past conversations, behavioral signals, and inferred traits. Ingest them with `type: "memory"` into the collection you will query them from, and query with `type: "memory"`, or leave `type` out to search memories and knowledge together. Item fields, including `infer`, are in [6. Source ingestion](#6-source-ingestion). ### Query @@ -655,7 +655,7 @@ Memory item fields: | `text` | raw text or Markdown; required unless `user_assistant_pairs` provided | | `user_assistant_pairs` | dialogue pairs `{ user, assistant }`; useful for implied preferences | | `is_markdown` | preserve Markdown structure during chunking | -| `infer` | defaults to `false` when omitted, which stores the memory verbatim. Send `true` when the input is raw signal and HydraDB should extract the durable preference or fact | +| `infer` | defaults to `true` when omitted: HydraDB extracts the durable preference or fact. Explicit `false` stores the memory verbatim | | `user_name` | helps inference | | `metadata` | schema-aligned fields, as an object (do not stringify it again inside `memories`). `tenant_metadata` is not read on memory items. | | `additional_metadata` | free-form fields; keep as objects | @@ -767,21 +767,21 @@ Rules: | `collection` | string/null | the collection the context was saved in; default collection if omitted | | `collections` | list of collection IDs, or an object of weights | query up to 100 collections at once; every listed collection must exist. Send weights, such as `{"user_alex": 2, "company_docs": 1}`, to rank one collection over another | | `query` | string | required | -| `type` | `knowledge`, `memory`, `all` | defaults to `knowledge`; send `all` to search knowledge and memories together, at most `max_results` chunks in total | +| `type` | `knowledge`, `memory`, `all` | omit it to search knowledge and memories together, at most `max_results` chunks in total; choose a type to narrow it. Leave it out rather than sending `all` | | `acl` | list of principals | who is asking; see [Send `acl` on user queries](#send-acl-on-user-queries) | | `query_by` | `hybrid`, `text` | default `hybrid` (semantic + BM25); `text` is BM25 keyword/phrase search | | `operator` | `or`, `and`, `phrase` | only for `query_by: "text"` | | `mode` | `fast`, `thinking`, `auto` | applies to hybrid; omitted means `auto`, which picks fast or thinking per query (thinking when unsure). `fast` is low latency. `thinking` adds query expansion, reranking, richer graph traversal, and explicit-relation expansion; it improves quality but adds latency | | `max_results` | integer/null | default 10; max 250 | | `alpha` | `0.0` to `1.0`, or `auto` | hybrid weight; `1.0` semantic, `0.0` BM25 | -| `recency_bias` | `0.0` to `1.0` | boost newer content; omitted means `0.4`, send `0` to disable | +| `recency_bias` | `0.0` to `1.0` | boost newer content; omitted means `0.6`, send `0` to disable | | `graph_context` | boolean | default true; include graph slice; `false` only takes effect in fast mode, thinking always includes it | | `query_explicit_relations` | boolean | default true; returns explicitly related chunks in `data.additional_graph_context`; only effective in `thinking` mode | | `additional_graph_context` | string | short factual hint that sharpens retrieval; not a hard filter | | `metadata_filters` | object | deterministic filters before/around ranking | | `query_apps` | boolean | app-aware retrieval lane for content synced by connectors; still searches the full selected knowledge scope; defaults to `true` on `/query`, send `false` to disable | -`type: "all"` reads both stores from the same scope. When shared knowledge lives in its own collection, send `collections: ["", ""]`. +Leaving `type` out reads both stores from the same scope. When shared knowledge lives in its own collection, send `collections: ["", ""]`. ### Recommended configurations @@ -789,7 +789,7 @@ Rules: |---|---| | Fast document RAG | `type: "knowledge"`, `query_by: "hybrid"`, `mode: "fast"`, `graph_context: false`, `max_results: 5-10` | | Highest-quality document RAG | `type: "knowledge"`, `query_by: "hybrid"`, `mode: "thinking"`, `graph_context: true`, `alpha: "auto"` | -| Personalized grounded answer | `type: "all"`, `collections` listing the shared collection and the user's, `query_by: "hybrid"`, `mode: "thinking"` | +| Personalized grounded answer | `type` omitted, `collections` listing the shared collection and the user's, `query_by: "hybrid"`, `mode: "thinking"` | | User preferences only | `type: "memory"`, include `collection`, `query_by: "hybrid"` | | Exact keyword / phrase | `type: "knowledge"`, `query_by: "text"`, `operator: "phrase"` | | Recent operational updates | `query_by: "hybrid"`, `recency_bias: 0.6-0.8`, metadata filter to doc type/status | @@ -818,7 +818,6 @@ const result = await client.query({ database: "acme_corp", collections: ["company_docs", "user_alex"], // shared knowledge and this user's memories query: "What is our refund policy, and how should I explain it to this user?", - type: "all", queryBy: "hybrid", mode: "thinking", alpha: "auto", @@ -900,7 +899,7 @@ Use `chunks` as the primary LLM context. Preserve server order, which is the ran - Start with `max_results: 10`; reduce it for tight context windows. - Use graph context only when it helps the question. - Use `data.additional_graph_context` to attach explicitly related chunks by `chunk_uuid` / `extra_context_ids`. It is a response map, separate from the request's `additional_graph_context` string hint. The legacy `data.additional_context` response alias contains the same map. -- For personalized answers, `type: "all"` is simplest: one result set already merges knowledge and memories. +- For personalized answers, leave `type` out: one result set already merges knowledge and memories. Python: diff --git a/plugins/cli.mdx b/plugins/cli.mdx index e7cd7666..346b9040 100644 --- a/plugins/cli.mdx +++ b/plugins/cli.mdx @@ -154,12 +154,12 @@ hydradb query "PostgreSQL migration" --operator and --database my-db | Command | Description | | --- | --- | -| `--type` | Context type to query: `knowledge`, `memory`, or `all`. Omitted means `knowledge`; pass `all` to search knowledge and memories together | +| `--type` | Context type to query: `memory` or `knowledge`. Omit to search both | | `--operator` | Keyword operator: `or`, `and`, or `phrase`. Setting it switches the query to keyword (text) search | | `--max-results`, `-n` | Maximum results, 1 to 50 (default `10`) | | `--mode`, `-m` | Retrieval mode: `fast` or `thinking`. Omit it and the API picks one per query (`auto`) | | `--alpha` | Hybrid search weight (`0.0` keyword to `1.0` semantic). Omitted means the API default, `0.8` | -| `--recency-bias` | Preference for newer content (`0.0` to `1.0`). Omitted means the API default, a mild `0.4` tilt. Pass `0` to turn it off | +| `--recency-bias` | Preference for newer content (`0.0` to `1.0`). Omitted means `0.6`. Pass `0` to turn it off | | `--graph-context` / `--no-graph-context` | Include context graph relations. On by default. `--no-graph-context` only takes effect in `fast` mode | | `--query-explicit-relations` / `--no-query-explicit-relations` | Include or skip deterministically linked sources in thinking mode. On by default | | `--additional-graph-context` | A factual string hint to guide retrieval, not a filter. `--additional_graph_context` is also accepted | diff --git a/scripts/test_cookbooks.py b/scripts/test_cookbooks.py index 6967a7f4..6ec23a38 100644 --- a/scripts/test_cookbooks.py +++ b/scripts/test_cookbooks.py @@ -301,7 +301,8 @@ def query(self, **kwargs): scopes = kwargs.get("collections") or [kwargs["collection"]] test.assertFalse("collection" in kwargs and "collections" in kwargs) test.assertLessEqual(set(scopes), self.collections) - test.assertIn(kwargs["type"], {"knowledge", "memory", "all"}) + test.assertIn(kwargs.get("type"), {None, "knowledge", "memory"}, + "omit type to search both stores; a unified database rejects an explicit all") test.assertIn(kwargs.get("mode", "auto"), {"fast", "thinking", "auto"}) if "max_results" in kwargs: test.assertLessEqual(kwargs["max_results"], 250) diff --git a/scripts/test_docs_consistency.py b/scripts/test_docs_consistency.py index 3c1fc78f..f4d4d895 100644 --- a/scripts/test_docs_consistency.py +++ b/scripts/test_docs_consistency.py @@ -197,9 +197,8 @@ def test_memory_scope_is_derived_from_the_signed_in_session(self): self.assertIn("signed-in session", memory) self.assertIn("does not authenticate", memory) self.assertIn("every ingest, status check, and query", memory) - self.assertIn("`infer: false` (default)", memory) - self.assertIn("Omitting `infer` means `false`", memory) - self.assertIn("`infer: true`", memory) + self.assertIn("`infer: true` (default)", memory) + self.assertIn("`infer: false`", memory) def test_legacy_memory_instructions_are_not_public_guidance(self): for relative in ( @@ -225,10 +224,10 @@ def test_query_names_and_defaults_match_the_canonical_contract(self): self.assertIn("query_explicit_relations", text) self.assertIn("additional_graph_context", text) self.assertIn("data.additional_graph_context", text) - self.assertNotRegex(text, r'(?:Default|default|omitted means)[^\n|]*`0\.6`') + self.assertNotRegex(text, r'(?:Default|default|omitted means)[^\n|]*`0\.4`') reference = self.read("api-reference/v2/endpoint/query.mdx") - self.assertRegex(reference, r'name="type"[^\n]*default=`"knowledge"`') - self.assertRegex(reference, r'name="recency_bias"[^\n]*default=`0\.4`') + self.assertRegex(reference, r'name="type"[^\n]*default=`"all"`') + self.assertRegex(reference, r'name="recency_bias"[^\n]*default=`0\.6`') self.assertIn('name="query_explicit_relations"', reference) self.assertIn('name="additional_graph_context"', reference) self.assertIn("request-time hint", reference) @@ -443,58 +442,19 @@ def v2_pages(): class PublishedQueryContractTest(unittest.TestCase): """The production query contract the guides teach (PRO-1618 review, 2026-11-16).""" - def read(self, relative): - return (ROOT / relative).read_text(encoding="utf-8") - - def test_query_type_defaults_to_knowledge(self): - claims_all = re.compile( - r"(?i)defaults? to `\"?all|default=`\"all\"`|leav\w* `?type`? out|omit\w* `?type`? to search both" - r"|`type` omitted|that leaves out `type`|without `type` searches (?:both|knowledge and)" - ) - offenders = [f"{relative}: {m.group(0)}" for relative, text in v2_pages() for m in claims_all.finditer(text)] - self.assertEqual([], offenders, "a split database searches knowledge when type is omitted") - self.assertIn("defaults to `knowledge`; send `all`", self.read("AGENTS.mdx")) - self.assertIn('Defaults to `"knowledge"`', self.read("essentials/v2/query.mdx")) - self.assertIn('Defaults to `"knowledge"`', self.read("api-reference/v2/endpoint/query-overview.mdx")) - self.assertIn("Omitted means `knowledge`; pass `all`", self.read("plugins/cli.mdx")) - - def test_examples_that_read_a_user_collection_send_the_store(self): - user_scope = re.compile(r"""collections["']?\s*[:=]\s*[\[{][^\]}]*["']user_""") - offenders = [] - for relative, text in v2_pages(): - for block in re.findall(r"```.*?```", text, re.S): - calls = re.split(r"(?=\bclient\.query\(|POST /query|/query\b)", block) - for call in calls: - asks = re.search(r"""\bquery["']?\s*[:=]\s*["']""", call) - if asks and user_scope.search(call) and not re.search(r"""\btype\b["']?\s*[:=]\s*["'](?:all|memory)["']""", call): - offenders.append(f"{relative}: {call.strip()[:80]}") - self.assertEqual([], offenders, "an untyped query skips memories on a split database") - - def test_memory_infer_defaults_to_false(self): - claims_true = re.compile( - r"`infer: true` \(default\)|`infer`[^\n|]*defaults? to `true`|Omitting `infer` means `true`" - r"|name=\"infer\"[^\n]*memory enrichment[^\n]*default=`true`" - ) - offenders = [f"{relative}: {m.group(0)}" for relative, text in v2_pages() for m in claims_true.finditer(text)] - self.assertEqual([], offenders, "a split database stores a memory without inference when infer is omitted") - self.assertRegex(self.read("api-reference/v2/endpoint/ingest-context.mdx"), - r'name="infer"[^\n]*memory enrichment[^\n]*default=`false`') - self.assertIn("defaults to `false` when omitted", self.read("AGENTS.mdx")) - - def test_recency_bias_defaults_to_a_mild_tilt(self): - self.assertIn("Default `0.4`", self.read("essentials/v2/query.mdx")) - self.assertIn("omitted means `0.4`", self.read("AGENTS.mdx")) - self.assertIn("a mild `0.4` tilt", self.read("plugins/cli.mdx")) - self.assertNotRegex(self.read("plugins/cli.mdx"), r"Omitted means `0\.6`") - - def test_databases_guide_says_existing_databases_keep_their_defaults(self): - guide = self.read("essentials/v2/databases-and-collections.mdx") - self.assertIn("Existing databases keep the defaults above", guide) + def test_examples_leave_the_default_query_type_out(self): + explicit_all = re.compile(r"""\btype\b["']?\s*[:=]\s*["']all["']""") + offenders = [ + f"{relative}: {match.group(0)}" + for relative, text in v2_pages() + for block in re.findall(r"```.*?```", text, re.S) + for match in explicit_all.finditer(block) + ] + self.assertEqual([], offenders, "omit type to search both stores; a unified database rejects an explicit all") def test_withdrawn_query_aliases_and_notices_are_not_documented(self): withdrawn = re.compile( - r"follow_forceful_relations|enrichment_enabled_by_default|inference_enabled_by_default" - r"|default-processing-warnings" + r"follow_forceful_relations|enrichment_enabled_by_default" r"|alias(?:es)?\b[^.\n]*`context`|> `context`" ) offenders = [f"{relative}: {m.group(0)}" for relative, text in v2_pages() for m in withdrawn.finditer(text)] From 3f980b6d5280bc66ca1c88db9f3f162c3feead17 Mon Sep 17 00:00:00 2001 From: SohamRatnaparkhi Date: Mon, 16 Nov 2026 18:23:24 +0530 Subject: [PATCH 21/33] docs: drop the default processing warnings section (ENG-1618) The inference_enabled_by_default and enrichment_enabled_by_default notices are not documented: the ingest reference loses the section and its 202 example, and the context guide loses the link to it. The consistency test now rejects both notice codes. Co-Authored-By: Claude Opus 5.5 Signed-off-by: SohamRatnaparkhi --- api-reference/v2/endpoint/ingest-context.mdx | 52 -------------------- essentials/v2/context.mdx | 2 - scripts/test_docs_consistency.py | 2 +- 3 files changed, 1 insertion(+), 55 deletions(-) diff --git a/api-reference/v2/endpoint/ingest-context.mdx b/api-reference/v2/endpoint/ingest-context.mdx index 6d98d35e..997bc26f 100644 --- a/api-reference/v2/endpoint/ingest-context.mdx +++ b/api-reference/v2/endpoint/ingest-context.mdx @@ -68,58 +68,6 @@ curl -X POST 'https://api.hydradb.com/context/ingest' \ - **`202 Accepted` means queued, not indexed:** A successful response only confirms your sources were accepted, not that they are ready to query. Before querying, poll [`GET /context/status`](/api-reference/v2/endpoint/source-status) with the returned IDs until each source reaches `graph_creation` (searchable), `completed`, or `errored`. Alternatively, register a webhook for `indexing.status_changed` events (see [Webhooks](/api-reference/v2/endpoint/webhooks-overview)). - **Memory and knowledge:** Use `type: "memory"` for memory ingestion, listing, and deletion. Leave `type` out on `POST /query` when results should combine both. -## Default processing warnings - -The v2 acceptance envelope reports implicit processing defaults in `meta.warnings`, separately from CLI/MCP scope notices: - -- `inference_enabled_by_default` counts accepted memory items whose `infer` was omitted. Set `infer: false` on an item to disable inference. - -Explicit `true` is intentional and produces no default warning, just like explicit `false`. The notice appears at most once per response and counts only accepted affected items, not failed items. Existing warnings and the request ID remain intact. The same rules apply to equivalent supported JSON and form requests; unrelated file/connector processing defaults are unchanged. - -`infer: false` disables additional memory enrichment, not all processing. Ingestion, indexing, and entity/graph extraction may still run; it does not promise raw-only storage or no graph processing. - -This real `202 Accepted` example contains one queued memory whose `infer` was omitted. The warning does not report successful inference or completed indexing; check the existing [processing status](/api-reference/v2/endpoint/source-status) before querying: - -```json 202 -{ - "success": true, - "data": { - "generation_started_at_ms": 1794807761771, - "success": true, - "message": "Memories queued for ingestion successfully. Ingestion is asynchronous: this 202 means the sources were accepted and queued, not indexed. Poll GET /context/status?database=&id= until each source's indexing_status reaches a terminal state (completed or errored) before querying. See https://docs.hydradb.com/api-reference/v2/endpoint/source-status for usage details. ", - "results": [ - { - "id": "example-memory", - "title": null, - "status": "queued", - "infer": true, - "error": null, - "error_code": null - } - ], - "success_count": 1, - "failed_count": 0 - }, - "error": null, - "meta": { - "request_id": "ingest-warning-request", - "api_version": "2.0.1", - "latency_ms": null, - "tenant_id": "crm", - "database": "crm", - "sub_tenant_id": "docs", - "collection": "docs", - "source_type": "memory", - "warnings": [ - { - "code": "inference_enabled_by_default", - "message": "Inference is enabled by default for 1 accepted item because infer was omitted. Set infer to false on an item to disable inference for that item." - } - ] - } -} -``` - ## Supported file formats diff --git a/essentials/v2/context.mdx b/essentials/v2/context.mdx index cb97ab18..ea266db6 100644 --- a/essentials/v2/context.mdx +++ b/essentials/v2/context.mdx @@ -102,8 +102,6 @@ Apply the same server-derived scope and authorization to updates and deletes. Be - `text`: Any prose, such as observations, facts, meeting notes, or semi-structured records. Set `is_markdown: true` for Markdown content so HydraDB keeps its structure when chunking and embedding. - `user_assistant_pairs`: Dialogue, especially when a preference is implied rather than stated. Each pair is `{ "user": "...", "assistant": "..." }`. -When you omit `infer`, the acceptance response includes an `inference_enabled_by_default` notice for the accepted items that used this default. Explicit `true` or `false` does not produce that notice. See [Default processing warnings](/api-reference/v2/endpoint/ingest-context#default-processing-warnings) for the response and opt-out rules. - Set up your [SDK client](/api-reference/v2/sdks#client-setup) before running the Python or TypeScript example. diff --git a/scripts/test_docs_consistency.py b/scripts/test_docs_consistency.py index f4d4d895..85f37ca4 100644 --- a/scripts/test_docs_consistency.py +++ b/scripts/test_docs_consistency.py @@ -454,7 +454,7 @@ def test_examples_leave_the_default_query_type_out(self): def test_withdrawn_query_aliases_and_notices_are_not_documented(self): withdrawn = re.compile( - r"follow_forceful_relations|enrichment_enabled_by_default" + r"follow_forceful_relations|enrichment_enabled_by_default|inference_enabled_by_default" r"|alias(?:es)?\b[^.\n]*`context`|> `context`" ) offenders = [f"{relative}: {m.group(0)}" for relative, text in v2_pages() for m in withdrawn.finditer(text)] From 151c9880aeae258e15b01a73b6e017ee524c7039 Mon Sep 17 00:00:00 2001 From: SohamRatnaparkhi Date: Mon, 16 Nov 2026 19:04:22 +0530 Subject: [PATCH 22/33] fix(docs): restore the founder's explicit type "all" query examples (ENG-1618) Production databases are split, and on a split database a query that omits type searches knowledge only. Earlier edits on this branch removed the explicit type "all" from examples that read memories and documents together, so copied examples returned no memories. Put back the founder's lines from 848556f for the 19 example lines, the sentences that tell the reader to pass it, and the type rows. Also restore the follow_forceful_relations alias in the query reference (the backend still accepts it) while keeping the withdrawn context alias out, drop the meta.deprecation paragraph that went beyond a minor fix, and remove the tests that forbade an explicit all. Co-Authored-By: Claude Opus 5.5 Signed-off-by: SohamRatnaparkhi --- AGENTS.mdx | 11 ++++++----- api-reference/v2/endpoint/context-overview.mdx | 2 +- api-reference/v2/endpoint/ingest-context.mdx | 2 +- api-reference/v2/endpoint/query-overview.mdx | 4 +++- api-reference/v2/endpoint/query.mdx | 13 +++++++++---- api-reference/v2/error-responses.mdx | 2 +- api-reference/v2/sdks.mdx | 2 ++ cookbooks/v2/chief-of-staff.mdx | 3 ++- cookbooks/v2/personal-assistant.mdx | 3 ++- cookbooks/v2/support-agent.mdx | 3 ++- essentials/v2/databases-and-collections.mdx | 4 +--- essentials/v2/query.mdx | 9 ++++++--- get-started/v2/quickstart.mdx | 3 +++ llms.txt | 11 ++++++----- scripts/test_cookbooks.py | 3 +-- scripts/test_docs_consistency.py | 12 +----------- 16 files changed, 47 insertions(+), 40 deletions(-) diff --git a/AGENTS.mdx b/AGENTS.mdx index 4f06c80f..a769da78 100644 --- a/AGENTS.mdx +++ b/AGENTS.mdx @@ -206,7 +206,7 @@ Knowledge is the documents and facts your AI reasons over: PDFs, Markdown, and C ### Memories -Memories are preferences, decisions, past conversations, behavioral signals, and inferred traits. Ingest them with `type: "memory"` into the collection you will query them from, and query with `type: "memory"`, or leave `type` out to search memories and knowledge together. Item fields, including `infer`, are in [6. Source ingestion](#6-source-ingestion). +Memories are preferences, decisions, past conversations, behavioral signals, and inferred traits. Ingest them with `type: "memory"` into the collection you will query them from, and query with `type: "memory"` or `type: "all"`. Item fields, including `infer`, are in [6. Source ingestion](#6-source-ingestion). ### Query @@ -768,7 +768,7 @@ Rules: | `collection` | string/null | the collection the context was saved in; default collection if omitted | | `collections` | list of collection IDs, or an object of weights | query up to 100 collections at once; every listed collection must exist. Send weights, such as `{"user_alex": 2, "company_docs": 1}`, to rank one collection over another | | `query` | string | required | -| `type` | `knowledge`, `memory`, `all` | omit it to search knowledge and memories together, at most `max_results` chunks in total; choose a type to narrow it. Leave it out rather than sending `all` | +| `type` | `knowledge`, `memory`, `all` | defaults to `all`, searching knowledge and memories; choose a type to narrow it | | `acl` | list of principals | who is asking; see [Send `acl` on user queries](#send-acl-on-user-queries) | | `query_by` | `hybrid`, `text` | default `hybrid` (semantic + BM25); `text` is BM25 keyword/phrase search | | `operator` | `or`, `and`, `phrase` | only for `query_by: "text"` | @@ -782,7 +782,7 @@ Rules: | `metadata_filters` | object | deterministic filters before/around ranking | | `query_apps` | boolean | app-aware retrieval lane for content synced by connectors; still searches the full selected knowledge scope; defaults to `true` on `/query`, send `false` to disable | -Leaving `type` out reads both stores from the same scope. When shared knowledge lives in its own collection, send `collections: ["", ""]`. +`type: "all"` reads both stores from the same scope. When shared knowledge lives in its own collection, send `collections: ["", ""]`. ### Recommended configurations @@ -790,7 +790,7 @@ Leaving `type` out reads both stores from the same scope. When shared knowledge |---|---| | Fast document RAG | `type: "knowledge"`, `query_by: "hybrid"`, `mode: "fast"`, `graph_context: false`, `max_results: 5-10` | | Highest-quality document RAG | `type: "knowledge"`, `query_by: "hybrid"`, `mode: "thinking"`, `graph_context: true`, `alpha: "auto"` | -| Personalized grounded answer | `type` omitted, `collections` listing the shared collection and the user's, `query_by: "hybrid"`, `mode: "thinking"` | +| Personalized grounded answer | `type: "all"`, `collections` listing the shared collection and the user's, `query_by: "hybrid"`, `mode: "thinking"` | | User preferences only | `type: "memory"`, include `collection`, `query_by: "hybrid"` | | Exact keyword / phrase | `type: "knowledge"`, `query_by: "text"`, `operator: "phrase"` | | Recent operational updates | `query_by: "hybrid"`, `recency_bias: 0.6-0.8`, metadata filter to doc type/status | @@ -819,6 +819,7 @@ const result = await client.query({ database: "acme_corp", collections: ["company_docs", "user_alex"], // shared knowledge and this user's memories query: "What is our refund policy, and how should I explain it to this user?", + type: "all", queryBy: "hybrid", mode: "thinking", alpha: "auto", @@ -900,7 +901,7 @@ Use `chunks` as the primary LLM context. Preserve server order, which is the ran - Start with `max_results: 10`; reduce it for tight context windows. - Use graph context only when it helps the question. - Use `data.additional_graph_context` to attach explicitly related chunks by `chunk_uuid` / `extra_context_ids`. It is a response map, separate from the request's `additional_graph_context` string hint. The legacy `data.additional_context` response alias contains the same map. -- For personalized answers, leave `type` out: one result set already merges knowledge and memories. +- For personalized answers, `type: "all"` is simplest: one result set already merges knowledge and memories. Python: diff --git a/api-reference/v2/endpoint/context-overview.mdx b/api-reference/v2/endpoint/context-overview.mdx index dcdf6476..4f1dd082 100644 --- a/api-reference/v2/endpoint/context-overview.mdx +++ b/api-reference/v2/endpoint/context-overview.mdx @@ -73,7 +73,7 @@ flowchart LR ## Key concepts -- **Knowledge and memories:** Knowledge is the documents, content synced from your apps, and facts your AI uses. Memories are preferences, decisions, and past conversations. Both live in a collection, and a `POST /query` that leaves out `type` searches both from the same scope. +- **Knowledge and memories:** Knowledge is the documents, content synced from your apps, and facts your AI uses. Memories are preferences, decisions, and past conversations. Both live in a collection, and `type: "all"` on `POST /query` searches both from the same scope. - **IDs:** `/context/ingest` returns an ID for each source. To assign your own, set `id` in the `document_metadata` or `memories` item. Use IDs to poll status, inspect content, and delete context. - **Metadata:** [Metadata Filters](/essentials/v2/metadata) covers metadata fields, ingestion, updates, and filtering. - **Deterministic relations:** Links you declare between sources with `relations.ids`. In `thinking` mode, a query returns the linked sources in `data.additional_graph_context` alongside the matching chunks. Set relations on the same `document_metadata` item as the file's metadata: diff --git a/api-reference/v2/endpoint/ingest-context.mdx b/api-reference/v2/endpoint/ingest-context.mdx index 997bc26f..fbbdbb75 100644 --- a/api-reference/v2/endpoint/ingest-context.mdx +++ b/api-reference/v2/endpoint/ingest-context.mdx @@ -66,7 +66,7 @@ curl -X POST 'https://api.hydradb.com/context/ingest' \ - **Multipart, not JSON:** This endpoint uses `multipart/form-data`. Stringify all JSON arrays (`document_metadata`, `memories`) before placing them in the form field. A body that is neither a form nor JSON returns `415`. - **`202 Accepted` means queued, not indexed:** A successful response only confirms your sources were accepted, not that they are ready to query. Before querying, poll [`GET /context/status`](/api-reference/v2/endpoint/source-status) with the returned IDs until each source reaches `graph_creation` (searchable), `completed`, or `errored`. Alternatively, register a webhook for `indexing.status_changed` events (see [Webhooks](/api-reference/v2/endpoint/webhooks-overview)). -- **Memory and knowledge:** Use `type: "memory"` for memory ingestion, listing, and deletion. Leave `type` out on `POST /query` when results should combine both. +- **Memory and knowledge:** Use `type: "memory"` for memory ingestion, listing, and deletion. Use `type: "all"` on `POST /query` when results should combine both. ## Supported file formats diff --git a/api-reference/v2/endpoint/query-overview.mdx b/api-reference/v2/endpoint/query-overview.mdx index 66bac703..3f1cf2ca 100644 --- a/api-reference/v2/endpoint/query-overview.mdx +++ b/api-reference/v2/endpoint/query-overview.mdx @@ -62,7 +62,7 @@ These parameters shape most queries. [Query](/api-reference/v2/endpoint/query#re |---|---| | Fast answers from documents | `type="knowledge"`, `query_by="hybrid"`, `mode="fast"`, `max_results=5-10`, `graph_context=false` | | Broader document search | `type="knowledge"`, `query_by="hybrid"`, `mode="thinking"` (thinking always includes graph context) | -| Personalized answer | `type` omitted, the user's `collection`, `query_by="hybrid"`, `mode="thinking"`. If shared knowledge lives in another collection, list both in `collections` | +| Personalized answer | `type="all"`, the user's `collection`, `query_by="hybrid"`, `mode="thinking"`. If shared knowledge lives in another collection, list both in `collections` | | User preferences only | `type="memory"`, include `collection`, `query_by="hybrid"` | | Exact keyword or phrase | `type="knowledge"`, `query_by="text"`, `operator="phrase"` | | Recent operational updates | `query_by="hybrid"`, `recency_bias=0.6-0.8`, a metadata filter for the right document type | @@ -100,6 +100,7 @@ Search the shared knowledge collection and the collection the user's memories we "database": "acme", "collections": ["company_docs", "user_alex"], "query": "What is our refund policy, and how should I explain it to this user?", + "type": "all", "query_by": "hybrid", "mode": "thinking" } @@ -119,6 +120,7 @@ Search several collections and return one ranked result set. Use a list for equa "user_alex": 1 }, "query": "What renewal risks should we discuss?", + "type": "all", "query_by": "hybrid", "mode": "thinking" } diff --git a/api-reference/v2/endpoint/query.mdx b/api-reference/v2/endpoint/query.mdx index c8885021..add2d0fb 100644 --- a/api-reference/v2/endpoint/query.mdx +++ b/api-reference/v2/endpoint/query.mdx @@ -225,7 +225,7 @@ By default, `data.llm_prompt` contains the question and matching context as Mark | | Exact source titles, matched case-insensitively. Matches any listed title, then intersects with `ids` if both are sent. | | | Principals for the caller, used to filter sources by ACL. Omitting `acl`, sending `[]`, or sending `["*"]` disables caller-supplied filtering. For enforced connectors, the authenticated caller is used instead; see [ACL enforcement](/essentials/v2/connectors#enforce-acl). | | | Omit for the result object with `llm_prompt`. `"structured"` leaves out the prompt string. `"markdown"` returns the prompt string directly as `data`. | -| | What to query. Omitted, or `"all"`, runs knowledge and memory in parallel over the same scope, merges by `relevancy_score`, and returns at most `max_results` chunks in total. Leave it out rather than sending `"all"`. (default=`"all"`) | +| | What to query. `"all"` runs knowledge and memory in parallel over the same scope and merges by `relevancy_score`. (default=`"all"`) | | | Retrieval method. See [Query methods](#decision-matrix). (default=`"hybrid"`) | | | Applies to knowledge queries only. Adds app-aware retrieval for messages, threads, and linked records synced by connectors. It still searches all selected knowledge, rather than only synced content. Send `false` to disable app-aware retrieval. (default=`true`) | | | BM25 operator for `query_by: "text"`. `"and"` or `"phrase"` with any other `query_by` returns `400`. (default=`"or"`) | @@ -241,7 +241,7 @@ By default, `data.llm_prompt` contains the question and matching context as Mark To tune `alpha`, `recency_bias`, and `max_results` for your content, see the [Query guide](/essentials/v2/query). -Legacy request aliases remain accepted: `query_forceful_relations` for `query_explicit_relations`, and `additional_context` for the string hint `additional_graph_context`. Prefer the canonical names. When both spellings are sent, the canonical name wins. Explicit `false` and an empty canonical hint are preserved. In the response, the legacy `data.additional_context` alias contains the same linked-source map as `data.additional_graph_context`; neither response map is the request hint. +Legacy request aliases remain accepted: `follow_forceful_relations` and `query_forceful_relations` for `query_explicit_relations`, and `additional_context` for the string hint `additional_graph_context`. Prefer the canonical names. When several are sent, precedence is `query_explicit_relations` > `follow_forceful_relations` > `query_forceful_relations`, and `additional_graph_context` > `additional_context`. Explicit `false` and an empty canonical hint are preserved. In the response, the legacy `data.additional_context` alias contains the same linked-source map as `data.additional_graph_context`; neither response map is the request hint. ### Querying multiple collections @@ -251,7 +251,8 @@ Use `collections` to search several collections in one request. The field accept { "database": "acme_corp", "collections": ["workspace_42", "user_alex"], - "query": "What renewal risks should I know about?" + "query": "What renewal risks should I know about?", + "type": "all" } ``` @@ -262,7 +263,8 @@ Use `collections` to search several collections in one request. The field accept "workspace_42": 2, "user_alex": 1 }, - "query": "What renewal risks should I know about?" + "query": "What renewal risks should I know about?", + "type": "all" } ``` @@ -383,6 +385,7 @@ curl -X POST 'https://api.hydradb.com/query' \ "database": "acme_corp", "collections": ["company_docs", "user_alex"], "query": "What is our refund policy, and how should I explain it to this user?", + "type": "all", "query_by": "hybrid", "mode": "thinking" }' @@ -393,6 +396,7 @@ const result = await client.query({ database: "acme_corp", collections: ["company_docs", "user_alex"], query: "What is our refund policy, and how should I explain it to this user?", + type: "all", queryBy: "hybrid", mode: "thinking", }); @@ -403,6 +407,7 @@ result = client.query( database="acme_corp", collections=["company_docs", "user_alex"], query="What is our refund policy, and how should I explain it to this user?", + type="all", query_by="hybrid", mode="thinking", ) diff --git a/api-reference/v2/error-responses.mdx b/api-reference/v2/error-responses.mdx index 1600b57e..048db19d 100644 --- a/api-reference/v2/error-responses.mdx +++ b/api-reference/v2/error-responses.mdx @@ -228,7 +228,7 @@ An empty result is a successful response, not an error. Common causes: - The source is still `queued` or `processing`. Poll [`GET /context/status`](/api-reference/v2/endpoint/source-status). - `metadata_filters` is too restrictive or targets the wrong metadata namespace. - The query is scoped to the wrong `database` or `collection`. -- The `type` value excludes the store you need. Leave `type` out of `POST /query` to combine knowledge and memories. +- The `type` value excludes the store you need. Use `type: "all"` to combine knowledge and memories in `POST /query`. ## Related diff --git a/api-reference/v2/sdks.mdx b/api-reference/v2/sdks.mdx index 898e0ad8..c1b65963 100644 --- a/api-reference/v2/sdks.mdx +++ b/api-reference/v2/sdks.mdx @@ -388,6 +388,7 @@ personalized = client.query( database="my_first_database", collections=["company_docs", "user_alex"], query="What is our refund policy, and how should I explain it to this user?", + type="all", query_by="hybrid", mode="thinking", ) @@ -419,6 +420,7 @@ const personalized = await client.query({ database: "my_first_database", collections: ["company_docs", "user_alex"], query: "What is our refund policy, and how should I explain it to this user?", + type: "all", queryBy: "hybrid", mode: "thinking", }); diff --git a/cookbooks/v2/chief-of-staff.mdx b/cookbooks/v2/chief-of-staff.mdx index ca2dbbb4..59639263 100644 --- a/cookbooks/v2/chief-of-staff.mdx +++ b/cookbooks/v2/chief-of-staff.mdx @@ -85,7 +85,7 @@ remember("2026-10-02: Moved the EU launch to November 17 because legal needs two ## 4. Ask what is current -Query both collections at once, as the executive. `acl` keeps the brief to what this person may see: their own mail, and the Slack channels they belong to. `recency_bias` favors newer context, and `thinking` mode reranks, so the current launch date ranks above the one it replaced. +Query both collections at once with `type: "all"`, as the executive. `acl` keeps the brief to what this person may see: their own mail, and the Slack channels they belong to. `recency_bias` favors newer context, and `thinking` mode reranks, so the current launch date ranks above the one it replaced. ```python chief_of_staff.py def brief(question): @@ -93,6 +93,7 @@ def brief(question): database=DATABASE, collections=[RECORDS, EXECUTIVE], query=question, + type="all", mode="thinking", recency_bias=0.6, acl=[EXECUTIVE_EMAIL], diff --git a/cookbooks/v2/personal-assistant.mdx b/cookbooks/v2/personal-assistant.mdx index 51e303d0..90ffa57b 100644 --- a/cookbooks/v2/personal-assistant.mdx +++ b/cookbooks/v2/personal-assistant.mdx @@ -108,7 +108,7 @@ add_photo( ## 4. Answer from memories and items together -Leaving `type` out searches the user's memories and knowledge in one call. `acl` is the user's own email, so the query returns only what this person may see. +`type: "all"` searches the user's memories and knowledge in one call. `acl` is the user's own email, so the query returns only what this person may see. ```python assistant.py def ask(question): @@ -116,6 +116,7 @@ def ask(question): database=DATABASE, collection=USER, query=question, + type="all", mode="thinking", acl=[USER_EMAIL], ) diff --git a/cookbooks/v2/support-agent.mdx b/cookbooks/v2/support-agent.mdx index 852da0eb..ebb53314 100644 --- a/cookbooks/v2/support-agent.mdx +++ b/cookbooks/v2/support-agent.mdx @@ -89,7 +89,7 @@ remember("4821", [ ## 4. Answer from both collections -Name both collections and leave `type` out. The query reads this customer's memories and the shared help center, and nothing else. Take `customer_id` from the authenticated session, never from the message: the collection name is what keeps one customer's history out of another's answers. +Name both collections and set `type: "all"`. The query reads this customer's memories and the shared help center, and nothing else. Take `customer_id` from the authenticated session, never from the message: the collection name is what keeps one customer's history out of another's answers. ```python support.py ROLES = { @@ -104,6 +104,7 @@ def support_agent(role, customer_id, question): database=DATABASE, collections=[HELP_CENTER, customer_collection(customer_id)], query=question, + type="all", mode="thinking", ) return answer(question, result, ROLES[role]) diff --git a/essentials/v2/databases-and-collections.mdx b/essentials/v2/databases-and-collections.mdx index 8d787d8b..1a06f076 100644 --- a/essentials/v2/databases-and-collections.mdx +++ b/essentials/v2/databases-and-collections.mdx @@ -38,9 +38,7 @@ When a request uses a deprecated route or field, HydraDB adds a deprecation noti **Response headers:** `Deprecation: true`, plus a `Warning` header carrying the migration message. -**Response body:** `meta.deprecation` lists each notice with its `message`. - -The deprecated names map one to one: `tenant_id` is `database`, `sub_tenant_id` is `collection`, `sub_tenant_ids` on `/query` is `collections`, and the `/tenants/*` routes are the `/databases/*` routes. The old names still work. +The deprecated names map one to one: `tenant_id` is `database`, `sub_tenant_id` is `collection`, `sub_tenant_ids` on `/query` is `collections`, and the `/tenants/*` routes are the `/databases/*` routes. ## Common mistakes diff --git a/essentials/v2/query.mdx b/essentials/v2/query.mdx index f04d0e78..3cc06cce 100644 --- a/essentials/v2/query.mdx +++ b/essentials/v2/query.mdx @@ -122,7 +122,7 @@ The following sample request searches the `acme_corp` database. `type` - Leave it out to search knowledge and memories together and get one ranked list of at most `max_results` chunks. Set `"knowledge"` for documents and synced app content, or `"memory"` for saved preferences and conversations. `"all"` names the same default explicitly, but leaving `type` out is the form that works on every database. + Defaults to `"all"`, searching knowledge and memories together. Set `"knowledge"` for documents or `"memory"` for saved preferences. @@ -210,6 +210,7 @@ Table answers run in thinking mode only; `"fast"` returns the ranked chunks with database="acme_corp", collections=["company_docs", "user_john_123"], query="How do I reset my password?", + type="all", mode="thinking", max_results=8, ) @@ -220,6 +221,7 @@ Table answers run in thinking mode only; `"fast"` returns the ranked chunks with database: "acme_corp", collections: ["company_docs", "user_john_123"], query: "How do I reset my password?", + type: "all", mode: "thinking", maxResults: 8, }); @@ -234,6 +236,7 @@ Table answers run in thinking mode only; `"fast"` returns the ranked chunks with "database": "acme_corp", "collections": ["company_docs", "user_john_123"], "query": "How do I reset my password?", + "type": "all", "mode": "thinking", "max_results": 8 }' @@ -370,8 +373,8 @@ console.log(completion.choices[0].message.content); | Empty `query_paths` or `chunk_relations` | `graph_context` set to `false`, or no relationships exist for the result set | Leave `graph_context` on (the default). Empty arrays are normal when there is nothing to return. | | Recent uploads do not appear in results | Indexing not finished | Poll [`GET /context/status`](/api-reference/v2/endpoint/source-status) with the source ids. Chunks are invisible until indexing reaches at least `graph_creation`. | | `metadata_filters` does not narrow results | Filter key is in the wrong namespace, the value does not match exactly, or the top-level field was not declared in the metadata schema | Top-level keys match `metadata`; free-form per-source fields must be nested under `additional_metadata`. Declare hot filter keys in `database_metadata_schema` before production ingest. | -| Memories missing from a `type: "knowledge"` query | Wrong store selected | Use `type: "memory"`, or leave `type` out to search both. | -| Knowledge missing from a query over both stores | The documents live in a different collection from the one you sent | List both collections in `collections`. | +| Memories missing from a `type: "knowledge"` query | Wrong store selected | Use `type: "memory"` or `type: "all"`. | +| Knowledge missing from a `type: "all"` query | The documents live in a different collection from the one you sent | List both collections in `collections`. | | Recency does not seem to matter | `recency_bias` was sent as `0`, or the default `0.6` tilt is too mild | Raise it toward `1.0`. | | `operator: "phrase"` returns `400` | `query_by` not set to `"text"` | `"and"` and `"phrase"` only apply to BM25 text queries: switch `query_by` to `"text"`. | | `query_explicit_relations` ignored | Request runs in `mode: "fast"` (or `auto` routed to fast) | Deterministically linked sources are fetched only in thinking mode. Set `mode: "thinking"`. | diff --git a/get-started/v2/quickstart.mdx b/get-started/v2/quickstart.mdx index efda56b9..c36963eb 100644 --- a/get-started/v2/quickstart.mdx +++ b/get-started/v2/quickstart.mdx @@ -102,6 +102,7 @@ wait_for("user_123", mem.data.results[0].id) results = client.query( database=database, collections=["company_docs", "user_123"], + type="all", query="Can this customer get a refund, and what have we told them so far?", ) @@ -163,6 +164,7 @@ await waitFor("user_123", mem.data?.results?.[0]?.id); const results = await client.query({ database, collections: ["company_docs", "user_123"], + type: "all", query: "Can this customer get a refund, and what have we told them so far?", }); @@ -231,6 +233,7 @@ curl -s -X POST "$API/query" "${AUTH[@]}" \ { "database": "${DATABASE}", "collections": ["company_docs", "user_123"], + "type": "all", "query": "Can this customer get a refund, and what have we told them so far?" } EOF diff --git a/llms.txt b/llms.txt index 7027729a..f684ff4a 100644 --- a/llms.txt +++ b/llms.txt @@ -205,7 +205,7 @@ Knowledge is the documents and facts your AI reasons over: PDFs, Markdown, and C ### Memories -Memories are preferences, decisions, past conversations, behavioral signals, and inferred traits. Ingest them with `type: "memory"` into the collection you will query them from, and query with `type: "memory"`, or leave `type` out to search memories and knowledge together. Item fields, including `infer`, are in [6. Source ingestion](#6-source-ingestion). +Memories are preferences, decisions, past conversations, behavioral signals, and inferred traits. Ingest them with `type: "memory"` into the collection you will query them from, and query with `type: "memory"` or `type: "all"`. Item fields, including `infer`, are in [6. Source ingestion](#6-source-ingestion). ### Query @@ -767,7 +767,7 @@ Rules: | `collection` | string/null | the collection the context was saved in; default collection if omitted | | `collections` | list of collection IDs, or an object of weights | query up to 100 collections at once; every listed collection must exist. Send weights, such as `{"user_alex": 2, "company_docs": 1}`, to rank one collection over another | | `query` | string | required | -| `type` | `knowledge`, `memory`, `all` | omit it to search knowledge and memories together, at most `max_results` chunks in total; choose a type to narrow it. Leave it out rather than sending `all` | +| `type` | `knowledge`, `memory`, `all` | defaults to `all`, searching knowledge and memories; choose a type to narrow it | | `acl` | list of principals | who is asking; see [Send `acl` on user queries](#send-acl-on-user-queries) | | `query_by` | `hybrid`, `text` | default `hybrid` (semantic + BM25); `text` is BM25 keyword/phrase search | | `operator` | `or`, `and`, `phrase` | only for `query_by: "text"` | @@ -781,7 +781,7 @@ Rules: | `metadata_filters` | object | deterministic filters before/around ranking | | `query_apps` | boolean | app-aware retrieval lane for content synced by connectors; still searches the full selected knowledge scope; defaults to `true` on `/query`, send `false` to disable | -Leaving `type` out reads both stores from the same scope. When shared knowledge lives in its own collection, send `collections: ["", ""]`. +`type: "all"` reads both stores from the same scope. When shared knowledge lives in its own collection, send `collections: ["", ""]`. ### Recommended configurations @@ -789,7 +789,7 @@ Leaving `type` out reads both stores from the same scope. When shared knowledge |---|---| | Fast document RAG | `type: "knowledge"`, `query_by: "hybrid"`, `mode: "fast"`, `graph_context: false`, `max_results: 5-10` | | Highest-quality document RAG | `type: "knowledge"`, `query_by: "hybrid"`, `mode: "thinking"`, `graph_context: true`, `alpha: "auto"` | -| Personalized grounded answer | `type` omitted, `collections` listing the shared collection and the user's, `query_by: "hybrid"`, `mode: "thinking"` | +| Personalized grounded answer | `type: "all"`, `collections` listing the shared collection and the user's, `query_by: "hybrid"`, `mode: "thinking"` | | User preferences only | `type: "memory"`, include `collection`, `query_by: "hybrid"` | | Exact keyword / phrase | `type: "knowledge"`, `query_by: "text"`, `operator: "phrase"` | | Recent operational updates | `query_by: "hybrid"`, `recency_bias: 0.6-0.8`, metadata filter to doc type/status | @@ -818,6 +818,7 @@ const result = await client.query({ database: "acme_corp", collections: ["company_docs", "user_alex"], // shared knowledge and this user's memories query: "What is our refund policy, and how should I explain it to this user?", + type: "all", queryBy: "hybrid", mode: "thinking", alpha: "auto", @@ -899,7 +900,7 @@ Use `chunks` as the primary LLM context. Preserve server order, which is the ran - Start with `max_results: 10`; reduce it for tight context windows. - Use graph context only when it helps the question. - Use `data.additional_graph_context` to attach explicitly related chunks by `chunk_uuid` / `extra_context_ids`. It is a response map, separate from the request's `additional_graph_context` string hint. The legacy `data.additional_context` response alias contains the same map. -- For personalized answers, leave `type` out: one result set already merges knowledge and memories. +- For personalized answers, `type: "all"` is simplest: one result set already merges knowledge and memories. Python: diff --git a/scripts/test_cookbooks.py b/scripts/test_cookbooks.py index 6ec23a38..6967a7f4 100644 --- a/scripts/test_cookbooks.py +++ b/scripts/test_cookbooks.py @@ -301,8 +301,7 @@ def query(self, **kwargs): scopes = kwargs.get("collections") or [kwargs["collection"]] test.assertFalse("collection" in kwargs and "collections" in kwargs) test.assertLessEqual(set(scopes), self.collections) - test.assertIn(kwargs.get("type"), {None, "knowledge", "memory"}, - "omit type to search both stores; a unified database rejects an explicit all") + test.assertIn(kwargs["type"], {"knowledge", "memory", "all"}) test.assertIn(kwargs.get("mode", "auto"), {"fast", "thinking", "auto"}) if "max_results" in kwargs: test.assertLessEqual(kwargs["max_results"], 250) diff --git a/scripts/test_docs_consistency.py b/scripts/test_docs_consistency.py index 85f37ca4..c020906e 100644 --- a/scripts/test_docs_consistency.py +++ b/scripts/test_docs_consistency.py @@ -442,19 +442,9 @@ def v2_pages(): class PublishedQueryContractTest(unittest.TestCase): """The production query contract the guides teach (PRO-1618 review, 2026-11-16).""" - def test_examples_leave_the_default_query_type_out(self): - explicit_all = re.compile(r"""\btype\b["']?\s*[:=]\s*["']all["']""") - offenders = [ - f"{relative}: {match.group(0)}" - for relative, text in v2_pages() - for block in re.findall(r"```.*?```", text, re.S) - for match in explicit_all.finditer(block) - ] - self.assertEqual([], offenders, "omit type to search both stores; a unified database rejects an explicit all") - def test_withdrawn_query_aliases_and_notices_are_not_documented(self): withdrawn = re.compile( - r"follow_forceful_relations|enrichment_enabled_by_default|inference_enabled_by_default" + r"enrichment_enabled_by_default|inference_enabled_by_default" r"|alias(?:es)?\b[^.\n]*`context`|> `context`" ) offenders = [f"{relative}: {m.group(0)}" for relative, text in v2_pages() for m in withdrawn.finditer(text)] From a32b4e227fa90fac09b9c21c5b4787e86fc71891 Mon Sep 17 00:00:00 2001 From: SohamRatnaparkhi Date: Mon, 16 Nov 2026 21:19:12 +0530 Subject: [PATCH 23/33] feat(docs): list only production connectors, with dashboard logos and grouped navigation (ENG-1618) Connector pages now come only from scripts/production_providers.json, the 70 providers enabled in production, so the 28 pages for providers that are not enabled are gone. Each page, overview card and sidebar entry shows the dashboard's logo. Monochrome marks ship a light-mode and a dark-mode file built from the dashboard's own geometry; multi-colour marks ship one file on the dashboard's neutral tile. The overview becomes a card grid and the sidebar becomes eight collapsed category groups, both written by the generator. Co-Authored-By: Claude Fable 5.2 Signed-off-by: SohamRatnaparkhi --- .gitignore | 1 + docs.json | 208 +++++----- essentials/v2/connector-providers.mdx | 210 ++++++----- essentials/v2/connectors/affinity.mdx | 31 -- essentials/v2/connectors/airtable.mdx | 3 + essentials/v2/connectors/amplitude.mdx | 30 -- essentials/v2/connectors/asana.mdx | 3 + essentials/v2/connectors/attio.mdx | 4 + essentials/v2/connectors/avoma.mdx | 3 + essentials/v2/connectors/bamboohr.mdx | 3 + essentials/v2/connectors/bigquery.mdx | 3 + essentials/v2/connectors/bookstack.mdx | 3 + essentials/v2/connectors/box.mdx | 30 -- essentials/v2/connectors/calendly.mdx | 3 + essentials/v2/connectors/chargebee.mdx | 33 -- essentials/v2/connectors/clickup.mdx | 3 + essentials/v2/connectors/coda.mdx | 3 + essentials/v2/connectors/codat.mdx | 33 -- essentials/v2/connectors/confluence.mdx | 3 + essentials/v2/connectors/contentful.mdx | 3 + essentials/v2/connectors/crossbeam.mdx | 33 -- essentials/v2/connectors/datadog.mdx | 4 + essentials/v2/connectors/discord.mdx | 3 + essentials/v2/connectors/dropbox.mdx | 3 + essentials/v2/connectors/dynamics.mdx | 33 -- essentials/v2/connectors/eloqua.mdx | 32 -- essentials/v2/connectors/figma.mdx | 3 + essentials/v2/connectors/fireflies.mdx | 3 + essentials/v2/connectors/freshdesk.mdx | 3 + essentials/v2/connectors/ga4.mdx | 38 -- essentials/v2/connectors/github.mdx | 4 + essentials/v2/connectors/gitlab.mdx | 3 + essentials/v2/connectors/gmail.mdx | 3 + essentials/v2/connectors/gong.mdx | 4 + essentials/v2/connectors/google-calendar.mdx | 3 + essentials/v2/connectors/google-drive.mdx | 3 + .../v2/connectors/google-search-console.mdx | 3 + essentials/v2/connectors/google-sheets.mdx | 31 -- essentials/v2/connectors/googleads.mdx | 3 + essentials/v2/connectors/gorgias.mdx | 31 -- essentials/v2/connectors/granola.mdx | 3 + essentials/v2/connectors/greenhouse.mdx | 3 + essentials/v2/connectors/guru.mdx | 4 + essentials/v2/connectors/helpscout.mdx | 3 + essentials/v2/connectors/hubspot.mdx | 3 + essentials/v2/connectors/intercom.mdx | 3 + essentials/v2/connectors/iterable.mdx | 32 -- essentials/v2/connectors/jira.mdx | 3 + essentials/v2/connectors/kustomer.mdx | 31 -- essentials/v2/connectors/launchdarkly.mdx | 4 + essentials/v2/connectors/linear.mdx | 3 + essentials/v2/connectors/linkedin-ads.mdx | 37 -- essentials/v2/connectors/loom.mdx | 3 + essentials/v2/connectors/mailchimp.mdx | 3 + essentials/v2/connectors/marketo.mdx | 32 -- essentials/v2/connectors/microsoft-teams.mdx | 3 + essentials/v2/connectors/mixpanel.mdx | 3 + essentials/v2/connectors/monday.mdx | 3 + essentials/v2/connectors/ms-graph.mdx | 42 --- essentials/v2/connectors/netsuite.mdx | 33 -- essentials/v2/connectors/nextcloud.mdx | 30 -- essentials/v2/connectors/notion.mdx | 4 + essentials/v2/connectors/okta.mdx | 3 + essentials/v2/connectors/outlook.mdx | 3 + essentials/v2/connectors/outreach.mdx | 33 -- essentials/v2/connectors/pagerduty.mdx | 3 + essentials/v2/connectors/pendo.mdx | 44 --- essentials/v2/connectors/pipedrive.mdx | 4 + essentials/v2/connectors/posthog.mdx | 3 + essentials/v2/connectors/quickbooks.mdx | 3 + essentials/v2/connectors/ringcentral.mdx | 31 -- essentials/v2/connectors/salesforce.mdx | 33 -- essentials/v2/connectors/segment.mdx | 34 -- essentials/v2/connectors/sendgrid.mdx | 3 + essentials/v2/connectors/sentry.mdx | 4 + essentials/v2/connectors/servicenow.mdx | 3 + essentials/v2/connectors/sharepoint.mdx | 3 + essentials/v2/connectors/shortcut.mdx | 3 + essentials/v2/connectors/slack.mdx | 3 + essentials/v2/connectors/smartsheet.mdx | 4 + essentials/v2/connectors/stripe.mdx | 3 + essentials/v2/connectors/supabase.mdx | 3 + essentials/v2/connectors/surveymonkey.mdx | 3 + essentials/v2/connectors/tableau.mdx | 43 --- essentials/v2/connectors/trello.mdx | 30 -- essentials/v2/connectors/twilio.mdx | 3 + essentials/v2/connectors/twitter.mdx | 4 + essentials/v2/connectors/typeform.mdx | 4 + essentials/v2/connectors/uservoice.mdx | 31 -- essentials/v2/connectors/workday-raas.mdx | 31 -- essentials/v2/connectors/wrike.mdx | 3 + essentials/v2/connectors/xero.mdx | 3 + essentials/v2/connectors/zendesk.mdx | 4 + essentials/v2/connectors/zoho-crm.mdx | 3 + essentials/v2/connectors/zoom.mdx | 3 + essentials/v2/connectors/zuora.mdx | 33 -- images/connectors/airtable.svg | 1 + images/connectors/asana.svg | 1 + images/connectors/attio-dark.svg | 4 + images/connectors/attio-light.svg | 4 + images/connectors/avoma.svg | 14 + images/connectors/bamboohr.svg | 1 + images/connectors/bigquery.svg | 7 + images/connectors/bookstack.svg | 1 + images/connectors/calendly.svg | 1 + images/connectors/clickup.svg | 14 + images/connectors/coda.svg | 1 + images/connectors/confluence.svg | 1 + images/connectors/contentful.svg | 1 + images/connectors/datadog-dark.svg | 3 + images/connectors/datadog-light.svg | 3 + images/connectors/discord.svg | 4 + images/connectors/dropbox.svg | 1 + images/connectors/figma.svg | 1 + images/connectors/fireflies.svg | 87 +++++ images/connectors/freshdesk.svg | 1 + images/connectors/github-dark.svg | 8 + images/connectors/github-light.svg | 8 + images/connectors/gitlab.svg | 1 + images/connectors/gmail.svg | 1 + images/connectors/gong-dark.svg | 3 + images/connectors/gong-light.svg | 3 + images/connectors/google-calendar.svg | 13 + images/connectors/google-drive.svg | 11 + images/connectors/google-search-console.svg | 1 + images/connectors/googleads.svg | 8 + images/connectors/granola.svg | 11 + images/connectors/greenhouse.svg | 1 + images/connectors/guru-dark.svg | 6 + images/connectors/guru-light.svg | 6 + images/connectors/helpscout.svg | 1 + images/connectors/hubspot.svg | 1 + images/connectors/intercom.svg | 1 + images/connectors/jira.svg | 1 + images/connectors/launchdarkly-dark.svg | 3 + images/connectors/launchdarkly-light.svg | 3 + images/connectors/linear.svg | 1 + images/connectors/loom.svg | 1 + images/connectors/mailchimp.svg | 1 + images/connectors/microsoft-teams.svg | 22 ++ images/connectors/mixpanel.svg | 1 + images/connectors/monday.svg | 1 + images/connectors/notion-dark.svg | 6 + images/connectors/notion-light.svg | 6 + images/connectors/okta.svg | 1 + images/connectors/outlook.svg | 35 ++ images/connectors/pagerduty.svg | 1 + images/connectors/pipedrive-dark.svg | 3 + images/connectors/pipedrive-light.svg | 3 + images/connectors/posthog.svg | 1 + images/connectors/quickbooks.svg | 1 + images/connectors/sendgrid.svg | 1 + images/connectors/sentry-dark.svg | 3 + images/connectors/sentry-light.svg | 3 + images/connectors/servicenow.svg | 1 + images/connectors/sharepoint.svg | 33 ++ images/connectors/shortcut.svg | 1 + images/connectors/slack.svg | 1 + images/connectors/smartsheet-dark.svg | 3 + images/connectors/smartsheet-light.svg | 3 + images/connectors/stripe.svg | 1 + images/connectors/supabase.svg | 5 + images/connectors/surveymonkey.svg | 1 + images/connectors/twilio.svg | 1 + images/connectors/twitter-dark.svg | 3 + images/connectors/twitter-light.svg | 3 + images/connectors/typeform-dark.svg | 3 + images/connectors/typeform-light.svg | 3 + images/connectors/wrike.svg | 1 + images/connectors/xero.svg | 1 + images/connectors/zendesk-dark.svg | 3 + images/connectors/zendesk-light.svg | 3 + images/connectors/zoho-crm.svg | 1 + images/connectors/zoom.svg | 1 + scripts/generate_connector_pages.py | 118 +++++- scripts/production_providers.json | 354 ++++++++++++++++++ scripts/test_connector_pages.py | 86 ++++- style.css | 28 ++ 178 files changed, 1401 insertions(+), 1152 deletions(-) delete mode 100644 essentials/v2/connectors/affinity.mdx delete mode 100644 essentials/v2/connectors/amplitude.mdx delete mode 100644 essentials/v2/connectors/box.mdx delete mode 100644 essentials/v2/connectors/chargebee.mdx delete mode 100644 essentials/v2/connectors/codat.mdx delete mode 100644 essentials/v2/connectors/crossbeam.mdx delete mode 100644 essentials/v2/connectors/dynamics.mdx delete mode 100644 essentials/v2/connectors/eloqua.mdx delete mode 100644 essentials/v2/connectors/ga4.mdx delete mode 100644 essentials/v2/connectors/google-sheets.mdx delete mode 100644 essentials/v2/connectors/gorgias.mdx delete mode 100644 essentials/v2/connectors/iterable.mdx delete mode 100644 essentials/v2/connectors/kustomer.mdx delete mode 100644 essentials/v2/connectors/linkedin-ads.mdx delete mode 100644 essentials/v2/connectors/marketo.mdx delete mode 100644 essentials/v2/connectors/ms-graph.mdx delete mode 100644 essentials/v2/connectors/netsuite.mdx delete mode 100644 essentials/v2/connectors/nextcloud.mdx delete mode 100644 essentials/v2/connectors/outreach.mdx delete mode 100644 essentials/v2/connectors/pendo.mdx delete mode 100644 essentials/v2/connectors/ringcentral.mdx delete mode 100644 essentials/v2/connectors/salesforce.mdx delete mode 100644 essentials/v2/connectors/segment.mdx delete mode 100644 essentials/v2/connectors/tableau.mdx delete mode 100644 essentials/v2/connectors/trello.mdx delete mode 100644 essentials/v2/connectors/uservoice.mdx delete mode 100644 essentials/v2/connectors/workday-raas.mdx delete mode 100644 essentials/v2/connectors/zuora.mdx create mode 100644 images/connectors/airtable.svg create mode 100644 images/connectors/asana.svg create mode 100644 images/connectors/attio-dark.svg create mode 100644 images/connectors/attio-light.svg create mode 100644 images/connectors/avoma.svg create mode 100644 images/connectors/bamboohr.svg create mode 100644 images/connectors/bigquery.svg create mode 100644 images/connectors/bookstack.svg create mode 100644 images/connectors/calendly.svg create mode 100644 images/connectors/clickup.svg create mode 100644 images/connectors/coda.svg create mode 100644 images/connectors/confluence.svg create mode 100644 images/connectors/contentful.svg create mode 100644 images/connectors/datadog-dark.svg create mode 100644 images/connectors/datadog-light.svg create mode 100644 images/connectors/discord.svg create mode 100644 images/connectors/dropbox.svg create mode 100644 images/connectors/figma.svg create mode 100644 images/connectors/fireflies.svg create mode 100644 images/connectors/freshdesk.svg create mode 100644 images/connectors/github-dark.svg create mode 100644 images/connectors/github-light.svg create mode 100644 images/connectors/gitlab.svg create mode 100644 images/connectors/gmail.svg create mode 100644 images/connectors/gong-dark.svg create mode 100644 images/connectors/gong-light.svg create mode 100644 images/connectors/google-calendar.svg create mode 100644 images/connectors/google-drive.svg create mode 100644 images/connectors/google-search-console.svg create mode 100644 images/connectors/googleads.svg create mode 100644 images/connectors/granola.svg create mode 100644 images/connectors/greenhouse.svg create mode 100644 images/connectors/guru-dark.svg create mode 100644 images/connectors/guru-light.svg create mode 100644 images/connectors/helpscout.svg create mode 100644 images/connectors/hubspot.svg create mode 100644 images/connectors/intercom.svg create mode 100644 images/connectors/jira.svg create mode 100644 images/connectors/launchdarkly-dark.svg create mode 100644 images/connectors/launchdarkly-light.svg create mode 100644 images/connectors/linear.svg create mode 100644 images/connectors/loom.svg create mode 100644 images/connectors/mailchimp.svg create mode 100644 images/connectors/microsoft-teams.svg create mode 100644 images/connectors/mixpanel.svg create mode 100644 images/connectors/monday.svg create mode 100644 images/connectors/notion-dark.svg create mode 100644 images/connectors/notion-light.svg create mode 100644 images/connectors/okta.svg create mode 100644 images/connectors/outlook.svg create mode 100644 images/connectors/pagerduty.svg create mode 100644 images/connectors/pipedrive-dark.svg create mode 100644 images/connectors/pipedrive-light.svg create mode 100644 images/connectors/posthog.svg create mode 100644 images/connectors/quickbooks.svg create mode 100644 images/connectors/sendgrid.svg create mode 100644 images/connectors/sentry-dark.svg create mode 100644 images/connectors/sentry-light.svg create mode 100644 images/connectors/servicenow.svg create mode 100644 images/connectors/sharepoint.svg create mode 100644 images/connectors/shortcut.svg create mode 100644 images/connectors/slack.svg create mode 100644 images/connectors/smartsheet-dark.svg create mode 100644 images/connectors/smartsheet-light.svg create mode 100644 images/connectors/stripe.svg create mode 100644 images/connectors/supabase.svg create mode 100644 images/connectors/surveymonkey.svg create mode 100644 images/connectors/twilio.svg create mode 100644 images/connectors/twitter-dark.svg create mode 100644 images/connectors/twitter-light.svg create mode 100644 images/connectors/typeform-dark.svg create mode 100644 images/connectors/typeform-light.svg create mode 100644 images/connectors/wrike.svg create mode 100644 images/connectors/xero.svg create mode 100644 images/connectors/zendesk-dark.svg create mode 100644 images/connectors/zendesk-light.svg create mode 100644 images/connectors/zoho-crm.svg create mode 100644 images/connectors/zoom.svg create mode 100644 scripts/production_providers.json diff --git a/.gitignore b/.gitignore index cfeaf18d..1a3e75f1 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ node_modules __pycache__/ /scripts/* !/scripts/connector_capabilities.json +!/scripts/production_providers.json !/scripts/generate_connector_pages.py !/scripts/test_connector_pages.py .nvmrc diff --git a/docs.json b/docs.json index 6d85068b..96ecf6f2 100644 --- a/docs.json +++ b/docs.json @@ -89,104 +89,116 @@ "public": true, "pages": [ "essentials/v2/connector-providers", - "essentials/v2/connectors/affinity", - "essentials/v2/connectors/airtable", - "essentials/v2/connectors/amplitude", - "essentials/v2/connectors/asana", - "essentials/v2/connectors/attio", - "essentials/v2/connectors/avoma", - "essentials/v2/connectors/bamboohr", - "essentials/v2/connectors/bigquery", - "essentials/v2/connectors/bookstack", - "essentials/v2/connectors/box", - "essentials/v2/connectors/calendly", - "essentials/v2/connectors/chargebee", - "essentials/v2/connectors/clickup", - "essentials/v2/connectors/codat", - "essentials/v2/connectors/confluence", - "essentials/v2/connectors/contentful", - "essentials/v2/connectors/copper", - "essentials/v2/connectors/crossbeam", - "essentials/v2/connectors/datadog", - "essentials/v2/connectors/discord", - "essentials/v2/connectors/dropbox", - "essentials/v2/connectors/eloqua", - "essentials/v2/connectors/figma", - "essentials/v2/connectors/fireflies", - "essentials/v2/connectors/freshdesk", - "essentials/v2/connectors/github", - "essentials/v2/connectors/gitlab", - "essentials/v2/connectors/gmail", - "essentials/v2/connectors/gong", - "essentials/v2/connectors/googleads", - "essentials/v2/connectors/ga4", - "essentials/v2/connectors/google-calendar", - "essentials/v2/connectors/google-drive", - "essentials/v2/connectors/google-search-console", - "essentials/v2/connectors/google-sheets", - "essentials/v2/connectors/gorgias", - "essentials/v2/connectors/granola", - "essentials/v2/connectors/greenhouse", - "essentials/v2/connectors/guru", - "essentials/v2/connectors/helpscout", - "essentials/v2/connectors/hubspot", - "essentials/v2/connectors/intercom", - "essentials/v2/connectors/iterable", - "essentials/v2/connectors/jira", - "essentials/v2/connectors/klaviyo", - "essentials/v2/connectors/kustomer", - "essentials/v2/connectors/launchdarkly", - "essentials/v2/connectors/lever", - "essentials/v2/connectors/linear", - "essentials/v2/connectors/linkedin-ads", - "essentials/v2/connectors/loom", - "essentials/v2/connectors/mailchimp", - "essentials/v2/connectors/marketo", - "essentials/v2/connectors/dynamics", - "essentials/v2/connectors/microsoft-teams", - "essentials/v2/connectors/ms-graph", - "essentials/v2/connectors/mixpanel", - "essentials/v2/connectors/monday", - "essentials/v2/connectors/netsuite", - "essentials/v2/connectors/nextcloud", - "essentials/v2/connectors/notion", - "essentials/v2/connectors/okta", - "essentials/v2/connectors/outlook", - "essentials/v2/connectors/outreach", - "essentials/v2/connectors/pagerduty", - "essentials/v2/connectors/pardot", - "essentials/v2/connectors/pendo", - "essentials/v2/connectors/pipedrive", - "essentials/v2/connectors/posthog", - "essentials/v2/connectors/quickbooks", - "essentials/v2/connectors/recurly", - "essentials/v2/connectors/ringcentral", - "essentials/v2/connectors/salesforce", - "essentials/v2/connectors/segment", - "essentials/v2/connectors/sendgrid", - "essentials/v2/connectors/sentry", - "essentials/v2/connectors/servicenow", - "essentials/v2/connectors/sharepoint", - "essentials/v2/connectors/shortcut", - "essentials/v2/connectors/slack", - "essentials/v2/connectors/smartsheet", - "essentials/v2/connectors/stripe", - "essentials/v2/connectors/supabase", - "essentials/v2/connectors/coda", - "essentials/v2/connectors/surveymonkey", - "essentials/v2/connectors/tableau", - "essentials/v2/connectors/trello", - "essentials/v2/connectors/twilio", - "essentials/v2/connectors/twitter", - "essentials/v2/connectors/typeform", - "essentials/v2/connectors/uservoice", - "essentials/v2/connectors/workday-raas", - "essentials/v2/connectors/wrike", - "essentials/v2/connectors/xero", - "essentials/v2/connectors/zendesk", - "essentials/v2/connectors/zoho-crm", - "essentials/v2/connectors/zoom", - "essentials/v2/connectors/zuora" + { + "group": "CRM & support", + "pages": [ + "essentials/v2/connectors/attio", + "essentials/v2/connectors/copper", + "essentials/v2/connectors/freshdesk", + "essentials/v2/connectors/gong", + "essentials/v2/connectors/helpscout", + "essentials/v2/connectors/hubspot", + "essentials/v2/connectors/intercom", + "essentials/v2/connectors/pipedrive", + "essentials/v2/connectors/servicenow", + "essentials/v2/connectors/zendesk", + "essentials/v2/connectors/zoho-crm" + ] + }, + { + "group": "Docs & files", + "pages": [ + "essentials/v2/connectors/airtable", + "essentials/v2/connectors/bookstack", + "essentials/v2/connectors/confluence", + "essentials/v2/connectors/contentful", + "essentials/v2/connectors/dropbox", + "essentials/v2/connectors/figma", + "essentials/v2/connectors/google-drive", + "essentials/v2/connectors/guru", + "essentials/v2/connectors/notion", + "essentials/v2/connectors/sharepoint", + "essentials/v2/connectors/coda" + ] + }, + { + "group": "Engineering", + "pages": [ + "essentials/v2/connectors/datadog", + "essentials/v2/connectors/github", + "essentials/v2/connectors/gitlab", + "essentials/v2/connectors/launchdarkly", + "essentials/v2/connectors/okta", + "essentials/v2/connectors/pagerduty", + "essentials/v2/connectors/sentry", + "essentials/v2/connectors/supabase" + ] + }, + { + "group": "HR & finance", + "pages": [ + "essentials/v2/connectors/bamboohr", + "essentials/v2/connectors/greenhouse", + "essentials/v2/connectors/lever", + "essentials/v2/connectors/quickbooks", + "essentials/v2/connectors/recurly", + "essentials/v2/connectors/stripe", + "essentials/v2/connectors/xero" + ] + }, + { + "group": "Marketing & analytics", + "pages": [ + "essentials/v2/connectors/bigquery", + "essentials/v2/connectors/googleads", + "essentials/v2/connectors/google-search-console", + "essentials/v2/connectors/klaviyo", + "essentials/v2/connectors/mailchimp", + "essentials/v2/connectors/mixpanel", + "essentials/v2/connectors/pardot", + "essentials/v2/connectors/posthog", + "essentials/v2/connectors/surveymonkey", + "essentials/v2/connectors/typeform" + ] + }, + { + "group": "Meetings & calendar", + "pages": [ + "essentials/v2/connectors/avoma", + "essentials/v2/connectors/calendly", + "essentials/v2/connectors/fireflies", + "essentials/v2/connectors/google-calendar", + "essentials/v2/connectors/granola", + "essentials/v2/connectors/loom", + "essentials/v2/connectors/zoom" + ] + }, + { + "group": "Messaging & email", + "pages": [ + "essentials/v2/connectors/discord", + "essentials/v2/connectors/gmail", + "essentials/v2/connectors/microsoft-teams", + "essentials/v2/connectors/outlook", + "essentials/v2/connectors/sendgrid", + "essentials/v2/connectors/slack", + "essentials/v2/connectors/twilio", + "essentials/v2/connectors/twitter" + ] + }, + { + "group": "Project management", + "pages": [ + "essentials/v2/connectors/asana", + "essentials/v2/connectors/clickup", + "essentials/v2/connectors/jira", + "essentials/v2/connectors/linear", + "essentials/v2/connectors/monday", + "essentials/v2/connectors/shortcut", + "essentials/v2/connectors/smartsheet", + "essentials/v2/connectors/wrike" + ] + } ] }, { diff --git a/essentials/v2/connector-providers.mdx b/essentials/v2/connector-providers.mdx index 2401ea81..193a2f02 100644 --- a/essentials/v2/connector-providers.mdx +++ b/essentials/v2/connector-providers.mdx @@ -1,110 +1,120 @@ --- title: "Connector providers" +sidebarTitle: "All connectors" description: "See what each connector indexes before you connect an account." --- Choose a provider to see the indexed object types and any provider-specific setup steps. These pages describe content capabilities; availability and credentials come from your deployment's [provider catalog](/api-reference/v2/endpoint/list-connector-providers). -| Provider | Indexed object types (examples) | -| --- | --- | -| [Affinity](/essentials/v2/connectors/affinity) | `list_entries`, `notes` | -| [Airtable](/essentials/v2/connectors/airtable) | See provider page | -| [Amplitude](/essentials/v2/connectors/amplitude) | `events` | -| [Asana](/essentials/v2/connectors/asana) | `tasks`, `subtasks`, `stories`, and more | -| [attio](/essentials/v2/connectors/attio) | `records`, `list_entries`, `notes`, and more | -| [Avoma](/essentials/v2/connectors/avoma) | `meetings`, `scorecard_evaluations` | -| [BambooHR](/essentials/v2/connectors/bamboohr) | `employees`, `time_off_requests`, `whos_out` | -| [BigQuery](/essentials/v2/connectors/bigquery) | See provider page | -| [BookStack](/essentials/v2/connectors/bookstack) | `books`, `pages`, `chapters` | -| [Box](/essentials/v2/connectors/box) | `folder_items` | -| [Calendly](/essentials/v2/connectors/calendly) | `scheduled_events` | -| [Chargebee](/essentials/v2/connectors/chargebee) | `invoices`, `customers`, `subscriptions`, and more | -| [ClickUp](/essentials/v2/connectors/clickup) | `team`, `task`, `task_comment` | -| [Codat](/essentials/v2/connectors/codat) | `invoices`, `customers`, `bills`, and more | -| [Confluence](/essentials/v2/connectors/confluence) | `content`, `attachments` | -| [Contentful](/essentials/v2/connectors/contentful) | `entries`, `tasks` | -| [Copper](/essentials/v2/connectors/copper) | `opportunities`, `leads`, `tasks`, and more | -| [Crossbeam](/essentials/v2/connectors/crossbeam) | `account`, `lead`, `partner_account`, and more | -| [Datadog](/essentials/v2/connectors/datadog) | `aggregate_logs`, `metric_response_time`, `slo_history_us_prod`, and more | -| [Discord](/essentials/v2/connectors/discord) | `messages` | -| [Dropbox](/essentials/v2/connectors/dropbox) | `files` | -| [eloqua](/essentials/v2/connectors/eloqua) | `campaigns`, `emails`, `forms` | -| [Figma](/essentials/v2/connectors/figma) | `files` | -| [Fireflies](/essentials/v2/connectors/fireflies) | `transcripts` | -| [Freshdesk](/essentials/v2/connectors/freshdesk) | `tickets`, `conversations` | -| [GitHub](/essentials/v2/connectors/github) | `issues`, `issue_comments` | -| [GitLab](/essentials/v2/connectors/gitlab) | `issues`, `merge_requests`, `issue_notes`, and more | -| [Gmail](/essentials/v2/connectors/gmail) | `messages` | -| [Gong](/essentials/v2/connectors/gong) | `calls`, `answered_scorecards`, `library_calls` | -| [Google Ads](/essentials/v2/connectors/googleads) | `accessible_customers`, `customer_hierarchy`, `customer`, and more | -| [Google Analytics](/essentials/v2/connectors/ga4) | `website_overview`, `traffic_sources`, `locations`, and more | -| [Google Calendar](/essentials/v2/connectors/google-calendar) | `events` | -| [Google Drive](/essentials/v2/connectors/google-drive) | `files` | -| [Google Search Console](/essentials/v2/connectors/google-search-console) | `performance_report_query`, `performance_report_page`, `performance_report_date`, and more | -| [Google Sheets](/essentials/v2/connectors/google-sheets) | `spreadsheet_metadata`, `sheet_data` | -| [Gorgias](/essentials/v2/connectors/gorgias) | `tickets`, `messages` | -| [Granola](/essentials/v2/connectors/granola) | `notes` | -| [Greenhouse](/essentials/v2/connectors/greenhouse) | `candidates`, `applications`, `jobs`, and more | -| [Guru](/essentials/v2/connectors/guru) | `cards` | -| [Help Scout](/essentials/v2/connectors/helpscout) | `conversations`, `conversation_threads` | -| [HubSpot](/essentials/v2/connectors/hubspot) | `deals`, `tickets`, `contacts`, and more | -| [Intercom](/essentials/v2/connectors/intercom) | `conversations`, `conversation_parts`, `articles`, and more | -| [Iterable](/essentials/v2/connectors/iterable) | `campaigns`, `lists`, `templates` | -| [Jira](/essentials/v2/connectors/jira) | `issues`, `issue_comments`, `issue_worklogs` | -| [Klaviyo](/essentials/v2/connectors/klaviyo) | `campaigns`, `flows`, `lists`, and more | -| [Kustomer](/essentials/v2/connectors/kustomer) | `conversations`, `messages` | -| [LaunchDarkly](/essentials/v2/connectors/launchdarkly) | `feature_flags`, `audit_log`, `segments`, and more | -| [Lever](/essentials/v2/connectors/lever) | `opportunities`, `candidates`, `postings`, and more | -| [Linear](/essentials/v2/connectors/linear) | `Issues` | -| [LinkedIn Ads](/essentials/v2/connectors/linkedin-ads) | `accounts`, `account_users`, `ad_analytics_by_campaign`, and more | -| [Loom](/essentials/v2/connectors/loom) | `videos` | -| [Mailchimp](/essentials/v2/connectors/mailchimp) | `campaigns`, `lists`, `automations` | -| [Marketo](/essentials/v2/connectors/marketo) | `campaigns`, `programs`, `lists` | -| [Microsoft Dynamics 365](/essentials/v2/connectors/dynamics) | `accounts`, `contacts`, `leads`, and more | -| [Microsoft Teams](/essentials/v2/connectors/microsoft-teams) | `channel_messages`, `chat_messages` | -| [Microsoft Teams & Outlook](/essentials/v2/connectors/ms-graph) | `channel_messages`, `chat_messages`, `mail_messages` | -| [Mixpanel](/essentials/v2/connectors/mixpanel) | `export`, `funnels`, `revenue`, and more | -| [Monday.com](/essentials/v2/connectors/monday) | `items`, `assets` | -| [NetSuite](/essentials/v2/connectors/netsuite) | `Invoice`, `Customer`, `Accounts`, and more | -| [Nextcloud](/essentials/v2/connectors/nextcloud) | `files` | -| [Notion](/essentials/v2/connectors/notion) | `pages` | -| [Okta](/essentials/v2/connectors/okta) | `users`, `groups`, `applications`, and more | -| [Outlook](/essentials/v2/connectors/outlook) | `mail_messages` | -| [Outreach](/essentials/v2/connectors/outreach) | `opportunities`, `prospects`, `accounts`, and more | -| [PagerDuty](/essentials/v2/connectors/pagerduty) | `incidents`, `schedules`, `escalation_policies` | -| [Pardot](/essentials/v2/connectors/pardot) | `opportunities`, `prospects`, `prospect_accounts` | -| [Pendo](/essentials/v2/connectors/pendo) | `accounts`, `events`, `feature_events`, and more | -| [Pipedrive](/essentials/v2/connectors/pipedrive) | `deals`, `persons`, `organizations`, and more | -| [PostHog](/essentials/v2/connectors/posthog) | `persons`, `cohorts`, `feature_flags`, and more | -| [QuickBooks](/essentials/v2/connectors/quickbooks) | `Invoice`, `Customer`, `Payment`, and more | -| [Recurly](/essentials/v2/connectors/recurly) | `invoices`, `accounts`, `subscriptions`, and more | -| [RingCentral](/essentials/v2/connectors/ringcentral) | `messages`, `call_logs` | -| [Salesforce](/essentials/v2/connectors/salesforce) | `Opportunity`, `Lead`, `Account`, and more | -| [Segment](/essentials/v2/connectors/segment) | `source_api_calls_daily`, `workspace_api_calls_daily`, `events_volume_daily`, and more | -| [SendGrid](/essentials/v2/connectors/sendgrid) | `single_sends`, `lists`, `segments`, and more | -| [Sentry](/essentials/v2/connectors/sentry) | `issues`, `events`, `projects`, and more | -| [ServiceNow](/essentials/v2/connectors/servicenow) | `kb_knowledge`, `sc_cat_item`, `incident`, and more | -| [SharePoint](/essentials/v2/connectors/sharepoint) | `pages`, `driveItems`, `listItems` | -| [Shortcut](/essentials/v2/connectors/shortcut) | `stories`, `project_stories`, `epics` | -| [Slack](/essentials/v2/connectors/slack) | `conversation_history` | -| [Smartsheet](/essentials/v2/connectors/smartsheet) | See provider page | -| [Stripe](/essentials/v2/connectors/stripe) | `invoices`, `customers`, `subscriptions`, and more | -| [Supabase](/essentials/v2/connectors/supabase) | See provider page | -| [Superhuman](/essentials/v2/connectors/coda) | `docs`, `pages`, `page_contents`, and more | -| [SurveyMonkey](/essentials/v2/connectors/surveymonkey) | `survey_details`, `simplified_responses` | -| [Tableau](/essentials/v2/connectors/tableau) | `datasources`, `groups`, `projects`, and more | -| [Trello](/essentials/v2/connectors/trello) | `cards` | -| [Twilio](/essentials/v2/connectors/twilio) | `messages`, `calls`, `conferences`, and more | -| [twitter](/essentials/v2/connectors/twitter) | `posts`, `dms` | -| [Typeform](/essentials/v2/connectors/typeform) | `forms`, `responses`, `partial_responses` | -| [uservoice](/essentials/v2/connectors/uservoice) | `suggestions`, `comments` | -| [Workday RaaS](/essentials/v2/connectors/workday-raas) | `workers`, `employees` | -| [Wrike](/essentials/v2/connectors/wrike) | `tasks`, `comments` | -| [Xero](/essentials/v2/connectors/xero) | `invoices`, `contacts`, `payments`, and more | -| [Zendesk](/essentials/v2/connectors/zendesk) | `tickets`, `ticket_comments`, `satisfaction_ratings` | -| [Zoho CRM](/essentials/v2/connectors/zoho-crm) | `deals`, `leads`, `contacts`, and more | -| [Zoom](/essentials/v2/connectors/zoom) | `cloud_recordings`, `meetings`, `webinars` | -| [zuora](/essentials/v2/connectors/zuora) | `Invoice`, `Account`, `Subscription`, and more | +## CRM & support + + + } href="/essentials/v2/connectors/attio" horizontal /> + + + } href="/essentials/v2/connectors/gong" horizontal /> + + + + } href="/essentials/v2/connectors/pipedrive" horizontal /> + + } href="/essentials/v2/connectors/zendesk" horizontal /> + + + +## Docs & files + + + + + + + + + + } href="/essentials/v2/connectors/guru" horizontal /> + } href="/essentials/v2/connectors/notion" horizontal /> + + + + +## Engineering + + + } href="/essentials/v2/connectors/datadog" horizontal /> + } href="/essentials/v2/connectors/github" horizontal /> + + } href="/essentials/v2/connectors/launchdarkly" horizontal /> + + + } href="/essentials/v2/connectors/sentry" horizontal /> + + + +## HR & finance + + + + + + + + + + + +## Marketing & analytics + + + + + + + + + + + + } href="/essentials/v2/connectors/typeform" horizontal /> + + +## Meetings & calendar + + + + + + + + + + + +## Messaging & email + + + + + + + + + + } href="/essentials/v2/connectors/twitter" horizontal /> + + +## Project management + + + + + + + + + } href="/essentials/v2/connectors/smartsheet" horizontal /> + + ## Related diff --git a/essentials/v2/connectors/affinity.mdx b/essentials/v2/connectors/affinity.mdx deleted file mode 100644 index 31c65b8a..00000000 --- a/essentials/v2/connectors/affinity.mdx +++ /dev/null @@ -1,31 +0,0 @@ ---- -title: "Affinity" -description: "What HydraDB syncs from Affinity, and how to connect it." ---- - -Use the Affinity connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `list_entries` -- `notes` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `affinity` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/airtable.mdx b/essentials/v2/connectors/airtable.mdx index 6aa5227e..4d85fbe1 100644 --- a/essentials/v2/connectors/airtable.mdx +++ b/essentials/v2/connectors/airtable.mdx @@ -1,8 +1,11 @@ --- title: "Airtable" description: "What HydraDB syncs from Airtable, and how to connect it." +icon: "/images/connectors/airtable.svg" --- +Airtable logo + Use the Airtable connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/amplitude.mdx b/essentials/v2/connectors/amplitude.mdx deleted file mode 100644 index 95167920..00000000 --- a/essentials/v2/connectors/amplitude.mdx +++ /dev/null @@ -1,30 +0,0 @@ ---- -title: "Amplitude" -description: "What HydraDB syncs from Amplitude, and how to connect it." ---- - -Use the Amplitude connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `events` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `amplitude` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/asana.mdx b/essentials/v2/connectors/asana.mdx index 75048ec2..e6d55658 100644 --- a/essentials/v2/connectors/asana.mdx +++ b/essentials/v2/connectors/asana.mdx @@ -1,8 +1,11 @@ --- title: "Asana" description: "What HydraDB syncs from Asana, and how to connect it." +icon: "/images/connectors/asana.svg" --- +Asana logo + Use the Asana connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/attio.mdx b/essentials/v2/connectors/attio.mdx index a114ef9a..a8f52875 100644 --- a/essentials/v2/connectors/attio.mdx +++ b/essentials/v2/connectors/attio.mdx @@ -1,8 +1,12 @@ --- title: "attio" description: "What HydraDB syncs from attio, and how to connect it." +icon: "/images/connectors/attio-light.svg" --- +attio logo +attio logo + Use the attio connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/avoma.mdx b/essentials/v2/connectors/avoma.mdx index 91c9e585..be027f66 100644 --- a/essentials/v2/connectors/avoma.mdx +++ b/essentials/v2/connectors/avoma.mdx @@ -1,8 +1,11 @@ --- title: "Avoma" description: "What HydraDB syncs from Avoma, and how to connect it." +icon: "/images/connectors/avoma.svg" --- +Avoma logo + Use the Avoma connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/bamboohr.mdx b/essentials/v2/connectors/bamboohr.mdx index 04667049..bb1e7257 100644 --- a/essentials/v2/connectors/bamboohr.mdx +++ b/essentials/v2/connectors/bamboohr.mdx @@ -1,8 +1,11 @@ --- title: "BambooHR" description: "What HydraDB syncs from BambooHR, and how to connect it." +icon: "/images/connectors/bamboohr.svg" --- +BambooHR logo + Use the BambooHR connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/bigquery.mdx b/essentials/v2/connectors/bigquery.mdx index 5408c329..8906444a 100644 --- a/essentials/v2/connectors/bigquery.mdx +++ b/essentials/v2/connectors/bigquery.mdx @@ -1,8 +1,11 @@ --- title: "BigQuery" description: "What HydraDB syncs from BigQuery, and how to connect it." +icon: "/images/connectors/bigquery.svg" --- +BigQuery logo + Use the BigQuery connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/bookstack.mdx b/essentials/v2/connectors/bookstack.mdx index d095f91e..735f6f15 100644 --- a/essentials/v2/connectors/bookstack.mdx +++ b/essentials/v2/connectors/bookstack.mdx @@ -1,8 +1,11 @@ --- title: "BookStack" description: "What HydraDB syncs from BookStack, and how to connect it." +icon: "/images/connectors/bookstack.svg" --- +BookStack logo + Use the BookStack connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/box.mdx b/essentials/v2/connectors/box.mdx deleted file mode 100644 index eedc7204..00000000 --- a/essentials/v2/connectors/box.mdx +++ /dev/null @@ -1,30 +0,0 @@ ---- -title: "Box" -description: "What HydraDB syncs from Box, and how to connect it." ---- - -Use the Box connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `folder_items` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `box` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/calendly.mdx b/essentials/v2/connectors/calendly.mdx index ba2b0828..50e03f83 100644 --- a/essentials/v2/connectors/calendly.mdx +++ b/essentials/v2/connectors/calendly.mdx @@ -1,8 +1,11 @@ --- title: "Calendly" description: "What HydraDB syncs from Calendly, and how to connect it." +icon: "/images/connectors/calendly.svg" --- +Calendly logo + Use the Calendly connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/chargebee.mdx b/essentials/v2/connectors/chargebee.mdx deleted file mode 100644 index f46e834d..00000000 --- a/essentials/v2/connectors/chargebee.mdx +++ /dev/null @@ -1,33 +0,0 @@ ---- -title: "Chargebee" -description: "What HydraDB syncs from Chargebee, and how to connect it." ---- - -Use the Chargebee connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `invoices` -- `customers` -- `subscriptions` -- `transactions` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `chargebee` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/clickup.mdx b/essentials/v2/connectors/clickup.mdx index ff7b95bc..a3d8b500 100644 --- a/essentials/v2/connectors/clickup.mdx +++ b/essentials/v2/connectors/clickup.mdx @@ -1,8 +1,11 @@ --- title: "ClickUp" description: "What HydraDB syncs from ClickUp, and how to connect it." +icon: "/images/connectors/clickup.svg" --- +ClickUp logo + Use the ClickUp connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/coda.mdx b/essentials/v2/connectors/coda.mdx index 2557702e..f77fcd7a 100644 --- a/essentials/v2/connectors/coda.mdx +++ b/essentials/v2/connectors/coda.mdx @@ -1,8 +1,11 @@ --- title: "Superhuman" description: "What HydraDB syncs from Superhuman, and how to connect it." +icon: "/images/connectors/coda.svg" --- +Superhuman logo + Use the Superhuman connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/codat.mdx b/essentials/v2/connectors/codat.mdx deleted file mode 100644 index 836c41fe..00000000 --- a/essentials/v2/connectors/codat.mdx +++ /dev/null @@ -1,33 +0,0 @@ ---- -title: "Codat" -description: "What HydraDB syncs from Codat, and how to connect it." ---- - -Use the Codat connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `invoices` -- `customers` -- `bills` -- `payments` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `codat` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/confluence.mdx b/essentials/v2/connectors/confluence.mdx index ecef478e..6acb8717 100644 --- a/essentials/v2/connectors/confluence.mdx +++ b/essentials/v2/connectors/confluence.mdx @@ -1,8 +1,11 @@ --- title: "Confluence" description: "What HydraDB syncs from Confluence, and how to connect it." +icon: "/images/connectors/confluence.svg" --- +Confluence logo + Use the Confluence connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/contentful.mdx b/essentials/v2/connectors/contentful.mdx index 9690c71a..8cd0c520 100644 --- a/essentials/v2/connectors/contentful.mdx +++ b/essentials/v2/connectors/contentful.mdx @@ -1,8 +1,11 @@ --- title: "Contentful" description: "What HydraDB syncs from Contentful, and how to connect it." +icon: "/images/connectors/contentful.svg" --- +Contentful logo + Use the Contentful connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/crossbeam.mdx b/essentials/v2/connectors/crossbeam.mdx deleted file mode 100644 index 32f3e1f1..00000000 --- a/essentials/v2/connectors/crossbeam.mdx +++ /dev/null @@ -1,33 +0,0 @@ ---- -title: "Crossbeam" -description: "What HydraDB syncs from Crossbeam, and how to connect it." ---- - -Use the Crossbeam connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `account` -- `lead` -- `partner_account` -- `partner_lead` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `crossbeam` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/datadog.mdx b/essentials/v2/connectors/datadog.mdx index 038fedac..28fb183b 100644 --- a/essentials/v2/connectors/datadog.mdx +++ b/essentials/v2/connectors/datadog.mdx @@ -1,8 +1,12 @@ --- title: "Datadog" description: "What HydraDB syncs from Datadog, and how to connect it." +icon: "/images/connectors/datadog-light.svg" --- +Datadog logo +Datadog logo + Use the Datadog connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/discord.mdx b/essentials/v2/connectors/discord.mdx index c06fbb4e..6c521264 100644 --- a/essentials/v2/connectors/discord.mdx +++ b/essentials/v2/connectors/discord.mdx @@ -1,8 +1,11 @@ --- title: "Discord" description: "What HydraDB syncs from Discord, and how to connect it." +icon: "/images/connectors/discord.svg" --- +Discord logo + Use the Discord connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/dropbox.mdx b/essentials/v2/connectors/dropbox.mdx index 7ea06c29..8aa74032 100644 --- a/essentials/v2/connectors/dropbox.mdx +++ b/essentials/v2/connectors/dropbox.mdx @@ -1,8 +1,11 @@ --- title: "Dropbox" description: "What HydraDB syncs from Dropbox, and how to connect it." +icon: "/images/connectors/dropbox.svg" --- +Dropbox logo + Use the Dropbox connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/dynamics.mdx b/essentials/v2/connectors/dynamics.mdx deleted file mode 100644 index 97b23eca..00000000 --- a/essentials/v2/connectors/dynamics.mdx +++ /dev/null @@ -1,33 +0,0 @@ ---- -title: "Microsoft Dynamics 365" -description: "What HydraDB syncs from Microsoft Dynamics 365, and how to connect it." ---- - -Use the Microsoft Dynamics 365 connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `accounts` -- `contacts` -- `leads` -- `opportunities` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `dynamics` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/eloqua.mdx b/essentials/v2/connectors/eloqua.mdx deleted file mode 100644 index 2e9c44c1..00000000 --- a/essentials/v2/connectors/eloqua.mdx +++ /dev/null @@ -1,32 +0,0 @@ ---- -title: "eloqua" -description: "What HydraDB syncs from eloqua, and how to connect it." ---- - -Use the eloqua connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `campaigns` -- `emails` -- `forms` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `eloqua` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/figma.mdx b/essentials/v2/connectors/figma.mdx index 6d07c538..9f96371c 100644 --- a/essentials/v2/connectors/figma.mdx +++ b/essentials/v2/connectors/figma.mdx @@ -1,8 +1,11 @@ --- title: "Figma" description: "What HydraDB syncs from Figma, and how to connect it." +icon: "/images/connectors/figma.svg" --- +Figma logo + Use the Figma connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/fireflies.mdx b/essentials/v2/connectors/fireflies.mdx index df55d884..3b0aa90b 100644 --- a/essentials/v2/connectors/fireflies.mdx +++ b/essentials/v2/connectors/fireflies.mdx @@ -1,8 +1,11 @@ --- title: "Fireflies" description: "What HydraDB syncs from Fireflies, and how to connect it." +icon: "/images/connectors/fireflies.svg" --- +Fireflies logo + Use the Fireflies connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/freshdesk.mdx b/essentials/v2/connectors/freshdesk.mdx index f96c91d2..fd90cc82 100644 --- a/essentials/v2/connectors/freshdesk.mdx +++ b/essentials/v2/connectors/freshdesk.mdx @@ -1,8 +1,11 @@ --- title: "Freshdesk" description: "What HydraDB syncs from Freshdesk, and how to connect it." +icon: "/images/connectors/freshdesk.svg" --- +Freshdesk logo + Use the Freshdesk connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/ga4.mdx b/essentials/v2/connectors/ga4.mdx deleted file mode 100644 index 2119da1d..00000000 --- a/essentials/v2/connectors/ga4.mdx +++ /dev/null @@ -1,38 +0,0 @@ ---- -title: "Google Analytics" -description: "What HydraDB syncs from Google Analytics, and how to connect it." ---- - -Use the Google Analytics connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `website_overview` -- `traffic_sources` -- `locations` -- `four_weekly_active_users` -- `weekly_active_users` -- `daily_active_users` -- `devices` -- `transactions` -- `pages` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `ga4` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/github.mdx b/essentials/v2/connectors/github.mdx index 6163e917..77442f4d 100644 --- a/essentials/v2/connectors/github.mdx +++ b/essentials/v2/connectors/github.mdx @@ -1,8 +1,12 @@ --- title: "GitHub" description: "What HydraDB syncs from GitHub, and how to connect it." +icon: "/images/connectors/github-light.svg" --- +GitHub logo +GitHub logo + Use the GitHub connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/gitlab.mdx b/essentials/v2/connectors/gitlab.mdx index 41082e9c..33067a57 100644 --- a/essentials/v2/connectors/gitlab.mdx +++ b/essentials/v2/connectors/gitlab.mdx @@ -1,8 +1,11 @@ --- title: "GitLab" description: "What HydraDB syncs from GitLab, and how to connect it." +icon: "/images/connectors/gitlab.svg" --- +GitLab logo + Use the GitLab connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/gmail.mdx b/essentials/v2/connectors/gmail.mdx index 01e3c06d..d4b6cd48 100644 --- a/essentials/v2/connectors/gmail.mdx +++ b/essentials/v2/connectors/gmail.mdx @@ -1,8 +1,11 @@ --- title: "Gmail" description: "What HydraDB syncs from Gmail, and how to connect it." +icon: "/images/connectors/gmail.svg" --- +Gmail logo + Use the Gmail connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/gong.mdx b/essentials/v2/connectors/gong.mdx index 4742e829..e489293f 100644 --- a/essentials/v2/connectors/gong.mdx +++ b/essentials/v2/connectors/gong.mdx @@ -1,8 +1,12 @@ --- title: "Gong" description: "What HydraDB syncs from Gong, and how to connect it." +icon: "/images/connectors/gong-light.svg" --- +Gong logo +Gong logo + Use the Gong connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/google-calendar.mdx b/essentials/v2/connectors/google-calendar.mdx index 54946e91..49349a54 100644 --- a/essentials/v2/connectors/google-calendar.mdx +++ b/essentials/v2/connectors/google-calendar.mdx @@ -1,8 +1,11 @@ --- title: "Google Calendar" description: "What HydraDB syncs from Google Calendar, and how to connect it." +icon: "/images/connectors/google-calendar.svg" --- +Google Calendar logo + Use the Google Calendar connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/google-drive.mdx b/essentials/v2/connectors/google-drive.mdx index e0609c02..8bdb2faa 100644 --- a/essentials/v2/connectors/google-drive.mdx +++ b/essentials/v2/connectors/google-drive.mdx @@ -1,8 +1,11 @@ --- title: "Google Drive" description: "What HydraDB syncs from Google Drive, and how to connect it." +icon: "/images/connectors/google-drive.svg" --- +Google Drive logo + Use the Google Drive connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/google-search-console.mdx b/essentials/v2/connectors/google-search-console.mdx index ba024c78..7629f64f 100644 --- a/essentials/v2/connectors/google-search-console.mdx +++ b/essentials/v2/connectors/google-search-console.mdx @@ -1,8 +1,11 @@ --- title: "Google Search Console" description: "What HydraDB syncs from Google Search Console, and how to connect it." +icon: "/images/connectors/google-search-console.svg" --- +Google Search Console logo + Use the Google Search Console connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/google-sheets.mdx b/essentials/v2/connectors/google-sheets.mdx deleted file mode 100644 index 2df1f90d..00000000 --- a/essentials/v2/connectors/google-sheets.mdx +++ /dev/null @@ -1,31 +0,0 @@ ---- -title: "Google Sheets" -description: "What HydraDB syncs from Google Sheets, and how to connect it." ---- - -Use the Google Sheets connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `spreadsheet_metadata` -- `sheet_data` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `google_sheets` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/googleads.mdx b/essentials/v2/connectors/googleads.mdx index 20f68824..7230c44b 100644 --- a/essentials/v2/connectors/googleads.mdx +++ b/essentials/v2/connectors/googleads.mdx @@ -1,8 +1,11 @@ --- title: "Google Ads" description: "What HydraDB syncs from Google Ads, and how to connect it." +icon: "/images/connectors/googleads.svg" --- +Google Ads logo + Use the Google Ads connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/gorgias.mdx b/essentials/v2/connectors/gorgias.mdx deleted file mode 100644 index 8c126eb3..00000000 --- a/essentials/v2/connectors/gorgias.mdx +++ /dev/null @@ -1,31 +0,0 @@ ---- -title: "Gorgias" -description: "What HydraDB syncs from Gorgias, and how to connect it." ---- - -Use the Gorgias connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `tickets` -- `messages` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `gorgias` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/granola.mdx b/essentials/v2/connectors/granola.mdx index 05474f15..eef5ed37 100644 --- a/essentials/v2/connectors/granola.mdx +++ b/essentials/v2/connectors/granola.mdx @@ -1,8 +1,11 @@ --- title: "Granola" description: "What HydraDB syncs from Granola, and how to connect it." +icon: "/images/connectors/granola.svg" --- +Granola logo + Use the Granola connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/greenhouse.mdx b/essentials/v2/connectors/greenhouse.mdx index 8be4db17..75ec0305 100644 --- a/essentials/v2/connectors/greenhouse.mdx +++ b/essentials/v2/connectors/greenhouse.mdx @@ -1,8 +1,11 @@ --- title: "Greenhouse" description: "What HydraDB syncs from Greenhouse, and how to connect it." +icon: "/images/connectors/greenhouse.svg" --- +Greenhouse logo + Use the Greenhouse connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/guru.mdx b/essentials/v2/connectors/guru.mdx index c4628525..1e75faf7 100644 --- a/essentials/v2/connectors/guru.mdx +++ b/essentials/v2/connectors/guru.mdx @@ -1,8 +1,12 @@ --- title: "Guru" description: "What HydraDB syncs from Guru, and how to connect it." +icon: "/images/connectors/guru-light.svg" --- +Guru logo +Guru logo + Use the Guru connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/helpscout.mdx b/essentials/v2/connectors/helpscout.mdx index 7739db00..165b73be 100644 --- a/essentials/v2/connectors/helpscout.mdx +++ b/essentials/v2/connectors/helpscout.mdx @@ -1,8 +1,11 @@ --- title: "Help Scout" description: "What HydraDB syncs from Help Scout, and how to connect it." +icon: "/images/connectors/helpscout.svg" --- +Help Scout logo + Use the Help Scout connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/hubspot.mdx b/essentials/v2/connectors/hubspot.mdx index a1a5a601..8efc07d8 100644 --- a/essentials/v2/connectors/hubspot.mdx +++ b/essentials/v2/connectors/hubspot.mdx @@ -1,8 +1,11 @@ --- title: "HubSpot" description: "What HydraDB syncs from HubSpot, and how to connect it." +icon: "/images/connectors/hubspot.svg" --- +HubSpot logo + Use the HubSpot connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/intercom.mdx b/essentials/v2/connectors/intercom.mdx index 85a99be6..87711bae 100644 --- a/essentials/v2/connectors/intercom.mdx +++ b/essentials/v2/connectors/intercom.mdx @@ -1,8 +1,11 @@ --- title: "Intercom" description: "What HydraDB syncs from Intercom, and how to connect it." +icon: "/images/connectors/intercom.svg" --- +Intercom logo + Use the Intercom connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/iterable.mdx b/essentials/v2/connectors/iterable.mdx deleted file mode 100644 index ec2643cb..00000000 --- a/essentials/v2/connectors/iterable.mdx +++ /dev/null @@ -1,32 +0,0 @@ ---- -title: "Iterable" -description: "What HydraDB syncs from Iterable, and how to connect it." ---- - -Use the Iterable connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `campaigns` -- `lists` -- `templates` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `iterable` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/jira.mdx b/essentials/v2/connectors/jira.mdx index 68b9603c..0f45886d 100644 --- a/essentials/v2/connectors/jira.mdx +++ b/essentials/v2/connectors/jira.mdx @@ -1,8 +1,11 @@ --- title: "Jira" description: "What HydraDB syncs from Jira, and how to connect it." +icon: "/images/connectors/jira.svg" --- +Jira logo + Use the Jira connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/kustomer.mdx b/essentials/v2/connectors/kustomer.mdx deleted file mode 100644 index 321f9278..00000000 --- a/essentials/v2/connectors/kustomer.mdx +++ /dev/null @@ -1,31 +0,0 @@ ---- -title: "Kustomer" -description: "What HydraDB syncs from Kustomer, and how to connect it." ---- - -Use the Kustomer connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `conversations` -- `messages` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `kustomer` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/launchdarkly.mdx b/essentials/v2/connectors/launchdarkly.mdx index b09960b8..51dcd1a8 100644 --- a/essentials/v2/connectors/launchdarkly.mdx +++ b/essentials/v2/connectors/launchdarkly.mdx @@ -1,8 +1,12 @@ --- title: "LaunchDarkly" description: "What HydraDB syncs from LaunchDarkly, and how to connect it." +icon: "/images/connectors/launchdarkly-light.svg" --- +LaunchDarkly logo +LaunchDarkly logo + Use the LaunchDarkly connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/linear.mdx b/essentials/v2/connectors/linear.mdx index c4477ef9..8438cc6e 100644 --- a/essentials/v2/connectors/linear.mdx +++ b/essentials/v2/connectors/linear.mdx @@ -1,8 +1,11 @@ --- title: "Linear" description: "What HydraDB syncs from Linear, and how to connect it." +icon: "/images/connectors/linear.svg" --- +Linear logo + Use the Linear connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/linkedin-ads.mdx b/essentials/v2/connectors/linkedin-ads.mdx deleted file mode 100644 index 226277bd..00000000 --- a/essentials/v2/connectors/linkedin-ads.mdx +++ /dev/null @@ -1,37 +0,0 @@ ---- -title: "LinkedIn Ads" -description: "What HydraDB syncs from LinkedIn Ads, and how to connect it." ---- - -Use the LinkedIn Ads connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `accounts` -- `account_users` -- `ad_analytics_by_campaign` -- `ad_analytics_by_creative` -- `campaigns` -- `campaign_groups` -- `creatives` -- `video_ads` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `linkedin_ads` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/loom.mdx b/essentials/v2/connectors/loom.mdx index e55dd492..a78d7b91 100644 --- a/essentials/v2/connectors/loom.mdx +++ b/essentials/v2/connectors/loom.mdx @@ -1,8 +1,11 @@ --- title: "Loom" description: "What HydraDB syncs from Loom, and how to connect it." +icon: "/images/connectors/loom.svg" --- +Loom logo + Use the Loom connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/mailchimp.mdx b/essentials/v2/connectors/mailchimp.mdx index 5576b138..4ec86f94 100644 --- a/essentials/v2/connectors/mailchimp.mdx +++ b/essentials/v2/connectors/mailchimp.mdx @@ -1,8 +1,11 @@ --- title: "Mailchimp" description: "What HydraDB syncs from Mailchimp, and how to connect it." +icon: "/images/connectors/mailchimp.svg" --- +Mailchimp logo + Use the Mailchimp connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/marketo.mdx b/essentials/v2/connectors/marketo.mdx deleted file mode 100644 index 9a088499..00000000 --- a/essentials/v2/connectors/marketo.mdx +++ /dev/null @@ -1,32 +0,0 @@ ---- -title: "Marketo" -description: "What HydraDB syncs from Marketo, and how to connect it." ---- - -Use the Marketo connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `campaigns` -- `programs` -- `lists` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `marketo` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/microsoft-teams.mdx b/essentials/v2/connectors/microsoft-teams.mdx index 58919b43..69b59252 100644 --- a/essentials/v2/connectors/microsoft-teams.mdx +++ b/essentials/v2/connectors/microsoft-teams.mdx @@ -1,8 +1,11 @@ --- title: "Microsoft Teams" description: "What HydraDB syncs from Microsoft Teams, and how to connect it." +icon: "/images/connectors/microsoft-teams.svg" --- +Microsoft Teams logo + Use the Microsoft Teams connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/mixpanel.mdx b/essentials/v2/connectors/mixpanel.mdx index 0a0bdbce..90bf55c8 100644 --- a/essentials/v2/connectors/mixpanel.mdx +++ b/essentials/v2/connectors/mixpanel.mdx @@ -1,8 +1,11 @@ --- title: "Mixpanel" description: "What HydraDB syncs from Mixpanel, and how to connect it." +icon: "/images/connectors/mixpanel.svg" --- +Mixpanel logo + Use the Mixpanel connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/monday.mdx b/essentials/v2/connectors/monday.mdx index dc9368bc..4ef0f422 100644 --- a/essentials/v2/connectors/monday.mdx +++ b/essentials/v2/connectors/monday.mdx @@ -1,8 +1,11 @@ --- title: "Monday.com" description: "What HydraDB syncs from Monday.com, and how to connect it." +icon: "/images/connectors/monday.svg" --- +Monday.com logo + Use the Monday.com connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/ms-graph.mdx b/essentials/v2/connectors/ms-graph.mdx deleted file mode 100644 index aa17aa3a..00000000 --- a/essentials/v2/connectors/ms-graph.mdx +++ /dev/null @@ -1,42 +0,0 @@ ---- -title: "Microsoft Teams & Outlook" -description: "What HydraDB syncs from Microsoft Teams & Outlook, and how to connect it." ---- - -Use the Microsoft Teams & Outlook connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `channel_messages` -- `chat_messages` -- `mail_messages` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -1. Connect with an Azure AD app registration (app-only, client credentials): in the Azure portal open Microsoft Entra ID → App registrations → New registration (any name, no redirect URI). Copy the Directory (tenant) ID as tenant and the Application (client) ID as client_id, then under Certificates & secrets create a client secret and paste its Value (shown once) as client_secret. -2. Under API permissions → Add a permission → Microsoft Graph → Application permissions (not Delegated) add Team.ReadBasic.All, Channel.ReadBasic.All, ChannelMessage.Read.All, TeamMember.Read.All and ChannelMember.Read.All for Teams channels, User.ReadBasic.All plus Mail.Read for Outlook, and Chat.Read.All to offer people's Teams chats, then click Grant admin consent (a Global or Application Administrator). The connect step reads the token's roles and names any permission that is missing; a family whose permissions are absent simply does not appear in the picker. -3. Reading channel and chat messages with application permissions is a Microsoft Teams protected API: after consent, submit https://aka.ms/teamsgraph/requestaccess with the Application (client) ID and tenant ID (Microsoft usually answers within a week). Until it is approved every Teams sync fails with 403 even though the permission shows as granted; the picker and Outlook work regardless. -4. Pick the teams, the mailboxes and the people whose Teams chats to sync in the resource-selection step. A team syncs its standard channels (root posts and replies each become a message document, replies linked to their root); a mailbox syncs every message received in the history window outside Drafts, Junk Email, Deleted Items, Outbox and Conversation History, with text bodies and attachment names; a chat user syncs the 1:1, group and meeting chats they take part in. Chats are opted in per person on purpose: they are the most private surface Graph exposes. -5. Every message carries who may see it in Microsoft 365: the team's members for a standard channel, the channel's members (plus the teams it is shared with) for a private or shared channel, the participants for a chat, and the mailbox owner for mail. With Enforce ACL enabled for a provider reporting acl_supported: true, permission-aware search shows each message only to those people. A complete roster is authoritative; when Microsoft omits, truncates or refuses a roster, the message remains tenant-public under the current fail-open policy and carries a persistent rbac_warning instead of applying a partial allow-list. -6. Mail.Read grants the app every mailbox in the tenant. To limit it to the mailboxes you select, create an Exchange application access policy (New-ApplicationAccessPolicy -AppId `` -PolicyScopeGroupId `` -AccessRight RestrictAccess); a selected mailbox outside the policy fails the sync with a message naming the policy rather than syncing silently empty. Leave Mail.Read out entirely for a Teams-only connector. -7. Private and shared channels are skipped by default (Teams shows them only to their members); set include_private_channels to true to index them, restricted to their members. -8. Each sync reads only what changed: Graph orders a channel's posts by the last activity of the whole thread, so an old post that gets a new reply is picked up, and mail is filtered server-side on lastModifiedDateTime. Edits re-index the message. A message deleted in Teams, and mail moved to Deleted Items or Junk Email after it was indexed, is replaced by a hidden stub on the next sync; mail purged from Deleted Items leaves no trace until a full re-sync. -9. Rotate the client secret before it expires (Azure defaults to 6-24 months): an expired secret stops every sync with a message naming the fix. Pasting a new secret value re-enables the connector. - -Use provider `ms_graph` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/netsuite.mdx b/essentials/v2/connectors/netsuite.mdx deleted file mode 100644 index 0a0b5f5a..00000000 --- a/essentials/v2/connectors/netsuite.mdx +++ /dev/null @@ -1,33 +0,0 @@ ---- -title: "NetSuite" -description: "What HydraDB syncs from NetSuite, and how to connect it." ---- - -Use the NetSuite connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `Invoice` -- `Customer` -- `Accounts` -- `VendorBills` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `netsuite` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/nextcloud.mdx b/essentials/v2/connectors/nextcloud.mdx deleted file mode 100644 index 83fc7ea7..00000000 --- a/essentials/v2/connectors/nextcloud.mdx +++ /dev/null @@ -1,30 +0,0 @@ ---- -title: "Nextcloud" -description: "What HydraDB syncs from Nextcloud, and how to connect it." ---- - -Use the Nextcloud connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `files` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `nextcloud` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/notion.mdx b/essentials/v2/connectors/notion.mdx index d023119b..f54f823a 100644 --- a/essentials/v2/connectors/notion.mdx +++ b/essentials/v2/connectors/notion.mdx @@ -1,8 +1,12 @@ --- title: "Notion" description: "What HydraDB syncs from Notion, and how to connect it." +icon: "/images/connectors/notion-light.svg" --- +Notion logo +Notion logo + Use the Notion connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/okta.mdx b/essentials/v2/connectors/okta.mdx index 35fc35db..be967f37 100644 --- a/essentials/v2/connectors/okta.mdx +++ b/essentials/v2/connectors/okta.mdx @@ -1,8 +1,11 @@ --- title: "Okta" description: "What HydraDB syncs from Okta, and how to connect it." +icon: "/images/connectors/okta.svg" --- +Okta logo + Use the Okta connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/outlook.mdx b/essentials/v2/connectors/outlook.mdx index ed7d1dd3..6de9de33 100644 --- a/essentials/v2/connectors/outlook.mdx +++ b/essentials/v2/connectors/outlook.mdx @@ -1,8 +1,11 @@ --- title: "Outlook" description: "What HydraDB syncs from Outlook, and how to connect it." +icon: "/images/connectors/outlook.svg" --- +Outlook logo + Use the Outlook connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/outreach.mdx b/essentials/v2/connectors/outreach.mdx deleted file mode 100644 index 7875649f..00000000 --- a/essentials/v2/connectors/outreach.mdx +++ /dev/null @@ -1,33 +0,0 @@ ---- -title: "Outreach" -description: "What HydraDB syncs from Outreach, and how to connect it." ---- - -Use the Outreach connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `opportunities` -- `prospects` -- `accounts` -- `tasks` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `outreach` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/pagerduty.mdx b/essentials/v2/connectors/pagerduty.mdx index b2e73ac7..3717a88e 100644 --- a/essentials/v2/connectors/pagerduty.mdx +++ b/essentials/v2/connectors/pagerduty.mdx @@ -1,8 +1,11 @@ --- title: "PagerDuty" description: "What HydraDB syncs from PagerDuty, and how to connect it." +icon: "/images/connectors/pagerduty.svg" --- +PagerDuty logo + Use the PagerDuty connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/pendo.mdx b/essentials/v2/connectors/pendo.mdx deleted file mode 100644 index d5604b8d..00000000 --- a/essentials/v2/connectors/pendo.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: "Pendo" -description: "What HydraDB syncs from Pendo, and how to connect it." ---- - -Use the Pendo connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `accounts` -- `events` -- `feature_events` -- `features` -- `guide_events` -- `guides` -- `metadata_accounts` -- `metadata_visitors` -- `page_events` -- `pages` -- `poll_events` -- `track_events` -- `track_types` -- `visitor_history` -- `visitors` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `pendo` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/pipedrive.mdx b/essentials/v2/connectors/pipedrive.mdx index 7b48b1a3..a841f002 100644 --- a/essentials/v2/connectors/pipedrive.mdx +++ b/essentials/v2/connectors/pipedrive.mdx @@ -1,8 +1,12 @@ --- title: "Pipedrive" description: "What HydraDB syncs from Pipedrive, and how to connect it." +icon: "/images/connectors/pipedrive-light.svg" --- +Pipedrive logo +Pipedrive logo + Use the Pipedrive connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/posthog.mdx b/essentials/v2/connectors/posthog.mdx index b451df9e..cc4ec956 100644 --- a/essentials/v2/connectors/posthog.mdx +++ b/essentials/v2/connectors/posthog.mdx @@ -1,8 +1,11 @@ --- title: "PostHog" description: "What HydraDB syncs from PostHog, and how to connect it." +icon: "/images/connectors/posthog.svg" --- +PostHog logo + Use the PostHog connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/quickbooks.mdx b/essentials/v2/connectors/quickbooks.mdx index 3d30b4b9..6057c12c 100644 --- a/essentials/v2/connectors/quickbooks.mdx +++ b/essentials/v2/connectors/quickbooks.mdx @@ -1,8 +1,11 @@ --- title: "QuickBooks" description: "What HydraDB syncs from QuickBooks, and how to connect it." +icon: "/images/connectors/quickbooks.svg" --- +QuickBooks logo + Use the QuickBooks connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/ringcentral.mdx b/essentials/v2/connectors/ringcentral.mdx deleted file mode 100644 index 87d97843..00000000 --- a/essentials/v2/connectors/ringcentral.mdx +++ /dev/null @@ -1,31 +0,0 @@ ---- -title: "RingCentral" -description: "What HydraDB syncs from RingCentral, and how to connect it." ---- - -Use the RingCentral connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `messages` -- `call_logs` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `ringcentral` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/salesforce.mdx b/essentials/v2/connectors/salesforce.mdx deleted file mode 100644 index 37de88cd..00000000 --- a/essentials/v2/connectors/salesforce.mdx +++ /dev/null @@ -1,33 +0,0 @@ ---- -title: "Salesforce" -description: "What HydraDB syncs from Salesforce, and how to connect it." ---- - -Use the Salesforce connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `Opportunity` -- `Lead` -- `Account` -- `Contact` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `salesforce` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/segment.mdx b/essentials/v2/connectors/segment.mdx deleted file mode 100644 index 758dad22..00000000 --- a/essentials/v2/connectors/segment.mdx +++ /dev/null @@ -1,34 +0,0 @@ ---- -title: "Segment" -description: "What HydraDB syncs from Segment, and how to connect it." ---- - -Use the Segment connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `source_api_calls_daily` -- `workspace_api_calls_daily` -- `events_volume_daily` -- `source_mtu_usage_daily` -- `workspace_mtu_usage_daily` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `segment` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/sendgrid.mdx b/essentials/v2/connectors/sendgrid.mdx index 81bbd5e0..7873a396 100644 --- a/essentials/v2/connectors/sendgrid.mdx +++ b/essentials/v2/connectors/sendgrid.mdx @@ -1,8 +1,11 @@ --- title: "SendGrid" description: "What HydraDB syncs from SendGrid, and how to connect it." +icon: "/images/connectors/sendgrid.svg" --- +SendGrid logo + Use the SendGrid connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/sentry.mdx b/essentials/v2/connectors/sentry.mdx index 05c9f731..8f9e7280 100644 --- a/essentials/v2/connectors/sentry.mdx +++ b/essentials/v2/connectors/sentry.mdx @@ -1,8 +1,12 @@ --- title: "Sentry" description: "What HydraDB syncs from Sentry, and how to connect it." +icon: "/images/connectors/sentry-light.svg" --- +Sentry logo +Sentry logo + Use the Sentry connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/servicenow.mdx b/essentials/v2/connectors/servicenow.mdx index 5baa9fa3..6913daf7 100644 --- a/essentials/v2/connectors/servicenow.mdx +++ b/essentials/v2/connectors/servicenow.mdx @@ -1,8 +1,11 @@ --- title: "ServiceNow" description: "What HydraDB syncs from ServiceNow, and how to connect it." +icon: "/images/connectors/servicenow.svg" --- +ServiceNow logo + Use the ServiceNow connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/sharepoint.mdx b/essentials/v2/connectors/sharepoint.mdx index ab6b5155..fe83cf64 100644 --- a/essentials/v2/connectors/sharepoint.mdx +++ b/essentials/v2/connectors/sharepoint.mdx @@ -1,8 +1,11 @@ --- title: "SharePoint" description: "What HydraDB syncs from SharePoint, and how to connect it." +icon: "/images/connectors/sharepoint.svg" --- +SharePoint logo + Use the SharePoint connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/shortcut.mdx b/essentials/v2/connectors/shortcut.mdx index b0d32346..d8217ef2 100644 --- a/essentials/v2/connectors/shortcut.mdx +++ b/essentials/v2/connectors/shortcut.mdx @@ -1,8 +1,11 @@ --- title: "Shortcut" description: "What HydraDB syncs from Shortcut, and how to connect it." +icon: "/images/connectors/shortcut.svg" --- +Shortcut logo + Use the Shortcut connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/slack.mdx b/essentials/v2/connectors/slack.mdx index 4b3b9182..724b06d1 100644 --- a/essentials/v2/connectors/slack.mdx +++ b/essentials/v2/connectors/slack.mdx @@ -1,8 +1,11 @@ --- title: "Slack" description: "What HydraDB syncs from Slack, and how to connect it." +icon: "/images/connectors/slack.svg" --- +Slack logo + Use the Slack connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/smartsheet.mdx b/essentials/v2/connectors/smartsheet.mdx index fadecc8c..bd8d66a9 100644 --- a/essentials/v2/connectors/smartsheet.mdx +++ b/essentials/v2/connectors/smartsheet.mdx @@ -1,8 +1,12 @@ --- title: "Smartsheet" description: "What HydraDB syncs from Smartsheet, and how to connect it." +icon: "/images/connectors/smartsheet-light.svg" --- +Smartsheet logo +Smartsheet logo + Use the Smartsheet connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/stripe.mdx b/essentials/v2/connectors/stripe.mdx index a020b861..249805d9 100644 --- a/essentials/v2/connectors/stripe.mdx +++ b/essentials/v2/connectors/stripe.mdx @@ -1,8 +1,11 @@ --- title: "Stripe" description: "What HydraDB syncs from Stripe, and how to connect it." +icon: "/images/connectors/stripe.svg" --- +Stripe logo + Use the Stripe connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/supabase.mdx b/essentials/v2/connectors/supabase.mdx index c6c15418..b1f9ccf0 100644 --- a/essentials/v2/connectors/supabase.mdx +++ b/essentials/v2/connectors/supabase.mdx @@ -1,8 +1,11 @@ --- title: "Supabase" description: "What HydraDB syncs from Supabase, and how to connect it." +icon: "/images/connectors/supabase.svg" --- +Supabase logo + Use the Supabase connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/surveymonkey.mdx b/essentials/v2/connectors/surveymonkey.mdx index c3b6c0bb..8187745d 100644 --- a/essentials/v2/connectors/surveymonkey.mdx +++ b/essentials/v2/connectors/surveymonkey.mdx @@ -1,8 +1,11 @@ --- title: "SurveyMonkey" description: "What HydraDB syncs from SurveyMonkey, and how to connect it." +icon: "/images/connectors/surveymonkey.svg" --- +SurveyMonkey logo + Use the SurveyMonkey connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/tableau.mdx b/essentials/v2/connectors/tableau.mdx deleted file mode 100644 index 2cb27f31..00000000 --- a/essentials/v2/connectors/tableau.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: "Tableau" -description: "What HydraDB syncs from Tableau, and how to connect it." ---- - -Use the Tableau connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `datasources` -- `groups` -- `projects` -- `schedules` -- `tasks` -- `users` -- `workbooks` -- `workbooks_metadata` -- `published_datasources_metadata` -- `embedded_datasources_metadata` -- `custom_sql_locations_metadata` -- `users_metadata` -- `calculated_fields_metadata` -- `column_lineage_metadata` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `tableau` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/trello.mdx b/essentials/v2/connectors/trello.mdx deleted file mode 100644 index e1e1f56d..00000000 --- a/essentials/v2/connectors/trello.mdx +++ /dev/null @@ -1,30 +0,0 @@ ---- -title: "Trello" -description: "What HydraDB syncs from Trello, and how to connect it." ---- - -Use the Trello connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `cards` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `trello` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/twilio.mdx b/essentials/v2/connectors/twilio.mdx index 0171a12e..76c024e8 100644 --- a/essentials/v2/connectors/twilio.mdx +++ b/essentials/v2/connectors/twilio.mdx @@ -1,8 +1,11 @@ --- title: "Twilio" description: "What HydraDB syncs from Twilio, and how to connect it." +icon: "/images/connectors/twilio.svg" --- +Twilio logo + Use the Twilio connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/twitter.mdx b/essentials/v2/connectors/twitter.mdx index 87fdc6a2..3aabf593 100644 --- a/essentials/v2/connectors/twitter.mdx +++ b/essentials/v2/connectors/twitter.mdx @@ -1,8 +1,12 @@ --- title: "twitter" description: "What HydraDB syncs from twitter, and how to connect it." +icon: "/images/connectors/twitter-light.svg" --- +twitter logo +twitter logo + Use the twitter connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/typeform.mdx b/essentials/v2/connectors/typeform.mdx index 851cce65..70d5d771 100644 --- a/essentials/v2/connectors/typeform.mdx +++ b/essentials/v2/connectors/typeform.mdx @@ -1,8 +1,12 @@ --- title: "Typeform" description: "What HydraDB syncs from Typeform, and how to connect it." +icon: "/images/connectors/typeform-light.svg" --- +Typeform logo +Typeform logo + Use the Typeform connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/uservoice.mdx b/essentials/v2/connectors/uservoice.mdx deleted file mode 100644 index 7608b77b..00000000 --- a/essentials/v2/connectors/uservoice.mdx +++ /dev/null @@ -1,31 +0,0 @@ ---- -title: "uservoice" -description: "What HydraDB syncs from uservoice, and how to connect it." ---- - -Use the uservoice connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `suggestions` -- `comments` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `uservoice` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/workday-raas.mdx b/essentials/v2/connectors/workday-raas.mdx deleted file mode 100644 index 6726d2c4..00000000 --- a/essentials/v2/connectors/workday-raas.mdx +++ /dev/null @@ -1,31 +0,0 @@ ---- -title: "Workday RaaS" -description: "What HydraDB syncs from Workday RaaS, and how to connect it." ---- - -Use the Workday RaaS connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `workers` -- `employees` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `workday_raas` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/essentials/v2/connectors/wrike.mdx b/essentials/v2/connectors/wrike.mdx index 0ebde53a..b250b124 100644 --- a/essentials/v2/connectors/wrike.mdx +++ b/essentials/v2/connectors/wrike.mdx @@ -1,8 +1,11 @@ --- title: "Wrike" description: "What HydraDB syncs from Wrike, and how to connect it." +icon: "/images/connectors/wrike.svg" --- +Wrike logo + Use the Wrike connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/xero.mdx b/essentials/v2/connectors/xero.mdx index 63f5e812..48b253d6 100644 --- a/essentials/v2/connectors/xero.mdx +++ b/essentials/v2/connectors/xero.mdx @@ -1,8 +1,11 @@ --- title: "Xero" description: "What HydraDB syncs from Xero, and how to connect it." +icon: "/images/connectors/xero.svg" --- +Xero logo + Use the Xero connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/zendesk.mdx b/essentials/v2/connectors/zendesk.mdx index c76503bb..36ead256 100644 --- a/essentials/v2/connectors/zendesk.mdx +++ b/essentials/v2/connectors/zendesk.mdx @@ -1,8 +1,12 @@ --- title: "Zendesk" description: "What HydraDB syncs from Zendesk, and how to connect it." +icon: "/images/connectors/zendesk-light.svg" --- +Zendesk logo +Zendesk logo + Use the Zendesk connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/zoho-crm.mdx b/essentials/v2/connectors/zoho-crm.mdx index af4f2a1a..ceb43291 100644 --- a/essentials/v2/connectors/zoho-crm.mdx +++ b/essentials/v2/connectors/zoho-crm.mdx @@ -1,8 +1,11 @@ --- title: "Zoho CRM" description: "What HydraDB syncs from Zoho CRM, and how to connect it." +icon: "/images/connectors/zoho-crm.svg" --- +Zoho CRM logo + Use the Zoho CRM connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/zoom.mdx b/essentials/v2/connectors/zoom.mdx index 82374e42..fc5e8171 100644 --- a/essentials/v2/connectors/zoom.mdx +++ b/essentials/v2/connectors/zoom.mdx @@ -1,8 +1,11 @@ --- title: "Zoom" description: "What HydraDB syncs from Zoom, and how to connect it." +icon: "/images/connectors/zoom.svg" --- +Zoom logo + Use the Zoom connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/zuora.mdx b/essentials/v2/connectors/zuora.mdx deleted file mode 100644 index b01d3681..00000000 --- a/essentials/v2/connectors/zuora.mdx +++ /dev/null @@ -1,33 +0,0 @@ ---- -title: "zuora" -description: "What HydraDB syncs from zuora, and how to connect it." ---- - -Use the zuora connector to bring the following content into HydraDB. - -## What syncs - -The provider description lists these indexed object types: - -- `Invoice` -- `Account` -- `Subscription` -- `Payment` - -## Connect - -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. - -Use provider `zuora` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. - -## Common mistakes - -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. - -## Related - -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings diff --git a/images/connectors/airtable.svg b/images/connectors/airtable.svg new file mode 100644 index 00000000..efa29771 --- /dev/null +++ b/images/connectors/airtable.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/asana.svg b/images/connectors/asana.svg new file mode 100644 index 00000000..c35dcc61 --- /dev/null +++ b/images/connectors/asana.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/attio-dark.svg b/images/connectors/attio-dark.svg new file mode 100644 index 00000000..a0c56b0b --- /dev/null +++ b/images/connectors/attio-dark.svg @@ -0,0 +1,4 @@ + + + + diff --git a/images/connectors/attio-light.svg b/images/connectors/attio-light.svg new file mode 100644 index 00000000..975b97b9 --- /dev/null +++ b/images/connectors/attio-light.svg @@ -0,0 +1,4 @@ + + + + diff --git a/images/connectors/avoma.svg b/images/connectors/avoma.svg new file mode 100644 index 00000000..96df5b3a --- /dev/null +++ b/images/connectors/avoma.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/images/connectors/bamboohr.svg b/images/connectors/bamboohr.svg new file mode 100644 index 00000000..8efbeb54 --- /dev/null +++ b/images/connectors/bamboohr.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/bigquery.svg b/images/connectors/bigquery.svg new file mode 100644 index 00000000..f75ed924 --- /dev/null +++ b/images/connectors/bigquery.svg @@ -0,0 +1,7 @@ + diff --git a/images/connectors/bookstack.svg b/images/connectors/bookstack.svg new file mode 100644 index 00000000..196cc83a --- /dev/null +++ b/images/connectors/bookstack.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/calendly.svg b/images/connectors/calendly.svg new file mode 100644 index 00000000..21ff2610 --- /dev/null +++ b/images/connectors/calendly.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/clickup.svg b/images/connectors/clickup.svg new file mode 100644 index 00000000..64f68a7f --- /dev/null +++ b/images/connectors/clickup.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/images/connectors/coda.svg b/images/connectors/coda.svg new file mode 100644 index 00000000..65165bac --- /dev/null +++ b/images/connectors/coda.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/confluence.svg b/images/connectors/confluence.svg new file mode 100644 index 00000000..10174897 --- /dev/null +++ b/images/connectors/confluence.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/contentful.svg b/images/connectors/contentful.svg new file mode 100644 index 00000000..e4931da4 --- /dev/null +++ b/images/connectors/contentful.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/datadog-dark.svg b/images/connectors/datadog-dark.svg new file mode 100644 index 00000000..3e70926c --- /dev/null +++ b/images/connectors/datadog-dark.svg @@ -0,0 +1,3 @@ + + + diff --git a/images/connectors/datadog-light.svg b/images/connectors/datadog-light.svg new file mode 100644 index 00000000..f1964bb0 --- /dev/null +++ b/images/connectors/datadog-light.svg @@ -0,0 +1,3 @@ + + + diff --git a/images/connectors/discord.svg b/images/connectors/discord.svg new file mode 100644 index 00000000..fc8fd719 --- /dev/null +++ b/images/connectors/discord.svg @@ -0,0 +1,4 @@ + + diff --git a/images/connectors/dropbox.svg b/images/connectors/dropbox.svg new file mode 100644 index 00000000..c4161d91 --- /dev/null +++ b/images/connectors/dropbox.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/figma.svg b/images/connectors/figma.svg new file mode 100644 index 00000000..8e0b7ba9 --- /dev/null +++ b/images/connectors/figma.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/fireflies.svg b/images/connectors/fireflies.svg new file mode 100644 index 00000000..3f888e15 --- /dev/null +++ b/images/connectors/fireflies.svg @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/images/connectors/freshdesk.svg b/images/connectors/freshdesk.svg new file mode 100644 index 00000000..f023a0a3 --- /dev/null +++ b/images/connectors/freshdesk.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/github-dark.svg b/images/connectors/github-dark.svg new file mode 100644 index 00000000..7da5d1a1 --- /dev/null +++ b/images/connectors/github-dark.svg @@ -0,0 +1,8 @@ + + + diff --git a/images/connectors/github-light.svg b/images/connectors/github-light.svg new file mode 100644 index 00000000..1e087fa8 --- /dev/null +++ b/images/connectors/github-light.svg @@ -0,0 +1,8 @@ + + + diff --git a/images/connectors/gitlab.svg b/images/connectors/gitlab.svg new file mode 100644 index 00000000..92ad3fb6 --- /dev/null +++ b/images/connectors/gitlab.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/gmail.svg b/images/connectors/gmail.svg new file mode 100644 index 00000000..e35766d1 --- /dev/null +++ b/images/connectors/gmail.svg @@ -0,0 +1 @@ + diff --git a/images/connectors/gong-dark.svg b/images/connectors/gong-dark.svg new file mode 100644 index 00000000..a08a532d --- /dev/null +++ b/images/connectors/gong-dark.svg @@ -0,0 +1,3 @@ + + + diff --git a/images/connectors/gong-light.svg b/images/connectors/gong-light.svg new file mode 100644 index 00000000..4383e631 --- /dev/null +++ b/images/connectors/gong-light.svg @@ -0,0 +1,3 @@ + + + diff --git a/images/connectors/google-calendar.svg b/images/connectors/google-calendar.svg new file mode 100644 index 00000000..68e3bac6 --- /dev/null +++ b/images/connectors/google-calendar.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/images/connectors/google-drive.svg b/images/connectors/google-drive.svg new file mode 100644 index 00000000..c49f3a75 --- /dev/null +++ b/images/connectors/google-drive.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/images/connectors/google-search-console.svg b/images/connectors/google-search-console.svg new file mode 100644 index 00000000..bbb7e04a --- /dev/null +++ b/images/connectors/google-search-console.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/googleads.svg b/images/connectors/googleads.svg new file mode 100644 index 00000000..a295244f --- /dev/null +++ b/images/connectors/googleads.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/images/connectors/granola.svg b/images/connectors/granola.svg new file mode 100644 index 00000000..e7d62b14 --- /dev/null +++ b/images/connectors/granola.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/images/connectors/greenhouse.svg b/images/connectors/greenhouse.svg new file mode 100644 index 00000000..ae43ef1f --- /dev/null +++ b/images/connectors/greenhouse.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/guru-dark.svg b/images/connectors/guru-dark.svg new file mode 100644 index 00000000..3dca41fe --- /dev/null +++ b/images/connectors/guru-dark.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/images/connectors/guru-light.svg b/images/connectors/guru-light.svg new file mode 100644 index 00000000..5d029e18 --- /dev/null +++ b/images/connectors/guru-light.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/images/connectors/helpscout.svg b/images/connectors/helpscout.svg new file mode 100644 index 00000000..43138175 --- /dev/null +++ b/images/connectors/helpscout.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/hubspot.svg b/images/connectors/hubspot.svg new file mode 100644 index 00000000..df68080c --- /dev/null +++ b/images/connectors/hubspot.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/intercom.svg b/images/connectors/intercom.svg new file mode 100644 index 00000000..1f3fe53f --- /dev/null +++ b/images/connectors/intercom.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/jira.svg b/images/connectors/jira.svg new file mode 100644 index 00000000..052ab326 --- /dev/null +++ b/images/connectors/jira.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/launchdarkly-dark.svg b/images/connectors/launchdarkly-dark.svg new file mode 100644 index 00000000..e1b96821 --- /dev/null +++ b/images/connectors/launchdarkly-dark.svg @@ -0,0 +1,3 @@ + + + diff --git a/images/connectors/launchdarkly-light.svg b/images/connectors/launchdarkly-light.svg new file mode 100644 index 00000000..b55edce8 --- /dev/null +++ b/images/connectors/launchdarkly-light.svg @@ -0,0 +1,3 @@ + + + diff --git a/images/connectors/linear.svg b/images/connectors/linear.svg new file mode 100644 index 00000000..eb3c91c1 --- /dev/null +++ b/images/connectors/linear.svg @@ -0,0 +1 @@ + diff --git a/images/connectors/loom.svg b/images/connectors/loom.svg new file mode 100644 index 00000000..5ec5e161 --- /dev/null +++ b/images/connectors/loom.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/mailchimp.svg b/images/connectors/mailchimp.svg new file mode 100644 index 00000000..f9a41fb9 --- /dev/null +++ b/images/connectors/mailchimp.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/microsoft-teams.svg b/images/connectors/microsoft-teams.svg new file mode 100644 index 00000000..3409e6cf --- /dev/null +++ b/images/connectors/microsoft-teams.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/images/connectors/mixpanel.svg b/images/connectors/mixpanel.svg new file mode 100644 index 00000000..755aa8c1 --- /dev/null +++ b/images/connectors/mixpanel.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/monday.svg b/images/connectors/monday.svg new file mode 100644 index 00000000..69782921 --- /dev/null +++ b/images/connectors/monday.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/notion-dark.svg b/images/connectors/notion-dark.svg new file mode 100644 index 00000000..e9f49f46 --- /dev/null +++ b/images/connectors/notion-dark.svg @@ -0,0 +1,6 @@ + + + diff --git a/images/connectors/notion-light.svg b/images/connectors/notion-light.svg new file mode 100644 index 00000000..5b25d277 --- /dev/null +++ b/images/connectors/notion-light.svg @@ -0,0 +1,6 @@ + + + diff --git a/images/connectors/okta.svg b/images/connectors/okta.svg new file mode 100644 index 00000000..5b0e1e59 --- /dev/null +++ b/images/connectors/okta.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/outlook.svg b/images/connectors/outlook.svg new file mode 100644 index 00000000..586f39ff --- /dev/null +++ b/images/connectors/outlook.svg @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/images/connectors/pagerduty.svg b/images/connectors/pagerduty.svg new file mode 100644 index 00000000..f8bfde7e --- /dev/null +++ b/images/connectors/pagerduty.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/pipedrive-dark.svg b/images/connectors/pipedrive-dark.svg new file mode 100644 index 00000000..181dff5a --- /dev/null +++ b/images/connectors/pipedrive-dark.svg @@ -0,0 +1,3 @@ + + + diff --git a/images/connectors/pipedrive-light.svg b/images/connectors/pipedrive-light.svg new file mode 100644 index 00000000..1d93583a --- /dev/null +++ b/images/connectors/pipedrive-light.svg @@ -0,0 +1,3 @@ + + + diff --git a/images/connectors/posthog.svg b/images/connectors/posthog.svg new file mode 100644 index 00000000..8a3fcab9 --- /dev/null +++ b/images/connectors/posthog.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/quickbooks.svg b/images/connectors/quickbooks.svg new file mode 100644 index 00000000..59ca6806 --- /dev/null +++ b/images/connectors/quickbooks.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/sendgrid.svg b/images/connectors/sendgrid.svg new file mode 100644 index 00000000..960b7757 --- /dev/null +++ b/images/connectors/sendgrid.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/sentry-dark.svg b/images/connectors/sentry-dark.svg new file mode 100644 index 00000000..e803c0cd --- /dev/null +++ b/images/connectors/sentry-dark.svg @@ -0,0 +1,3 @@ + + + diff --git a/images/connectors/sentry-light.svg b/images/connectors/sentry-light.svg new file mode 100644 index 00000000..b12156cc --- /dev/null +++ b/images/connectors/sentry-light.svg @@ -0,0 +1,3 @@ + + + diff --git a/images/connectors/servicenow.svg b/images/connectors/servicenow.svg new file mode 100644 index 00000000..b421fff3 --- /dev/null +++ b/images/connectors/servicenow.svg @@ -0,0 +1 @@ + diff --git a/images/connectors/sharepoint.svg b/images/connectors/sharepoint.svg new file mode 100644 index 00000000..4d454b98 --- /dev/null +++ b/images/connectors/sharepoint.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/images/connectors/shortcut.svg b/images/connectors/shortcut.svg new file mode 100644 index 00000000..58d454eb --- /dev/null +++ b/images/connectors/shortcut.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/slack.svg b/images/connectors/slack.svg new file mode 100644 index 00000000..468eceac --- /dev/null +++ b/images/connectors/slack.svg @@ -0,0 +1 @@ + diff --git a/images/connectors/smartsheet-dark.svg b/images/connectors/smartsheet-dark.svg new file mode 100644 index 00000000..268527f0 --- /dev/null +++ b/images/connectors/smartsheet-dark.svg @@ -0,0 +1,3 @@ + + + diff --git a/images/connectors/smartsheet-light.svg b/images/connectors/smartsheet-light.svg new file mode 100644 index 00000000..ac45fdb3 --- /dev/null +++ b/images/connectors/smartsheet-light.svg @@ -0,0 +1,3 @@ + + + diff --git a/images/connectors/stripe.svg b/images/connectors/stripe.svg new file mode 100644 index 00000000..afb8205f --- /dev/null +++ b/images/connectors/stripe.svg @@ -0,0 +1 @@ + diff --git a/images/connectors/supabase.svg b/images/connectors/supabase.svg new file mode 100644 index 00000000..4b765f7e --- /dev/null +++ b/images/connectors/supabase.svg @@ -0,0 +1,5 @@ + diff --git a/images/connectors/surveymonkey.svg b/images/connectors/surveymonkey.svg new file mode 100644 index 00000000..26484101 --- /dev/null +++ b/images/connectors/surveymonkey.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/twilio.svg b/images/connectors/twilio.svg new file mode 100644 index 00000000..4a0be064 --- /dev/null +++ b/images/connectors/twilio.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/twitter-dark.svg b/images/connectors/twitter-dark.svg new file mode 100644 index 00000000..067a791e --- /dev/null +++ b/images/connectors/twitter-dark.svg @@ -0,0 +1,3 @@ + + + diff --git a/images/connectors/twitter-light.svg b/images/connectors/twitter-light.svg new file mode 100644 index 00000000..a871dddd --- /dev/null +++ b/images/connectors/twitter-light.svg @@ -0,0 +1,3 @@ + + + diff --git a/images/connectors/typeform-dark.svg b/images/connectors/typeform-dark.svg new file mode 100644 index 00000000..aee90603 --- /dev/null +++ b/images/connectors/typeform-dark.svg @@ -0,0 +1,3 @@ + + + diff --git a/images/connectors/typeform-light.svg b/images/connectors/typeform-light.svg new file mode 100644 index 00000000..15f1f7cc --- /dev/null +++ b/images/connectors/typeform-light.svg @@ -0,0 +1,3 @@ + + + diff --git a/images/connectors/wrike.svg b/images/connectors/wrike.svg new file mode 100644 index 00000000..3f78b398 --- /dev/null +++ b/images/connectors/wrike.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/xero.svg b/images/connectors/xero.svg new file mode 100644 index 00000000..c68f8c10 --- /dev/null +++ b/images/connectors/xero.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/zendesk-dark.svg b/images/connectors/zendesk-dark.svg new file mode 100644 index 00000000..7b0ed2ab --- /dev/null +++ b/images/connectors/zendesk-dark.svg @@ -0,0 +1,3 @@ + + + diff --git a/images/connectors/zendesk-light.svg b/images/connectors/zendesk-light.svg new file mode 100644 index 00000000..c8f97a18 --- /dev/null +++ b/images/connectors/zendesk-light.svg @@ -0,0 +1,3 @@ + + + diff --git a/images/connectors/zoho-crm.svg b/images/connectors/zoho-crm.svg new file mode 100644 index 00000000..ef0f9063 --- /dev/null +++ b/images/connectors/zoho-crm.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/images/connectors/zoom.svg b/images/connectors/zoom.svg new file mode 100644 index 00000000..dd15a4a6 --- /dev/null +++ b/images/connectors/zoom.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/scripts/generate_connector_pages.py b/scripts/generate_connector_pages.py index 9b5bbef2..31210d6c 100644 --- a/scripts/generate_connector_pages.py +++ b/scripts/generate_connector_pages.py @@ -1,4 +1,9 @@ +"""Generate one page per connector enabled in production, plus the providers overview. + +scripts/production_providers.json is refreshed from GET /connectors/providers on production. +""" import argparse +from collections import namedtuple import html import json from pathlib import Path @@ -7,6 +12,8 @@ ROOT = Path(__file__).resolve().parents[1] SNAPSHOT = ROOT / "scripts/connector_capabilities.json" +PRODUCTION = ROOT / "scripts/production_providers.json" +LOGOS = ROOT / "images/connectors" DIRECTORY = ROOT / "essentials/v2/connectors" INDEX = ROOT / "essentials/v2/connector-providers.mdx" SCOPED_PROVIDER_EXAMPLES = { @@ -15,6 +22,25 @@ "linear": ("linear-account-a", "linear-account-b"), "notion": ("notion-account-a", "notion-account-b"), } +NAVIGATION = ROOT / "docs.json" +NAVIGATION_GROUP = "Connector providers" +GROUPS = { + "CRM & support": {"crm", "sales", "support"}, + "Docs & files": {"docs", "knowledge", "storage", "cms", "design"}, + "Engineering": {"dev_tools", "monitoring", "security"}, + "HR & finance": {"hr", "finance"}, + "Marketing & analytics": {"marketing", "analytics", "forms"}, + "Meetings & calendar": {"communications", "calendar", "scheduling"}, + "Messaging & email": {"messaging", "email", "social"}, + "Project management": {"project_management"}, +} +PROVIDER_GROUPS = { + "airtable": "Docs & files", + "microsoft_teams": "Messaging & email", + "outlook": "Messaging & email", + "twilio": "Messaging & email", +} +Logo = namedtuple("Logo", "light dark") def prose(value): @@ -24,17 +50,81 @@ def prose(value): return re.sub(r"<([A-Za-z_][\w-]*)>", r"`<\1>`", escaped) +def slug(identifier): + return identifier.replace("_", "-") + + +def group(row): + if row["provider"] in PROVIDER_GROUPS: + return PROVIDER_GROUPS[row["provider"]] + return next(title for title, categories in GROUPS.items() if row["category"] in categories) + + +def logo(identifier): + """Monochrome marks ship a light-mode and a dark-mode file; multi-colour marks ship one file for both.""" + url = lambda path: f"/{path.relative_to(ROOT)}" + single, light, dark = (LOGOS / f"{slug(identifier)}{suffix}.svg" for suffix in ("", "-light", "-dark")) + if light.is_file() and dark.is_file(): + return Logo(url(light), url(dark)) + return Logo(url(single), None) if single.is_file() else None + + +def images(found, alt, class_name): + if found.dark is None: + return [f'{alt}'] + return [ + f'{alt}', + f'{alt}', + ] + + +def card(provider, found): + href = f"/essentials/v2/connectors/{slug(provider['provider'])}" + if found is None: + icon = "" + elif found.dark is None: + icon = f' icon="{found.light}"' + else: + icon = f" icon={{<>{''.join(images(found, '', 'connector-card-logo'))}}}" + return f' ' + + +def navigation(by_group): + """Rewrites only the connector providers group of docs.json, so hand-kept groups keep their layout.""" + text = NAVIGATION.read_text() + marker = text.index(f'"group": "{NAVIGATION_GROUP}"') + start = text.rindex("{", 0, marker) + depth = 0 + for end in range(start, len(text)): + depth += {"{": 1, "}": -1}.get(text[end], 0) + if depth == 0: + break + indent = text[text.rindex("\n", 0, start) + 1:start] + entry = { + "group": NAVIGATION_GROUP, "public": True, + "pages": [str(INDEX.relative_to(ROOT).with_suffix(""))] + [ + {"group": title, "pages": [f"essentials/v2/connectors/{slug(provider['provider'])}" for provider in members]} + for title, members in by_group.items() + ], + } + block = json.dumps(entry, indent=2).replace("\n", "\n" + indent) + return text[:start] + block + text[end + 1:] + + def pages(): + enabled = {slug(row["provider"]): group(row) for row in json.loads(PRODUCTION.read_text())["providers"]} snapshot = json.loads(SNAPSHOT.read_text()) - providers = sorted(snapshot["providers"], key=lambda item: item["name"].casefold()) + providers = sorted((item for item in snapshot["providers"] if slug(item["provider"]) in enabled), key=lambda item: item["name"].casefold()) output = {} for provider in providers: identifier = provider["provider"] name = provider["name"] + found = logo(identifier) lines = [ "---", f"title: {json.dumps(name)}", f"description: {json.dumps(f'What HydraDB syncs from {name}, and how to connect it.')}", - "---", "", f"Use the {prose(name)} connector to bring the following content into HydraDB.", + *([f"icon: {json.dumps(found.light)}"] if found else []), + "---", "", *([*images(found, f"{name} logo", "connector-page-logo"), ""] if found else []), f"Use the {prose(name)} connector to bring the following content into HydraDB.", "", "## What syncs", "", ] if provider.get("summary"): @@ -74,24 +164,18 @@ def pages(): "- [Connectors](/essentials/v2/connectors): setup, sync, and access control", "- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings", "", ]) - output[DIRECTORY / f"{identifier.replace('_', '-')}.mdx"] = "\n".join(lines) + output[DIRECTORY / f"{slug(identifier)}.mdx"] = "\n".join(lines) lines = [ - "---", 'title: "Connector providers"', + "---", 'title: "Connector providers"', 'sidebarTitle: "All connectors"', 'description: "See what each connector indexes before you connect an account."', "---", "", "Choose a provider to see the indexed object types and any provider-specific setup steps. These pages describe content capabilities; availability and credentials come from your deployment's [provider catalog](/api-reference/v2/endpoint/list-connector-providers).", "", - "| Provider | Indexed object types (examples) |", "| --- | --- |", ] - for provider in providers: - slug = provider["provider"].replace("_", "-") - types = provider["indexed_object_types"] - summary = ", ".join(f"`{kind}`" for kind in types[:3]) - if len(types) > 3: - summary += ", and more" - if not summary: - summary = "See provider page" - lines.append(f"| [{provider['name']}](/essentials/v2/connectors/{slug}) | {summary} |") - lines.extend(["", "## Related", "", "- [Connectors](/essentials/v2/connectors): shared setup and sync workflow", ""]) + by_group = {title: [provider for provider in providers if enabled[slug(provider["provider"])] == title] for title in GROUPS} + for title, members in by_group.items(): + lines.extend([f"## {title}", "", "", *(card(provider, logo(provider["provider"])) for provider in members), "", ""]) + lines.extend(["## Related", "", "- [Connectors](/essentials/v2/connectors): shared setup and sync workflow", ""]) output[INDEX] = "\n".join(lines) + output[NAVIGATION] = navigation(by_group) return output @@ -106,8 +190,10 @@ def pages(): extra = set(DIRECTORY.glob("*.mdx")) - generated.keys() if stale or extra: raise SystemExit(f"Connector pages are stale: {stale + sorted(str(path.relative_to(ROOT)) for path in extra)}") - print(f"{len(generated) - 1} connector pages match the capability snapshot") + print(f"{len(generated) - 2} connector pages, the overview and the navigation group match the snapshot") else: DIRECTORY.mkdir(parents=True, exist_ok=True) + for path in set(DIRECTORY.glob("*.mdx")) - generated.keys(): + path.unlink() for path, content in generated.items(): path.write_text(content) diff --git a/scripts/production_providers.json b/scripts/production_providers.json new file mode 100644 index 00000000..f83899de --- /dev/null +++ b/scripts/production_providers.json @@ -0,0 +1,354 @@ +{ + "providers": [ + { + "provider": "airtable", + "category": "productivity", + "is_beta": true + }, + { + "provider": "asana", + "category": "project_management", + "is_beta": false + }, + { + "provider": "attio", + "category": "crm", + "is_beta": true + }, + { + "provider": "avoma", + "category": "communications", + "is_beta": false + }, + { + "provider": "bamboohr", + "category": "hr", + "is_beta": false + }, + { + "provider": "bigquery", + "category": "analytics", + "is_beta": true + }, + { + "provider": "bookstack", + "category": "docs", + "is_beta": true + }, + { + "provider": "calendly", + "category": "scheduling", + "is_beta": true + }, + { + "provider": "clickup", + "category": "project_management", + "is_beta": false + }, + { + "provider": "coda", + "category": "docs", + "is_beta": true + }, + { + "provider": "confluence", + "category": "docs", + "is_beta": false + }, + { + "provider": "contentful", + "category": "cms", + "is_beta": false + }, + { + "provider": "copper", + "category": "crm", + "is_beta": true + }, + { + "provider": "datadog", + "category": "monitoring", + "is_beta": false + }, + { + "provider": "discord", + "category": "messaging", + "is_beta": false + }, + { + "provider": "dropbox", + "category": "storage", + "is_beta": false + }, + { + "provider": "figma", + "category": "design", + "is_beta": true + }, + { + "provider": "fireflies", + "category": "communications", + "is_beta": true + }, + { + "provider": "freshdesk", + "category": "support", + "is_beta": false + }, + { + "provider": "github", + "category": "dev_tools", + "is_beta": false + }, + { + "provider": "gitlab", + "category": "dev_tools", + "is_beta": false + }, + { + "provider": "gmail", + "category": "email", + "is_beta": false + }, + { + "provider": "gong", + "category": "sales", + "is_beta": false + }, + { + "provider": "google_calendar", + "category": "calendar", + "is_beta": false + }, + { + "provider": "google_drive", + "category": "storage", + "is_beta": false + }, + { + "provider": "google_search_console", + "category": "analytics", + "is_beta": true + }, + { + "provider": "googleads", + "category": "marketing", + "is_beta": false + }, + { + "provider": "granola", + "category": "communications", + "is_beta": true + }, + { + "provider": "greenhouse", + "category": "hr", + "is_beta": true + }, + { + "provider": "guru", + "category": "knowledge", + "is_beta": false + }, + { + "provider": "helpscout", + "category": "support", + "is_beta": false + }, + { + "provider": "hubspot", + "category": "crm", + "is_beta": false + }, + { + "provider": "intercom", + "category": "support", + "is_beta": false + }, + { + "provider": "jira", + "category": "project_management", + "is_beta": false + }, + { + "provider": "klaviyo", + "category": "marketing", + "is_beta": true + }, + { + "provider": "launchdarkly", + "category": "dev_tools", + "is_beta": false + }, + { + "provider": "lever", + "category": "hr", + "is_beta": true + }, + { + "provider": "linear", + "category": "project_management", + "is_beta": false + }, + { + "provider": "loom", + "category": "communications", + "is_beta": false + }, + { + "provider": "mailchimp", + "category": "marketing", + "is_beta": false + }, + { + "provider": "microsoft_teams", + "category": "productivity", + "is_beta": false + }, + { + "provider": "mixpanel", + "category": "analytics", + "is_beta": true + }, + { + "provider": "monday", + "category": "project_management", + "is_beta": false + }, + { + "provider": "notion", + "category": "docs", + "is_beta": false + }, + { + "provider": "okta", + "category": "security", + "is_beta": false + }, + { + "provider": "outlook", + "category": "productivity", + "is_beta": false + }, + { + "provider": "pagerduty", + "category": "monitoring", + "is_beta": false + }, + { + "provider": "pardot", + "category": "marketing", + "is_beta": true + }, + { + "provider": "pipedrive", + "category": "crm", + "is_beta": true + }, + { + "provider": "posthog", + "category": "analytics", + "is_beta": true + }, + { + "provider": "quickbooks", + "category": "finance", + "is_beta": true + }, + { + "provider": "recurly", + "category": "finance", + "is_beta": false + }, + { + "provider": "sendgrid", + "category": "email", + "is_beta": false + }, + { + "provider": "sentry", + "category": "dev_tools", + "is_beta": true + }, + { + "provider": "servicenow", + "category": "support", + "is_beta": false + }, + { + "provider": "sharepoint", + "category": "docs", + "is_beta": false + }, + { + "provider": "shortcut", + "category": "project_management", + "is_beta": false + }, + { + "provider": "slack", + "category": "messaging", + "is_beta": false + }, + { + "provider": "smartsheet", + "category": "project_management", + "is_beta": true + }, + { + "provider": "stripe", + "category": "finance", + "is_beta": false + }, + { + "provider": "supabase", + "category": "dev_tools", + "is_beta": true + }, + { + "provider": "surveymonkey", + "category": "forms", + "is_beta": false + }, + { + "provider": "twilio", + "category": "communications", + "is_beta": true + }, + { + "provider": "twitter", + "category": "social", + "is_beta": false + }, + { + "provider": "typeform", + "category": "forms", + "is_beta": false + }, + { + "provider": "wrike", + "category": "project_management", + "is_beta": false + }, + { + "provider": "xero", + "category": "finance", + "is_beta": true + }, + { + "provider": "zendesk", + "category": "support", + "is_beta": false + }, + { + "provider": "zoho_crm", + "category": "crm", + "is_beta": true + }, + { + "provider": "zoom", + "category": "communications", + "is_beta": true + } + ] +} diff --git a/scripts/test_connector_pages.py b/scripts/test_connector_pages.py index 6a47b691..0f780ab9 100644 --- a/scripts/test_connector_pages.py +++ b/scripts/test_connector_pages.py @@ -6,6 +6,17 @@ from generate_llms_index import page_paths +PRODUCTION = json.loads((ROOT / "scripts/production_providers.json").read_text())["providers"] +PRODUCTION_SLUGS = {provider["provider"].replace("_", "-") for provider in PRODUCTION} +LOGOS = ROOT / "images/connectors" +INDEX = ROOT / "essentials/v2/connector-providers.mdx" + + +def page_icon(text): + match = re.search(r'^icon: "([^"]+)"$', text.split("\n---\n", 1)[0], re.M) + return match.group(1) if match else None + + class ConnectorPagesTest(unittest.TestCase): def test_scoped_provider_examples_are_distinct_and_match_the_guide(self): guide = (ROOT / "essentials/v2/connectors.mdx").read_text() @@ -29,7 +40,7 @@ def test_scoped_provider_examples_are_distinct_and_match_the_guide(self): def test_all_provider_pages_keep_one_account_per_connector_and_human_enforcement(self): paths = list(DIRECTORY.glob("*.mdx")) - self.assertEqual(98, len(paths)) + self.assertEqual(len(PRODUCTION), len(paths)) for path in paths: text = path.read_text() with self.subTest(provider=path.stem): @@ -50,7 +61,7 @@ def test_provider_pages_match_the_source_snapshot(self): for path, content in generated.items(): with self.subTest(page=str(path.relative_to(ROOT))): self.assertEqual(content, path.read_text()) - self.assertEqual(set(DIRECTORY.glob("*.mdx")), set(generated) - {ROOT / "essentials/v2/connector-providers.mdx"}) + self.assertEqual(set(DIRECTORY.glob("*.mdx")), set(generated) - {ROOT / "essentials/v2/connector-providers.mdx", ROOT / "docs.json"}) def test_every_provider_page_is_registered_and_linked_from_the_catalog(self): config = json.loads((ROOT / "docs.json").read_text()) @@ -59,7 +70,7 @@ def test_every_provider_page_is_registered_and_linked_from_the_catalog(self): for path in DIRECTORY.glob("*.mdx"): slug = str(path.relative_to(ROOT).with_suffix("")) self.assertIn(slug, registered) - self.assertIn(f"](/{slug})", index) + self.assertIn(f'href="/{slug}"', index) self.assertIn("/essentials/v2/connector-providers", (ROOT / "essentials/v2/connectors.mdx").read_text()) def test_snapshot_records_source_commits_and_preserves_unknown_object_types(self): @@ -82,6 +93,8 @@ def test_provider_pages_list_only_the_exact_indexed_object_types(self): snapshot = json.loads(SNAPSHOT.read_text()) for provider in snapshot["providers"]: slug = provider["provider"].replace("_", "-") + if slug not in PRODUCTION_SLUGS: + continue text = (DIRECTORY / f"{slug}.mdx").read_text() section = text.split("## What syncs\n", 1)[1].split("## Connect", 1)[0] with self.subTest(provider=provider["provider"]): @@ -89,6 +102,73 @@ def test_provider_pages_list_only_the_exact_indexed_object_types(self): monday = (DIRECTORY / "monday.mdx").read_text() self.assertIn("fails open with a persistent warning", monday) + def test_pages_exist_exactly_for_the_production_providers(self): + self.assertEqual(70, len(PRODUCTION_SLUGS)) + self.assertEqual(PRODUCTION_SLUGS, {path.stem for path in DIRECTORY.glob("*.mdx")}) + snapshot = {provider["provider"].replace("_", "-") for provider in json.loads(SNAPSHOT.read_text())["providers"]} + self.assertLessEqual(PRODUCTION_SLUGS, snapshot) + + def test_every_logo_is_shown_and_every_shown_logo_exists(self): + files = {path.name for path in LOGOS.glob("*.svg")} + index = INDEX.read_text() + shown = set() + for slug in PRODUCTION_SLUGS: + pair = {f"{slug}-light.svg", f"{slug}-dark.svg"} + expected = sorted(pair) if pair <= files else [f"{slug}.svg"] if f"{slug}.svg" in files else [] + page = (DIRECTORY / f"{slug}.mdx").read_text() + card = re.search(rf'', index) + with self.subTest(provider=slug): + self.assertIsNotNone(card) + page_images = sorted(re.findall(r'{re.search(r for both themes, so the sidebar shows a monochrome mark's light-mode file in dark mode too; it takes the dashboard's light backing there. */ +img[src*="/images/connectors/"] { + background-color: rgba(0, 0, 0, 0.04) !important; + box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.09); + border-radius: 4px; + padding: 2px; +} +.dark img[src*="/images/connectors/"] { + background-color: rgba(255, 255, 255, 0.05) !important; + box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09); +} +.dark img[src*="/images/connectors/"][src*="-light.svg"] { + background-color: rgba(255, 255, 255, 0.88) !important; + box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); +} +img.connector-page-logo { + width: 48px; + height: 48px; + margin: 0; + padding: 8px; + border-radius: 10px; +} +img.connector-card-logo { + width: 24px; + height: 24px; + margin: 0; +} From 68d1700bcdc3d465476702925e0c085bf3b644fb Mon Sep 17 00:00:00 2001 From: SohamRatnaparkhi Date: Mon, 16 Nov 2026 21:32:57 +0530 Subject: [PATCH 24/33] fix(docs): draw connector logos beside the page title and use the dashboard's names (ENG-1618) The logo sat on its own line between the description and the first paragraph. Mintlify has no title icon slot, so the generator now writes connector-logos.css with one rule per provider that draws the logo before #page-title on the page whose data-current-path names that provider. Theme-following marks swap to their dark file under html.dark; pages with no logo get no rule and no shift. Display names now come from the dashboard's catalog (scripts/dashboard_provider_names.json): Attio and Twitter are capitalised. Coda keeps "Coda" through a recorded docs override. Each page now names the production slug, so Zoho CRM says zoho_crm instead of zoho-crm. Co-Authored-By: Claude Opus 5.5 Signed-off-by: SohamRatnaparkhi --- .gitignore | 1 + connector-logos.css | 96 +++++++++++++++++++ docs.json | 4 +- essentials/v2/connector-providers.mdx | 6 +- essentials/v2/connectors/airtable.mdx | 2 - essentials/v2/connectors/asana.mdx | 2 - essentials/v2/connectors/attio.mdx | 9 +- essentials/v2/connectors/avoma.mdx | 2 - essentials/v2/connectors/bamboohr.mdx | 2 - essentials/v2/connectors/bigquery.mdx | 2 - essentials/v2/connectors/bookstack.mdx | 2 - essentials/v2/connectors/calendly.mdx | 2 - essentials/v2/connectors/clickup.mdx | 2 - essentials/v2/connectors/coda.mdx | 8 +- essentials/v2/connectors/confluence.mdx | 2 - essentials/v2/connectors/contentful.mdx | 2 - essentials/v2/connectors/datadog.mdx | 3 - essentials/v2/connectors/discord.mdx | 2 - essentials/v2/connectors/dropbox.mdx | 2 - essentials/v2/connectors/figma.mdx | 2 - essentials/v2/connectors/fireflies.mdx | 2 - essentials/v2/connectors/freshdesk.mdx | 2 - essentials/v2/connectors/github.mdx | 3 - essentials/v2/connectors/gitlab.mdx | 2 - essentials/v2/connectors/gmail.mdx | 2 - essentials/v2/connectors/gong.mdx | 3 - essentials/v2/connectors/google-calendar.mdx | 2 - essentials/v2/connectors/google-drive.mdx | 2 - .../v2/connectors/google-search-console.mdx | 2 - essentials/v2/connectors/googleads.mdx | 2 - essentials/v2/connectors/granola.mdx | 2 - essentials/v2/connectors/greenhouse.mdx | 2 - essentials/v2/connectors/guru.mdx | 3 - essentials/v2/connectors/helpscout.mdx | 2 - essentials/v2/connectors/hubspot.mdx | 2 - essentials/v2/connectors/intercom.mdx | 2 - essentials/v2/connectors/jira.mdx | 2 - essentials/v2/connectors/launchdarkly.mdx | 3 - essentials/v2/connectors/linear.mdx | 2 - essentials/v2/connectors/loom.mdx | 2 - essentials/v2/connectors/mailchimp.mdx | 2 - essentials/v2/connectors/microsoft-teams.mdx | 2 - essentials/v2/connectors/mixpanel.mdx | 2 - essentials/v2/connectors/monday.mdx | 2 - essentials/v2/connectors/notion.mdx | 3 - essentials/v2/connectors/okta.mdx | 2 - essentials/v2/connectors/outlook.mdx | 2 - essentials/v2/connectors/pagerduty.mdx | 2 - essentials/v2/connectors/pipedrive.mdx | 3 - essentials/v2/connectors/posthog.mdx | 2 - essentials/v2/connectors/quickbooks.mdx | 2 - essentials/v2/connectors/sendgrid.mdx | 2 - essentials/v2/connectors/sentry.mdx | 3 - essentials/v2/connectors/servicenow.mdx | 2 - essentials/v2/connectors/sharepoint.mdx | 2 - essentials/v2/connectors/shortcut.mdx | 2 - essentials/v2/connectors/slack.mdx | 2 - essentials/v2/connectors/smartsheet.mdx | 3 - essentials/v2/connectors/stripe.mdx | 2 - essentials/v2/connectors/supabase.mdx | 2 - essentials/v2/connectors/surveymonkey.mdx | 2 - essentials/v2/connectors/twilio.mdx | 2 - essentials/v2/connectors/twitter.mdx | 9 +- essentials/v2/connectors/typeform.mdx | 3 - essentials/v2/connectors/wrike.mdx | 2 - essentials/v2/connectors/xero.mdx | 2 - essentials/v2/connectors/zendesk.mdx | 3 - essentials/v2/connectors/zoho-crm.mdx | 4 +- essentials/v2/connectors/zoom.mdx | 2 - scripts/dashboard_provider_names.json | 83 ++++++++++++++++ scripts/generate_connector_pages.py | 47 +++++++-- scripts/test_connector_pages.py | 62 ++++++++++-- style.css | 7 -- 73 files changed, 291 insertions(+), 178 deletions(-) create mode 100644 connector-logos.css create mode 100644 scripts/dashboard_provider_names.json diff --git a/.gitignore b/.gitignore index 1a3e75f1..365fb72a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ __pycache__/ /scripts/* !/scripts/connector_capabilities.json !/scripts/production_providers.json +!/scripts/dashboard_provider_names.json !/scripts/generate_connector_pages.py !/scripts/test_connector_pages.py .nvmrc diff --git a/connector-logos.css b/connector-logos.css new file mode 100644 index 00000000..d82b56a0 --- /dev/null +++ b/connector-logos.css @@ -0,0 +1,96 @@ +/* Generated by scripts/generate_connector_pages.py. Each connector page shows its logo before the title. */ +html[data-current-path*="/essentials/v2/connectors/"] #page-title::before { + display: inline-block; + width: 1.1em; + height: 1.1em; + margin-right: 0.35em; + vertical-align: -0.19em; + background-position: center; + background-repeat: no-repeat; + background-size: 70%; + background-color: rgba(0, 0, 0, 0.04); + box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.09); + border-radius: 0.22em; +} +html.dark[data-current-path*="/essentials/v2/connectors/"] #page-title::before { + background-color: rgba(255, 255, 255, 0.05); + box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09); +} +html[data-current-path$="/essentials/v2/connectors/airtable"] #page-title::before { content: ""; background-image: url("/images/connectors/airtable.svg"); } +html[data-current-path$="/essentials/v2/connectors/asana"] #page-title::before { content: ""; background-image: url("/images/connectors/asana.svg"); } +html[data-current-path$="/essentials/v2/connectors/attio"] #page-title::before { content: ""; background-image: url("/images/connectors/attio-light.svg"); } +html.dark[data-current-path$="/essentials/v2/connectors/attio"] #page-title::before { background-image: url("/images/connectors/attio-dark.svg"); } +html[data-current-path$="/essentials/v2/connectors/avoma"] #page-title::before { content: ""; background-image: url("/images/connectors/avoma.svg"); } +html[data-current-path$="/essentials/v2/connectors/bamboohr"] #page-title::before { content: ""; background-image: url("/images/connectors/bamboohr.svg"); } +html[data-current-path$="/essentials/v2/connectors/bigquery"] #page-title::before { content: ""; background-image: url("/images/connectors/bigquery.svg"); } +html[data-current-path$="/essentials/v2/connectors/bookstack"] #page-title::before { content: ""; background-image: url("/images/connectors/bookstack.svg"); } +html[data-current-path$="/essentials/v2/connectors/calendly"] #page-title::before { content: ""; background-image: url("/images/connectors/calendly.svg"); } +html[data-current-path$="/essentials/v2/connectors/clickup"] #page-title::before { content: ""; background-image: url("/images/connectors/clickup.svg"); } +html[data-current-path$="/essentials/v2/connectors/coda"] #page-title::before { content: ""; background-image: url("/images/connectors/coda.svg"); } +html[data-current-path$="/essentials/v2/connectors/confluence"] #page-title::before { content: ""; background-image: url("/images/connectors/confluence.svg"); } +html[data-current-path$="/essentials/v2/connectors/contentful"] #page-title::before { content: ""; background-image: url("/images/connectors/contentful.svg"); } +html[data-current-path$="/essentials/v2/connectors/datadog"] #page-title::before { content: ""; background-image: url("/images/connectors/datadog-light.svg"); } +html.dark[data-current-path$="/essentials/v2/connectors/datadog"] #page-title::before { background-image: url("/images/connectors/datadog-dark.svg"); } +html[data-current-path$="/essentials/v2/connectors/discord"] #page-title::before { content: ""; background-image: url("/images/connectors/discord.svg"); } +html[data-current-path$="/essentials/v2/connectors/dropbox"] #page-title::before { content: ""; background-image: url("/images/connectors/dropbox.svg"); } +html[data-current-path$="/essentials/v2/connectors/figma"] #page-title::before { content: ""; background-image: url("/images/connectors/figma.svg"); } +html[data-current-path$="/essentials/v2/connectors/fireflies"] #page-title::before { content: ""; background-image: url("/images/connectors/fireflies.svg"); } +html[data-current-path$="/essentials/v2/connectors/freshdesk"] #page-title::before { content: ""; background-image: url("/images/connectors/freshdesk.svg"); } +html[data-current-path$="/essentials/v2/connectors/github"] #page-title::before { content: ""; background-image: url("/images/connectors/github-light.svg"); } +html.dark[data-current-path$="/essentials/v2/connectors/github"] #page-title::before { background-image: url("/images/connectors/github-dark.svg"); } +html[data-current-path$="/essentials/v2/connectors/gitlab"] #page-title::before { content: ""; background-image: url("/images/connectors/gitlab.svg"); } +html[data-current-path$="/essentials/v2/connectors/gmail"] #page-title::before { content: ""; background-image: url("/images/connectors/gmail.svg"); } +html[data-current-path$="/essentials/v2/connectors/gong"] #page-title::before { content: ""; background-image: url("/images/connectors/gong-light.svg"); } +html.dark[data-current-path$="/essentials/v2/connectors/gong"] #page-title::before { background-image: url("/images/connectors/gong-dark.svg"); } +html[data-current-path$="/essentials/v2/connectors/googleads"] #page-title::before { content: ""; background-image: url("/images/connectors/googleads.svg"); } +html[data-current-path$="/essentials/v2/connectors/google-calendar"] #page-title::before { content: ""; background-image: url("/images/connectors/google-calendar.svg"); } +html[data-current-path$="/essentials/v2/connectors/google-drive"] #page-title::before { content: ""; background-image: url("/images/connectors/google-drive.svg"); } +html[data-current-path$="/essentials/v2/connectors/google-search-console"] #page-title::before { content: ""; background-image: url("/images/connectors/google-search-console.svg"); } +html[data-current-path$="/essentials/v2/connectors/granola"] #page-title::before { content: ""; background-image: url("/images/connectors/granola.svg"); } +html[data-current-path$="/essentials/v2/connectors/greenhouse"] #page-title::before { content: ""; background-image: url("/images/connectors/greenhouse.svg"); } +html[data-current-path$="/essentials/v2/connectors/guru"] #page-title::before { content: ""; background-image: url("/images/connectors/guru-light.svg"); } +html.dark[data-current-path$="/essentials/v2/connectors/guru"] #page-title::before { background-image: url("/images/connectors/guru-dark.svg"); } +html[data-current-path$="/essentials/v2/connectors/helpscout"] #page-title::before { content: ""; background-image: url("/images/connectors/helpscout.svg"); } +html[data-current-path$="/essentials/v2/connectors/hubspot"] #page-title::before { content: ""; background-image: url("/images/connectors/hubspot.svg"); } +html[data-current-path$="/essentials/v2/connectors/intercom"] #page-title::before { content: ""; background-image: url("/images/connectors/intercom.svg"); } +html[data-current-path$="/essentials/v2/connectors/jira"] #page-title::before { content: ""; background-image: url("/images/connectors/jira.svg"); } +html[data-current-path$="/essentials/v2/connectors/launchdarkly"] #page-title::before { content: ""; background-image: url("/images/connectors/launchdarkly-light.svg"); } +html.dark[data-current-path$="/essentials/v2/connectors/launchdarkly"] #page-title::before { background-image: url("/images/connectors/launchdarkly-dark.svg"); } +html[data-current-path$="/essentials/v2/connectors/linear"] #page-title::before { content: ""; background-image: url("/images/connectors/linear.svg"); } +html[data-current-path$="/essentials/v2/connectors/loom"] #page-title::before { content: ""; background-image: url("/images/connectors/loom.svg"); } +html[data-current-path$="/essentials/v2/connectors/mailchimp"] #page-title::before { content: ""; background-image: url("/images/connectors/mailchimp.svg"); } +html[data-current-path$="/essentials/v2/connectors/microsoft-teams"] #page-title::before { content: ""; background-image: url("/images/connectors/microsoft-teams.svg"); } +html[data-current-path$="/essentials/v2/connectors/mixpanel"] #page-title::before { content: ""; background-image: url("/images/connectors/mixpanel.svg"); } +html[data-current-path$="/essentials/v2/connectors/monday"] #page-title::before { content: ""; background-image: url("/images/connectors/monday.svg"); } +html[data-current-path$="/essentials/v2/connectors/notion"] #page-title::before { content: ""; background-image: url("/images/connectors/notion-light.svg"); } +html.dark[data-current-path$="/essentials/v2/connectors/notion"] #page-title::before { background-image: url("/images/connectors/notion-dark.svg"); } +html[data-current-path$="/essentials/v2/connectors/okta"] #page-title::before { content: ""; background-image: url("/images/connectors/okta.svg"); } +html[data-current-path$="/essentials/v2/connectors/outlook"] #page-title::before { content: ""; background-image: url("/images/connectors/outlook.svg"); } +html[data-current-path$="/essentials/v2/connectors/pagerduty"] #page-title::before { content: ""; background-image: url("/images/connectors/pagerduty.svg"); } +html[data-current-path$="/essentials/v2/connectors/pipedrive"] #page-title::before { content: ""; background-image: url("/images/connectors/pipedrive-light.svg"); } +html.dark[data-current-path$="/essentials/v2/connectors/pipedrive"] #page-title::before { background-image: url("/images/connectors/pipedrive-dark.svg"); } +html[data-current-path$="/essentials/v2/connectors/posthog"] #page-title::before { content: ""; background-image: url("/images/connectors/posthog.svg"); } +html[data-current-path$="/essentials/v2/connectors/quickbooks"] #page-title::before { content: ""; background-image: url("/images/connectors/quickbooks.svg"); } +html[data-current-path$="/essentials/v2/connectors/sendgrid"] #page-title::before { content: ""; background-image: url("/images/connectors/sendgrid.svg"); } +html[data-current-path$="/essentials/v2/connectors/sentry"] #page-title::before { content: ""; background-image: url("/images/connectors/sentry-light.svg"); } +html.dark[data-current-path$="/essentials/v2/connectors/sentry"] #page-title::before { background-image: url("/images/connectors/sentry-dark.svg"); } +html[data-current-path$="/essentials/v2/connectors/servicenow"] #page-title::before { content: ""; background-image: url("/images/connectors/servicenow.svg"); } +html[data-current-path$="/essentials/v2/connectors/sharepoint"] #page-title::before { content: ""; background-image: url("/images/connectors/sharepoint.svg"); } +html[data-current-path$="/essentials/v2/connectors/shortcut"] #page-title::before { content: ""; background-image: url("/images/connectors/shortcut.svg"); } +html[data-current-path$="/essentials/v2/connectors/slack"] #page-title::before { content: ""; background-image: url("/images/connectors/slack.svg"); } +html[data-current-path$="/essentials/v2/connectors/smartsheet"] #page-title::before { content: ""; background-image: url("/images/connectors/smartsheet-light.svg"); } +html.dark[data-current-path$="/essentials/v2/connectors/smartsheet"] #page-title::before { background-image: url("/images/connectors/smartsheet-dark.svg"); } +html[data-current-path$="/essentials/v2/connectors/stripe"] #page-title::before { content: ""; background-image: url("/images/connectors/stripe.svg"); } +html[data-current-path$="/essentials/v2/connectors/supabase"] #page-title::before { content: ""; background-image: url("/images/connectors/supabase.svg"); } +html[data-current-path$="/essentials/v2/connectors/surveymonkey"] #page-title::before { content: ""; background-image: url("/images/connectors/surveymonkey.svg"); } +html[data-current-path$="/essentials/v2/connectors/twilio"] #page-title::before { content: ""; background-image: url("/images/connectors/twilio.svg"); } +html[data-current-path$="/essentials/v2/connectors/twitter"] #page-title::before { content: ""; background-image: url("/images/connectors/twitter-light.svg"); } +html.dark[data-current-path$="/essentials/v2/connectors/twitter"] #page-title::before { background-image: url("/images/connectors/twitter-dark.svg"); } +html[data-current-path$="/essentials/v2/connectors/typeform"] #page-title::before { content: ""; background-image: url("/images/connectors/typeform-light.svg"); } +html.dark[data-current-path$="/essentials/v2/connectors/typeform"] #page-title::before { background-image: url("/images/connectors/typeform-dark.svg"); } +html[data-current-path$="/essentials/v2/connectors/wrike"] #page-title::before { content: ""; background-image: url("/images/connectors/wrike.svg"); } +html[data-current-path$="/essentials/v2/connectors/xero"] #page-title::before { content: ""; background-image: url("/images/connectors/xero.svg"); } +html[data-current-path$="/essentials/v2/connectors/zendesk"] #page-title::before { content: ""; background-image: url("/images/connectors/zendesk-light.svg"); } +html.dark[data-current-path$="/essentials/v2/connectors/zendesk"] #page-title::before { background-image: url("/images/connectors/zendesk-dark.svg"); } +html[data-current-path$="/essentials/v2/connectors/zoho-crm"] #page-title::before { content: ""; background-image: url("/images/connectors/zoho-crm.svg"); } +html[data-current-path$="/essentials/v2/connectors/zoom"] #page-title::before { content: ""; background-image: url("/images/connectors/zoom.svg"); } diff --git a/docs.json b/docs.json index 96ecf6f2..cc210fd9 100644 --- a/docs.json +++ b/docs.json @@ -110,6 +110,7 @@ "pages": [ "essentials/v2/connectors/airtable", "essentials/v2/connectors/bookstack", + "essentials/v2/connectors/coda", "essentials/v2/connectors/confluence", "essentials/v2/connectors/contentful", "essentials/v2/connectors/dropbox", @@ -117,8 +118,7 @@ "essentials/v2/connectors/google-drive", "essentials/v2/connectors/guru", "essentials/v2/connectors/notion", - "essentials/v2/connectors/sharepoint", - "essentials/v2/connectors/coda" + "essentials/v2/connectors/sharepoint" ] }, { diff --git a/essentials/v2/connector-providers.mdx b/essentials/v2/connector-providers.mdx index 193a2f02..595b81dc 100644 --- a/essentials/v2/connector-providers.mdx +++ b/essentials/v2/connector-providers.mdx @@ -9,7 +9,7 @@ Choose a provider to see the indexed object types and any provider-specific setu ## CRM & support - } href="/essentials/v2/connectors/attio" horizontal /> + } href="/essentials/v2/connectors/attio" horizontal /> } href="/essentials/v2/connectors/gong" horizontal /> @@ -27,6 +27,7 @@ Choose a provider to see the indexed object types and any provider-specific setu + @@ -35,7 +36,6 @@ Choose a provider to see the indexed object types and any provider-specific setu } href="/essentials/v2/connectors/guru" horizontal /> } href="/essentials/v2/connectors/notion" horizontal /> - ## Engineering @@ -100,7 +100,7 @@ Choose a provider to see the indexed object types and any provider-specific setu - } href="/essentials/v2/connectors/twitter" horizontal /> + } href="/essentials/v2/connectors/twitter" horizontal /> ## Project management diff --git a/essentials/v2/connectors/airtable.mdx b/essentials/v2/connectors/airtable.mdx index 4d85fbe1..bfee4181 100644 --- a/essentials/v2/connectors/airtable.mdx +++ b/essentials/v2/connectors/airtable.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Airtable, and how to connect it." icon: "/images/connectors/airtable.svg" --- -Airtable logo - Use the Airtable connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/asana.mdx b/essentials/v2/connectors/asana.mdx index e6d55658..7fe15900 100644 --- a/essentials/v2/connectors/asana.mdx +++ b/essentials/v2/connectors/asana.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Asana, and how to connect it." icon: "/images/connectors/asana.svg" --- -Asana logo - Use the Asana connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/attio.mdx b/essentials/v2/connectors/attio.mdx index a8f52875..9c15d6cf 100644 --- a/essentials/v2/connectors/attio.mdx +++ b/essentials/v2/connectors/attio.mdx @@ -1,13 +1,10 @@ --- -title: "attio" -description: "What HydraDB syncs from attio, and how to connect it." +title: "Attio" +description: "What HydraDB syncs from Attio, and how to connect it." icon: "/images/connectors/attio-light.svg" --- -attio logo -attio logo - -Use the attio connector to bring the following content into HydraDB. +Use the Attio connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/avoma.mdx b/essentials/v2/connectors/avoma.mdx index be027f66..e0def5c1 100644 --- a/essentials/v2/connectors/avoma.mdx +++ b/essentials/v2/connectors/avoma.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Avoma, and how to connect it." icon: "/images/connectors/avoma.svg" --- -Avoma logo - Use the Avoma connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/bamboohr.mdx b/essentials/v2/connectors/bamboohr.mdx index bb1e7257..5a4858c2 100644 --- a/essentials/v2/connectors/bamboohr.mdx +++ b/essentials/v2/connectors/bamboohr.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from BambooHR, and how to connect it." icon: "/images/connectors/bamboohr.svg" --- -BambooHR logo - Use the BambooHR connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/bigquery.mdx b/essentials/v2/connectors/bigquery.mdx index 8906444a..ded379f3 100644 --- a/essentials/v2/connectors/bigquery.mdx +++ b/essentials/v2/connectors/bigquery.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from BigQuery, and how to connect it." icon: "/images/connectors/bigquery.svg" --- -BigQuery logo - Use the BigQuery connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/bookstack.mdx b/essentials/v2/connectors/bookstack.mdx index 735f6f15..1f900218 100644 --- a/essentials/v2/connectors/bookstack.mdx +++ b/essentials/v2/connectors/bookstack.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from BookStack, and how to connect it." icon: "/images/connectors/bookstack.svg" --- -BookStack logo - Use the BookStack connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/calendly.mdx b/essentials/v2/connectors/calendly.mdx index 50e03f83..41fc5f18 100644 --- a/essentials/v2/connectors/calendly.mdx +++ b/essentials/v2/connectors/calendly.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Calendly, and how to connect it." icon: "/images/connectors/calendly.svg" --- -Calendly logo - Use the Calendly connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/clickup.mdx b/essentials/v2/connectors/clickup.mdx index a3d8b500..5f48401d 100644 --- a/essentials/v2/connectors/clickup.mdx +++ b/essentials/v2/connectors/clickup.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from ClickUp, and how to connect it." icon: "/images/connectors/clickup.svg" --- -ClickUp logo - Use the ClickUp connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/coda.mdx b/essentials/v2/connectors/coda.mdx index f77fcd7a..1073ef80 100644 --- a/essentials/v2/connectors/coda.mdx +++ b/essentials/v2/connectors/coda.mdx @@ -1,12 +1,10 @@ --- -title: "Superhuman" -description: "What HydraDB syncs from Superhuman, and how to connect it." +title: "Coda" +description: "What HydraDB syncs from Coda, and how to connect it." icon: "/images/connectors/coda.svg" --- -Superhuman logo - -Use the Superhuman connector to bring the following content into HydraDB. +Use the Coda connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/confluence.mdx b/essentials/v2/connectors/confluence.mdx index 6acb8717..97c86da2 100644 --- a/essentials/v2/connectors/confluence.mdx +++ b/essentials/v2/connectors/confluence.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Confluence, and how to connect it." icon: "/images/connectors/confluence.svg" --- -Confluence logo - Use the Confluence connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/contentful.mdx b/essentials/v2/connectors/contentful.mdx index 8cd0c520..00b00df6 100644 --- a/essentials/v2/connectors/contentful.mdx +++ b/essentials/v2/connectors/contentful.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Contentful, and how to connect it." icon: "/images/connectors/contentful.svg" --- -Contentful logo - Use the Contentful connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/datadog.mdx b/essentials/v2/connectors/datadog.mdx index 28fb183b..120c112e 100644 --- a/essentials/v2/connectors/datadog.mdx +++ b/essentials/v2/connectors/datadog.mdx @@ -4,9 +4,6 @@ description: "What HydraDB syncs from Datadog, and how to connect it." icon: "/images/connectors/datadog-light.svg" --- -Datadog logo -Datadog logo - Use the Datadog connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/discord.mdx b/essentials/v2/connectors/discord.mdx index 6c521264..756501a7 100644 --- a/essentials/v2/connectors/discord.mdx +++ b/essentials/v2/connectors/discord.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Discord, and how to connect it." icon: "/images/connectors/discord.svg" --- -Discord logo - Use the Discord connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/dropbox.mdx b/essentials/v2/connectors/dropbox.mdx index 8aa74032..4fcb284a 100644 --- a/essentials/v2/connectors/dropbox.mdx +++ b/essentials/v2/connectors/dropbox.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Dropbox, and how to connect it." icon: "/images/connectors/dropbox.svg" --- -Dropbox logo - Use the Dropbox connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/figma.mdx b/essentials/v2/connectors/figma.mdx index 9f96371c..dbffb3b7 100644 --- a/essentials/v2/connectors/figma.mdx +++ b/essentials/v2/connectors/figma.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Figma, and how to connect it." icon: "/images/connectors/figma.svg" --- -Figma logo - Use the Figma connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/fireflies.mdx b/essentials/v2/connectors/fireflies.mdx index 3b0aa90b..a2d488df 100644 --- a/essentials/v2/connectors/fireflies.mdx +++ b/essentials/v2/connectors/fireflies.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Fireflies, and how to connect it." icon: "/images/connectors/fireflies.svg" --- -Fireflies logo - Use the Fireflies connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/freshdesk.mdx b/essentials/v2/connectors/freshdesk.mdx index fd90cc82..f40460c9 100644 --- a/essentials/v2/connectors/freshdesk.mdx +++ b/essentials/v2/connectors/freshdesk.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Freshdesk, and how to connect it." icon: "/images/connectors/freshdesk.svg" --- -Freshdesk logo - Use the Freshdesk connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/github.mdx b/essentials/v2/connectors/github.mdx index 77442f4d..65d72eb5 100644 --- a/essentials/v2/connectors/github.mdx +++ b/essentials/v2/connectors/github.mdx @@ -4,9 +4,6 @@ description: "What HydraDB syncs from GitHub, and how to connect it." icon: "/images/connectors/github-light.svg" --- -GitHub logo -GitHub logo - Use the GitHub connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/gitlab.mdx b/essentials/v2/connectors/gitlab.mdx index 33067a57..b6ee7d08 100644 --- a/essentials/v2/connectors/gitlab.mdx +++ b/essentials/v2/connectors/gitlab.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from GitLab, and how to connect it." icon: "/images/connectors/gitlab.svg" --- -GitLab logo - Use the GitLab connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/gmail.mdx b/essentials/v2/connectors/gmail.mdx index d4b6cd48..82588e7f 100644 --- a/essentials/v2/connectors/gmail.mdx +++ b/essentials/v2/connectors/gmail.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Gmail, and how to connect it." icon: "/images/connectors/gmail.svg" --- -Gmail logo - Use the Gmail connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/gong.mdx b/essentials/v2/connectors/gong.mdx index e489293f..959ae827 100644 --- a/essentials/v2/connectors/gong.mdx +++ b/essentials/v2/connectors/gong.mdx @@ -4,9 +4,6 @@ description: "What HydraDB syncs from Gong, and how to connect it." icon: "/images/connectors/gong-light.svg" --- -Gong logo -Gong logo - Use the Gong connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/google-calendar.mdx b/essentials/v2/connectors/google-calendar.mdx index 49349a54..7aa86f0b 100644 --- a/essentials/v2/connectors/google-calendar.mdx +++ b/essentials/v2/connectors/google-calendar.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Google Calendar, and how to connect it." icon: "/images/connectors/google-calendar.svg" --- -Google Calendar logo - Use the Google Calendar connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/google-drive.mdx b/essentials/v2/connectors/google-drive.mdx index 8bdb2faa..8587c689 100644 --- a/essentials/v2/connectors/google-drive.mdx +++ b/essentials/v2/connectors/google-drive.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Google Drive, and how to connect it." icon: "/images/connectors/google-drive.svg" --- -Google Drive logo - Use the Google Drive connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/google-search-console.mdx b/essentials/v2/connectors/google-search-console.mdx index 7629f64f..1f746130 100644 --- a/essentials/v2/connectors/google-search-console.mdx +++ b/essentials/v2/connectors/google-search-console.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Google Search Console, and how to connect icon: "/images/connectors/google-search-console.svg" --- -Google Search Console logo - Use the Google Search Console connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/googleads.mdx b/essentials/v2/connectors/googleads.mdx index 7230c44b..9a1e7a58 100644 --- a/essentials/v2/connectors/googleads.mdx +++ b/essentials/v2/connectors/googleads.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Google Ads, and how to connect it." icon: "/images/connectors/googleads.svg" --- -Google Ads logo - Use the Google Ads connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/granola.mdx b/essentials/v2/connectors/granola.mdx index eef5ed37..728b874c 100644 --- a/essentials/v2/connectors/granola.mdx +++ b/essentials/v2/connectors/granola.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Granola, and how to connect it." icon: "/images/connectors/granola.svg" --- -Granola logo - Use the Granola connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/greenhouse.mdx b/essentials/v2/connectors/greenhouse.mdx index 75ec0305..51853da0 100644 --- a/essentials/v2/connectors/greenhouse.mdx +++ b/essentials/v2/connectors/greenhouse.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Greenhouse, and how to connect it." icon: "/images/connectors/greenhouse.svg" --- -Greenhouse logo - Use the Greenhouse connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/guru.mdx b/essentials/v2/connectors/guru.mdx index 1e75faf7..c95e7cd5 100644 --- a/essentials/v2/connectors/guru.mdx +++ b/essentials/v2/connectors/guru.mdx @@ -4,9 +4,6 @@ description: "What HydraDB syncs from Guru, and how to connect it." icon: "/images/connectors/guru-light.svg" --- -Guru logo -Guru logo - Use the Guru connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/helpscout.mdx b/essentials/v2/connectors/helpscout.mdx index 165b73be..95b6ed76 100644 --- a/essentials/v2/connectors/helpscout.mdx +++ b/essentials/v2/connectors/helpscout.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Help Scout, and how to connect it." icon: "/images/connectors/helpscout.svg" --- -Help Scout logo - Use the Help Scout connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/hubspot.mdx b/essentials/v2/connectors/hubspot.mdx index 8efc07d8..6c2c6dbb 100644 --- a/essentials/v2/connectors/hubspot.mdx +++ b/essentials/v2/connectors/hubspot.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from HubSpot, and how to connect it." icon: "/images/connectors/hubspot.svg" --- -HubSpot logo - Use the HubSpot connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/intercom.mdx b/essentials/v2/connectors/intercom.mdx index 87711bae..e035d5d4 100644 --- a/essentials/v2/connectors/intercom.mdx +++ b/essentials/v2/connectors/intercom.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Intercom, and how to connect it." icon: "/images/connectors/intercom.svg" --- -Intercom logo - Use the Intercom connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/jira.mdx b/essentials/v2/connectors/jira.mdx index 0f45886d..64070043 100644 --- a/essentials/v2/connectors/jira.mdx +++ b/essentials/v2/connectors/jira.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Jira, and how to connect it." icon: "/images/connectors/jira.svg" --- -Jira logo - Use the Jira connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/launchdarkly.mdx b/essentials/v2/connectors/launchdarkly.mdx index 51dcd1a8..3ed090cf 100644 --- a/essentials/v2/connectors/launchdarkly.mdx +++ b/essentials/v2/connectors/launchdarkly.mdx @@ -4,9 +4,6 @@ description: "What HydraDB syncs from LaunchDarkly, and how to connect it." icon: "/images/connectors/launchdarkly-light.svg" --- -LaunchDarkly logo -LaunchDarkly logo - Use the LaunchDarkly connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/linear.mdx b/essentials/v2/connectors/linear.mdx index 8438cc6e..10bd126e 100644 --- a/essentials/v2/connectors/linear.mdx +++ b/essentials/v2/connectors/linear.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Linear, and how to connect it." icon: "/images/connectors/linear.svg" --- -Linear logo - Use the Linear connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/loom.mdx b/essentials/v2/connectors/loom.mdx index a78d7b91..50d67000 100644 --- a/essentials/v2/connectors/loom.mdx +++ b/essentials/v2/connectors/loom.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Loom, and how to connect it." icon: "/images/connectors/loom.svg" --- -Loom logo - Use the Loom connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/mailchimp.mdx b/essentials/v2/connectors/mailchimp.mdx index 4ec86f94..ce7fed57 100644 --- a/essentials/v2/connectors/mailchimp.mdx +++ b/essentials/v2/connectors/mailchimp.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Mailchimp, and how to connect it." icon: "/images/connectors/mailchimp.svg" --- -Mailchimp logo - Use the Mailchimp connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/microsoft-teams.mdx b/essentials/v2/connectors/microsoft-teams.mdx index 69b59252..cfb78e5c 100644 --- a/essentials/v2/connectors/microsoft-teams.mdx +++ b/essentials/v2/connectors/microsoft-teams.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Microsoft Teams, and how to connect it." icon: "/images/connectors/microsoft-teams.svg" --- -Microsoft Teams logo - Use the Microsoft Teams connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/mixpanel.mdx b/essentials/v2/connectors/mixpanel.mdx index 90bf55c8..90f78e78 100644 --- a/essentials/v2/connectors/mixpanel.mdx +++ b/essentials/v2/connectors/mixpanel.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Mixpanel, and how to connect it." icon: "/images/connectors/mixpanel.svg" --- -Mixpanel logo - Use the Mixpanel connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/monday.mdx b/essentials/v2/connectors/monday.mdx index 4ef0f422..5e26b65f 100644 --- a/essentials/v2/connectors/monday.mdx +++ b/essentials/v2/connectors/monday.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Monday.com, and how to connect it." icon: "/images/connectors/monday.svg" --- -Monday.com logo - Use the Monday.com connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/notion.mdx b/essentials/v2/connectors/notion.mdx index f54f823a..95456a29 100644 --- a/essentials/v2/connectors/notion.mdx +++ b/essentials/v2/connectors/notion.mdx @@ -4,9 +4,6 @@ description: "What HydraDB syncs from Notion, and how to connect it." icon: "/images/connectors/notion-light.svg" --- -Notion logo -Notion logo - Use the Notion connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/okta.mdx b/essentials/v2/connectors/okta.mdx index be967f37..59097192 100644 --- a/essentials/v2/connectors/okta.mdx +++ b/essentials/v2/connectors/okta.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Okta, and how to connect it." icon: "/images/connectors/okta.svg" --- -Okta logo - Use the Okta connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/outlook.mdx b/essentials/v2/connectors/outlook.mdx index 6de9de33..c7df0aa8 100644 --- a/essentials/v2/connectors/outlook.mdx +++ b/essentials/v2/connectors/outlook.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Outlook, and how to connect it." icon: "/images/connectors/outlook.svg" --- -Outlook logo - Use the Outlook connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/pagerduty.mdx b/essentials/v2/connectors/pagerduty.mdx index 3717a88e..96f9511d 100644 --- a/essentials/v2/connectors/pagerduty.mdx +++ b/essentials/v2/connectors/pagerduty.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from PagerDuty, and how to connect it." icon: "/images/connectors/pagerduty.svg" --- -PagerDuty logo - Use the PagerDuty connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/pipedrive.mdx b/essentials/v2/connectors/pipedrive.mdx index a841f002..6c0de1d9 100644 --- a/essentials/v2/connectors/pipedrive.mdx +++ b/essentials/v2/connectors/pipedrive.mdx @@ -4,9 +4,6 @@ description: "What HydraDB syncs from Pipedrive, and how to connect it." icon: "/images/connectors/pipedrive-light.svg" --- -Pipedrive logo -Pipedrive logo - Use the Pipedrive connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/posthog.mdx b/essentials/v2/connectors/posthog.mdx index cc4ec956..7b4f60fd 100644 --- a/essentials/v2/connectors/posthog.mdx +++ b/essentials/v2/connectors/posthog.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from PostHog, and how to connect it." icon: "/images/connectors/posthog.svg" --- -PostHog logo - Use the PostHog connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/quickbooks.mdx b/essentials/v2/connectors/quickbooks.mdx index 6057c12c..0918196b 100644 --- a/essentials/v2/connectors/quickbooks.mdx +++ b/essentials/v2/connectors/quickbooks.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from QuickBooks, and how to connect it." icon: "/images/connectors/quickbooks.svg" --- -QuickBooks logo - Use the QuickBooks connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/sendgrid.mdx b/essentials/v2/connectors/sendgrid.mdx index 7873a396..dce16c92 100644 --- a/essentials/v2/connectors/sendgrid.mdx +++ b/essentials/v2/connectors/sendgrid.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from SendGrid, and how to connect it." icon: "/images/connectors/sendgrid.svg" --- -SendGrid logo - Use the SendGrid connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/sentry.mdx b/essentials/v2/connectors/sentry.mdx index 8f9e7280..3f8b291d 100644 --- a/essentials/v2/connectors/sentry.mdx +++ b/essentials/v2/connectors/sentry.mdx @@ -4,9 +4,6 @@ description: "What HydraDB syncs from Sentry, and how to connect it." icon: "/images/connectors/sentry-light.svg" --- -Sentry logo -Sentry logo - Use the Sentry connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/servicenow.mdx b/essentials/v2/connectors/servicenow.mdx index 6913daf7..1b53298f 100644 --- a/essentials/v2/connectors/servicenow.mdx +++ b/essentials/v2/connectors/servicenow.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from ServiceNow, and how to connect it." icon: "/images/connectors/servicenow.svg" --- -ServiceNow logo - Use the ServiceNow connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/sharepoint.mdx b/essentials/v2/connectors/sharepoint.mdx index fe83cf64..e2d97d6b 100644 --- a/essentials/v2/connectors/sharepoint.mdx +++ b/essentials/v2/connectors/sharepoint.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from SharePoint, and how to connect it." icon: "/images/connectors/sharepoint.svg" --- -SharePoint logo - Use the SharePoint connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/shortcut.mdx b/essentials/v2/connectors/shortcut.mdx index d8217ef2..4e2bc752 100644 --- a/essentials/v2/connectors/shortcut.mdx +++ b/essentials/v2/connectors/shortcut.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Shortcut, and how to connect it." icon: "/images/connectors/shortcut.svg" --- -Shortcut logo - Use the Shortcut connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/slack.mdx b/essentials/v2/connectors/slack.mdx index 724b06d1..5c4ea019 100644 --- a/essentials/v2/connectors/slack.mdx +++ b/essentials/v2/connectors/slack.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Slack, and how to connect it." icon: "/images/connectors/slack.svg" --- -Slack logo - Use the Slack connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/smartsheet.mdx b/essentials/v2/connectors/smartsheet.mdx index bd8d66a9..81d3fbce 100644 --- a/essentials/v2/connectors/smartsheet.mdx +++ b/essentials/v2/connectors/smartsheet.mdx @@ -4,9 +4,6 @@ description: "What HydraDB syncs from Smartsheet, and how to connect it." icon: "/images/connectors/smartsheet-light.svg" --- -Smartsheet logo -Smartsheet logo - Use the Smartsheet connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/stripe.mdx b/essentials/v2/connectors/stripe.mdx index 249805d9..87429996 100644 --- a/essentials/v2/connectors/stripe.mdx +++ b/essentials/v2/connectors/stripe.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Stripe, and how to connect it." icon: "/images/connectors/stripe.svg" --- -Stripe logo - Use the Stripe connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/supabase.mdx b/essentials/v2/connectors/supabase.mdx index b1f9ccf0..eb210177 100644 --- a/essentials/v2/connectors/supabase.mdx +++ b/essentials/v2/connectors/supabase.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Supabase, and how to connect it." icon: "/images/connectors/supabase.svg" --- -Supabase logo - Use the Supabase connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/surveymonkey.mdx b/essentials/v2/connectors/surveymonkey.mdx index 8187745d..ffe37380 100644 --- a/essentials/v2/connectors/surveymonkey.mdx +++ b/essentials/v2/connectors/surveymonkey.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from SurveyMonkey, and how to connect it." icon: "/images/connectors/surveymonkey.svg" --- -SurveyMonkey logo - Use the SurveyMonkey connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/twilio.mdx b/essentials/v2/connectors/twilio.mdx index 76c024e8..272cb172 100644 --- a/essentials/v2/connectors/twilio.mdx +++ b/essentials/v2/connectors/twilio.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Twilio, and how to connect it." icon: "/images/connectors/twilio.svg" --- -Twilio logo - Use the Twilio connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/twitter.mdx b/essentials/v2/connectors/twitter.mdx index 3aabf593..aee598f4 100644 --- a/essentials/v2/connectors/twitter.mdx +++ b/essentials/v2/connectors/twitter.mdx @@ -1,13 +1,10 @@ --- -title: "twitter" -description: "What HydraDB syncs from twitter, and how to connect it." +title: "Twitter" +description: "What HydraDB syncs from Twitter, and how to connect it." icon: "/images/connectors/twitter-light.svg" --- -twitter logo -twitter logo - -Use the twitter connector to bring the following content into HydraDB. +Use the Twitter connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/typeform.mdx b/essentials/v2/connectors/typeform.mdx index 70d5d771..efa5941f 100644 --- a/essentials/v2/connectors/typeform.mdx +++ b/essentials/v2/connectors/typeform.mdx @@ -4,9 +4,6 @@ description: "What HydraDB syncs from Typeform, and how to connect it." icon: "/images/connectors/typeform-light.svg" --- -Typeform logo -Typeform logo - Use the Typeform connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/wrike.mdx b/essentials/v2/connectors/wrike.mdx index b250b124..2a5437d5 100644 --- a/essentials/v2/connectors/wrike.mdx +++ b/essentials/v2/connectors/wrike.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Wrike, and how to connect it." icon: "/images/connectors/wrike.svg" --- -Wrike logo - Use the Wrike connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/xero.mdx b/essentials/v2/connectors/xero.mdx index 48b253d6..a31624d4 100644 --- a/essentials/v2/connectors/xero.mdx +++ b/essentials/v2/connectors/xero.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Xero, and how to connect it." icon: "/images/connectors/xero.svg" --- -Xero logo - Use the Xero connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/zendesk.mdx b/essentials/v2/connectors/zendesk.mdx index 36ead256..dbc2c6d9 100644 --- a/essentials/v2/connectors/zendesk.mdx +++ b/essentials/v2/connectors/zendesk.mdx @@ -4,9 +4,6 @@ description: "What HydraDB syncs from Zendesk, and how to connect it." icon: "/images/connectors/zendesk-light.svg" --- -Zendesk logo -Zendesk logo - Use the Zendesk connector to bring the following content into HydraDB. ## What syncs diff --git a/essentials/v2/connectors/zoho-crm.mdx b/essentials/v2/connectors/zoho-crm.mdx index ceb43291..00efb1b6 100644 --- a/essentials/v2/connectors/zoho-crm.mdx +++ b/essentials/v2/connectors/zoho-crm.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Zoho CRM, and how to connect it." icon: "/images/connectors/zoho-crm.svg" --- -Zoho CRM logo - Use the Zoho CRM connector to bring the following content into HydraDB. ## What syncs @@ -22,7 +20,7 @@ The provider description lists these indexed object types: Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. -Use provider `zoho-crm` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. +Use provider `zoho_crm` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. ## Common mistakes diff --git a/essentials/v2/connectors/zoom.mdx b/essentials/v2/connectors/zoom.mdx index fc5e8171..e6701b68 100644 --- a/essentials/v2/connectors/zoom.mdx +++ b/essentials/v2/connectors/zoom.mdx @@ -4,8 +4,6 @@ description: "What HydraDB syncs from Zoom, and how to connect it." icon: "/images/connectors/zoom.svg" --- -Zoom logo - Use the Zoom connector to bring the following content into HydraDB. ## What syncs diff --git a/scripts/dashboard_provider_names.json b/scripts/dashboard_provider_names.json new file mode 100644 index 00000000..f9f17925 --- /dev/null +++ b/scripts/dashboard_provider_names.json @@ -0,0 +1,83 @@ +{ + "provenance": { + "repository": "hydra-db/dashboard-2.0", + "commit": "59ff1bb3c4b0f590f361ea8f67f16c7405501ec5", + "rule": "For each production provider: the name of its static entry in next-app/src/lib/providers.ts, looked up through displayIdForBackendKey, else prettifyKey(provider). This is the name the dashboard's connector catalog shows." + }, + "names": { + "airtable": "Airtable", + "asana": "Asana", + "attio": "Attio", + "avoma": "Avoma", + "bamboohr": "BambooHR", + "bigquery": "BigQuery", + "bookstack": "BookStack", + "calendly": "Calendly", + "clickup": "ClickUp", + "coda": "Superhuman", + "confluence": "Confluence", + "contentful": "Contentful", + "copper": "Copper", + "datadog": "Datadog", + "discord": "Discord", + "dropbox": "Dropbox", + "figma": "Figma", + "fireflies": "Fireflies", + "freshdesk": "Freshdesk", + "github": "GitHub", + "gitlab": "GitLab", + "gmail": "Gmail", + "gong": "Gong", + "google_calendar": "Google Calendar", + "google_drive": "Google Drive", + "google_search_console": "Google Search Console", + "googleads": "Google Ads", + "granola": "Granola", + "greenhouse": "Greenhouse", + "guru": "Guru", + "helpscout": "Help Scout", + "hubspot": "HubSpot", + "intercom": "Intercom", + "jira": "Jira", + "klaviyo": "Klaviyo", + "launchdarkly": "LaunchDarkly", + "lever": "Lever", + "linear": "Linear", + "loom": "Loom", + "mailchimp": "Mailchimp", + "microsoft_teams": "Microsoft Teams", + "mixpanel": "Mixpanel", + "monday": "Monday.com", + "notion": "Notion", + "okta": "Okta", + "outlook": "Outlook", + "pagerduty": "PagerDuty", + "pardot": "Pardot", + "pipedrive": "Pipedrive", + "posthog": "PostHog", + "quickbooks": "QuickBooks", + "recurly": "Recurly", + "sendgrid": "SendGrid", + "sentry": "Sentry", + "servicenow": "ServiceNow", + "sharepoint": "SharePoint", + "shortcut": "Shortcut", + "slack": "Slack", + "smartsheet": "Smartsheet", + "stripe": "Stripe", + "supabase": "Supabase", + "surveymonkey": "SurveyMonkey", + "twilio": "Twilio", + "twitter": "Twitter", + "typeform": "Typeform", + "wrike": "Wrike", + "xero": "Xero", + "zendesk": "Zendesk", + "zoho_crm": "Zoho CRM", + "zoom": "Zoom" + }, + "docs_overrides": { + "coda": "Coda" + }, + "docs_overrides_reason": "The dashboard brands coda as Superhuman (description: formerly Coda). The docs keep Coda because the provider slug, the API host and the logo are all Coda." +} diff --git a/scripts/generate_connector_pages.py b/scripts/generate_connector_pages.py index 31210d6c..5c776df5 100644 --- a/scripts/generate_connector_pages.py +++ b/scripts/generate_connector_pages.py @@ -13,6 +13,8 @@ ROOT = Path(__file__).resolve().parents[1] SNAPSHOT = ROOT / "scripts/connector_capabilities.json" PRODUCTION = ROOT / "scripts/production_providers.json" +NAMES = ROOT / "scripts/dashboard_provider_names.json" +TITLE_LOGOS = ROOT / "connector-logos.css" LOGOS = ROOT / "images/connectors" DIRECTORY = ROOT / "essentials/v2/connectors" INDEX = ROOT / "essentials/v2/connector-providers.mdx" @@ -78,6 +80,28 @@ def images(found, alt, class_name): ] +def title_logos(providers): + """Mintlify has no title icon slot, so the logo is drawn before #page-title on the page whose path names the provider.""" + page = lambda identifier, theme="html": f'{theme}[data-current-path$="/essentials/v2/connectors/{slug(identifier)}"] #page-title::before' + lines = [ + "/* Generated by scripts/generate_connector_pages.py. Each connector page shows its logo before the title. */", + 'html[data-current-path*="/essentials/v2/connectors/"] #page-title::before {', + " display: inline-block;", " width: 1.1em;", " height: 1.1em;", " margin-right: 0.35em;", " vertical-align: -0.19em;", + " background-position: center;", " background-repeat: no-repeat;", " background-size: 70%;", + " background-color: rgba(0, 0, 0, 0.04);", " box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.09);", " border-radius: 0.22em;", "}", + 'html.dark[data-current-path*="/essentials/v2/connectors/"] #page-title::before {', + " background-color: rgba(255, 255, 255, 0.05);", " box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09);", "}", + ] + for provider in providers: + found = logo(provider["provider"]) + if found is None: + continue + lines.append(f'{page(provider["provider"])} {{ content: ""; background-image: url("{found.light}"); }}') + if found.dark: + lines.append(f'{page(provider["provider"], "html.dark")} {{ background-image: url("{found.dark}"); }}') + return "\n".join(lines) + "\n" + + def card(provider, found): href = f"/essentials/v2/connectors/{slug(provider['provider'])}" if found is None: @@ -86,7 +110,7 @@ def card(provider, found): icon = f' icon="{found.light}"' else: icon = f" icon={{<>{''.join(images(found, '', 'connector-card-logo'))}}}" - return f' ' + return f' ' def navigation(by_group): @@ -112,19 +136,27 @@ def navigation(by_group): def pages(): - enabled = {slug(row["provider"]): group(row) for row in json.loads(PRODUCTION.read_text())["providers"]} + production = {slug(row["provider"]): row for row in json.loads(PRODUCTION.read_text())["providers"]} + enabled = {key: group(row) for key, row in production.items()} + names = json.loads(NAMES.read_text()) snapshot = json.loads(SNAPSHOT.read_text()) - providers = sorted((item for item in snapshot["providers"] if slug(item["provider"]) in enabled), key=lambda item: item["name"].casefold()) + providers = [] + for item in snapshot["providers"]: + if slug(item["provider"]) in production: + production_id = production[slug(item["provider"])]["provider"] + display_name = names["docs_overrides"].get(production_id, names["names"][production_id]) + providers.append({**item, "production_id": production_id, "display_name": display_name}) + providers.sort(key=lambda item: item["display_name"].casefold()) output = {} for provider in providers: identifier = provider["provider"] - name = provider["name"] + name = provider["display_name"] found = logo(identifier) lines = [ "---", f"title: {json.dumps(name)}", f"description: {json.dumps(f'What HydraDB syncs from {name}, and how to connect it.')}", *([f"icon: {json.dumps(found.light)}"] if found else []), - "---", "", *([*images(found, f"{name} logo", "connector-page-logo"), ""] if found else []), f"Use the {prose(name)} connector to bring the following content into HydraDB.", + "---", "", f"Use the {prose(name)} connector to bring the following content into HydraDB.", "", "## What syncs", "", ] if provider.get("summary"): @@ -153,7 +185,7 @@ def pages(): if identifier == "supabase": lines.append("Follow the Supabase connection flow in the dashboard. This is a push connector; the webhook triggers, not a polling credential, deliver changes.") else: - lines.append(f"Use provider `{identifier}` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment.") + lines.append(f"Use provider `{provider['production_id']}` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment.") lines.extend([ "", "## Common mistakes", "", "- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read.", @@ -176,6 +208,7 @@ def pages(): lines.extend(["## Related", "", "- [Connectors](/essentials/v2/connectors): shared setup and sync workflow", ""]) output[INDEX] = "\n".join(lines) output[NAVIGATION] = navigation(by_group) + output[TITLE_LOGOS] = title_logos(providers) return output @@ -190,7 +223,7 @@ def pages(): extra = set(DIRECTORY.glob("*.mdx")) - generated.keys() if stale or extra: raise SystemExit(f"Connector pages are stale: {stale + sorted(str(path.relative_to(ROOT)) for path in extra)}") - print(f"{len(generated) - 2} connector pages, the overview and the navigation group match the snapshot") + print(f"{len(generated) - 3} connector pages, the overview, the navigation group and the title logos match the snapshot") else: DIRECTORY.mkdir(parents=True, exist_ok=True) for path in set(DIRECTORY.glob("*.mdx")) - generated.keys(): diff --git a/scripts/test_connector_pages.py b/scripts/test_connector_pages.py index 0f780ab9..210a6cf0 100644 --- a/scripts/test_connector_pages.py +++ b/scripts/test_connector_pages.py @@ -10,6 +10,18 @@ PRODUCTION_SLUGS = {provider["provider"].replace("_", "-") for provider in PRODUCTION} LOGOS = ROOT / "images/connectors" INDEX = ROOT / "essentials/v2/connector-providers.mdx" +TITLE_LOGOS = ROOT / "connector-logos.css" +DASHBOARD_NAMES = json.loads((ROOT / "scripts/dashboard_provider_names.json").read_text()) + + +def body(text): + return text.split("\n---\n", 1)[1] + + +def title_logos(slug): + css = TITLE_LOGOS.read_text() if TITLE_LOGOS.is_file() else "" + rules = re.findall(rf'^(html(?:\.dark)?)\[data-current-path\$="/essentials/v2/connectors/{slug}"\] #page-title::before \{{[^}}]*url\("/images/connectors/([^"]+)"\)', css, re.M) + return dict(rules) def page_icon(text): @@ -61,7 +73,7 @@ def test_provider_pages_match_the_source_snapshot(self): for path, content in generated.items(): with self.subTest(page=str(path.relative_to(ROOT))): self.assertEqual(content, path.read_text()) - self.assertEqual(set(DIRECTORY.glob("*.mdx")), set(generated) - {ROOT / "essentials/v2/connector-providers.mdx", ROOT / "docs.json"}) + self.assertEqual(set(DIRECTORY.glob("*.mdx")), set(generated) - {INDEX, ROOT / "docs.json", TITLE_LOGOS}) def test_every_provider_page_is_registered_and_linked_from_the_catalog(self): config = json.loads((ROOT / "docs.json").read_text()) @@ -119,18 +131,56 @@ def test_every_logo_is_shown_and_every_shown_logo_exists(self): card = re.search(rf'', index) with self.subTest(provider=slug): self.assertIsNotNone(card) - page_images = sorted(re.findall(r'{re.search(r') + def test_monochrome_marks_change_only_their_ink_between_themes(self): pairs = sorted(path.name[: -len("-light.svg")] for path in LOGOS.glob("*-light.svg")) self.assertEqual(["attio", "datadog", "github", "gong", "guru", "launchdarkly", "notion", "pipedrive", "sentry", "smartsheet", "twitter", "typeform", "zendesk"], pairs) diff --git a/style.css b/style.css index 9414954f..da868c1a 100644 --- a/style.css +++ b/style.css @@ -98,13 +98,6 @@ img[src*="/images/connectors/"] { background-color: rgba(255, 255, 255, 0.88) !important; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); } -img.connector-page-logo { - width: 48px; - height: 48px; - margin: 0; - padding: 8px; - border-radius: 10px; -} img.connector-card-logo { width: 24px; height: 24px; From 88293cb670f4216bae6cd06bc89bbd596958d1e0 Mon Sep 17 00:00:00 2001 From: SohamRatnaparkhi Date: Mon, 16 Nov 2026 22:41:11 +0530 Subject: [PATCH 25/33] docs(connectors): rewrite six connector pages from reviewed facts (ENG-1618) Slack, BigQuery, GitHub, Notion, Stripe and HubSpot now render from a checked-in copy file per provider (scripts/connector_pages/). Each page answers, in one order: what to set up, what one document is and what HydraDB does with each attribute, how it fits the graph, who can read it, how changes and deletions arrive, what is not synced, example questions and the few things a customer would otherwise learn the hard way. Providers without a copy file keep their current body. Every page now opens on content, not a filler sentence, and no page names how a connector is built. Production setup steps that explained internals are reworded in one map in the generator. The sidebar and overview groups follow the order customers connect most, with "Docs & cloud storage" and "Tickets & project management" renamed. Coda shows as Superhuman, formerly Coda, as the dashboard does. Tests pin the sections, the attribute labels, the published filter keys, the permissions claim against production, the absence of internal terms and filler, and the group order. Co-Authored-By: Claude Opus 5.5 Signed-off-by: SohamRatnaparkhi --- .gitignore | 2 + connector-logos.css | 2 +- docs.json | 114 +-- essentials/v2/connector-providers.mdx | 127 ++-- essentials/v2/connectors/airtable.mdx | 4 +- essentials/v2/connectors/asana.mdx | 4 +- essentials/v2/connectors/attio.mdx | 4 +- essentials/v2/connectors/avoma.mdx | 4 +- essentials/v2/connectors/bamboohr.mdx | 4 +- essentials/v2/connectors/bigquery.mdx | 281 +++++++- essentials/v2/connectors/bookstack.mdx | 4 +- essentials/v2/connectors/calendly.mdx | 4 +- essentials/v2/connectors/clickup.mdx | 4 +- essentials/v2/connectors/coda.mdx | 8 +- essentials/v2/connectors/confluence.mdx | 4 +- essentials/v2/connectors/contentful.mdx | 4 +- essentials/v2/connectors/copper.mdx | 4 +- essentials/v2/connectors/datadog.mdx | 6 +- essentials/v2/connectors/discord.mdx | 4 +- essentials/v2/connectors/dropbox.mdx | 4 +- essentials/v2/connectors/figma.mdx | 4 +- essentials/v2/connectors/fireflies.mdx | 4 +- essentials/v2/connectors/freshdesk.mdx | 4 +- essentials/v2/connectors/github.mdx | 242 ++++++- essentials/v2/connectors/gitlab.mdx | 4 +- essentials/v2/connectors/gmail.mdx | 4 +- essentials/v2/connectors/gong.mdx | 4 +- essentials/v2/connectors/google-calendar.mdx | 4 +- essentials/v2/connectors/google-drive.mdx | 4 +- .../v2/connectors/google-search-console.mdx | 4 +- essentials/v2/connectors/googleads.mdx | 4 +- essentials/v2/connectors/granola.mdx | 4 +- essentials/v2/connectors/greenhouse.mdx | 4 +- essentials/v2/connectors/guru.mdx | 4 +- essentials/v2/connectors/helpscout.mdx | 4 +- essentials/v2/connectors/hubspot.mdx | 507 +++++++++++++- essentials/v2/connectors/intercom.mdx | 4 +- essentials/v2/connectors/jira.mdx | 4 +- essentials/v2/connectors/klaviyo.mdx | 4 +- essentials/v2/connectors/launchdarkly.mdx | 6 +- essentials/v2/connectors/lever.mdx | 4 +- essentials/v2/connectors/linear.mdx | 6 +- essentials/v2/connectors/loom.mdx | 4 +- essentials/v2/connectors/mailchimp.mdx | 4 +- essentials/v2/connectors/microsoft-teams.mdx | 4 +- essentials/v2/connectors/mixpanel.mdx | 4 +- essentials/v2/connectors/monday.mdx | 4 +- essentials/v2/connectors/notion.mdx | 209 +++++- essentials/v2/connectors/okta.mdx | 4 +- essentials/v2/connectors/outlook.mdx | 4 +- essentials/v2/connectors/pagerduty.mdx | 4 +- essentials/v2/connectors/pardot.mdx | 4 +- essentials/v2/connectors/pipedrive.mdx | 4 +- essentials/v2/connectors/posthog.mdx | 4 +- essentials/v2/connectors/quickbooks.mdx | 4 +- essentials/v2/connectors/recurly.mdx | 4 +- essentials/v2/connectors/sendgrid.mdx | 4 +- essentials/v2/connectors/sentry.mdx | 4 +- essentials/v2/connectors/servicenow.mdx | 4 +- essentials/v2/connectors/sharepoint.mdx | 6 +- essentials/v2/connectors/shortcut.mdx | 4 +- essentials/v2/connectors/slack.mdx | 256 ++++++- essentials/v2/connectors/smartsheet.mdx | 4 +- essentials/v2/connectors/stripe.mdx | 269 ++++++- essentials/v2/connectors/supabase.mdx | 5 +- essentials/v2/connectors/surveymonkey.mdx | 4 +- essentials/v2/connectors/twilio.mdx | 4 +- essentials/v2/connectors/twitter.mdx | 4 +- essentials/v2/connectors/typeform.mdx | 4 +- essentials/v2/connectors/wrike.mdx | 4 +- essentials/v2/connectors/xero.mdx | 4 +- essentials/v2/connectors/zendesk.mdx | 4 +- essentials/v2/connectors/zoho-crm.mdx | 4 +- essentials/v2/connectors/zoom.mdx | 4 +- scripts/connector_pages/bigquery.json | 311 ++++++++ scripts/connector_pages/github.json | 266 +++++++ scripts/connector_pages/hubspot.json | 227 ++++++ scripts/connector_pages/notion.json | 215 ++++++ scripts/connector_pages/slack.json | 296 ++++++++ scripts/connector_pages/stripe.json | 134 ++++ scripts/dashboard_provider_names.json | 4 +- scripts/generate_connector_pages.py | 361 ++++++++-- scripts/production_filter_keys.json | 662 ++++++++++++++++++ scripts/production_providers.json | 210 ++++-- scripts/test_connector_pages.py | 168 ++++- 85 files changed, 4568 insertions(+), 564 deletions(-) create mode 100644 scripts/connector_pages/bigquery.json create mode 100644 scripts/connector_pages/github.json create mode 100644 scripts/connector_pages/hubspot.json create mode 100644 scripts/connector_pages/notion.json create mode 100644 scripts/connector_pages/slack.json create mode 100644 scripts/connector_pages/stripe.json create mode 100644 scripts/production_filter_keys.json diff --git a/.gitignore b/.gitignore index 365fb72a..30bf2351 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,8 @@ __pycache__/ !/scripts/connector_capabilities.json !/scripts/production_providers.json !/scripts/dashboard_provider_names.json +!/scripts/production_filter_keys.json +!/scripts/connector_pages/ !/scripts/generate_connector_pages.py !/scripts/test_connector_pages.py .nvmrc diff --git a/connector-logos.css b/connector-logos.css index d82b56a0..34371f06 100644 --- a/connector-logos.css +++ b/connector-logos.css @@ -26,7 +26,6 @@ html[data-current-path$="/essentials/v2/connectors/bigquery"] #page-title::befor html[data-current-path$="/essentials/v2/connectors/bookstack"] #page-title::before { content: ""; background-image: url("/images/connectors/bookstack.svg"); } html[data-current-path$="/essentials/v2/connectors/calendly"] #page-title::before { content: ""; background-image: url("/images/connectors/calendly.svg"); } html[data-current-path$="/essentials/v2/connectors/clickup"] #page-title::before { content: ""; background-image: url("/images/connectors/clickup.svg"); } -html[data-current-path$="/essentials/v2/connectors/coda"] #page-title::before { content: ""; background-image: url("/images/connectors/coda.svg"); } html[data-current-path$="/essentials/v2/connectors/confluence"] #page-title::before { content: ""; background-image: url("/images/connectors/confluence.svg"); } html[data-current-path$="/essentials/v2/connectors/contentful"] #page-title::before { content: ""; background-image: url("/images/connectors/contentful.svg"); } html[data-current-path$="/essentials/v2/connectors/datadog"] #page-title::before { content: ""; background-image: url("/images/connectors/datadog-light.svg"); } @@ -82,6 +81,7 @@ html[data-current-path$="/essentials/v2/connectors/smartsheet"] #page-title::bef html.dark[data-current-path$="/essentials/v2/connectors/smartsheet"] #page-title::before { background-image: url("/images/connectors/smartsheet-dark.svg"); } html[data-current-path$="/essentials/v2/connectors/stripe"] #page-title::before { content: ""; background-image: url("/images/connectors/stripe.svg"); } html[data-current-path$="/essentials/v2/connectors/supabase"] #page-title::before { content: ""; background-image: url("/images/connectors/supabase.svg"); } +html[data-current-path$="/essentials/v2/connectors/coda"] #page-title::before { content: ""; background-image: url("/images/connectors/coda.svg"); } html[data-current-path$="/essentials/v2/connectors/surveymonkey"] #page-title::before { content: ""; background-image: url("/images/connectors/surveymonkey.svg"); } html[data-current-path$="/essentials/v2/connectors/twilio"] #page-title::before { content: ""; background-image: url("/images/connectors/twilio.svg"); } html[data-current-path$="/essentials/v2/connectors/twitter"] #page-title::before { content: ""; background-image: url("/images/connectors/twitter-light.svg"); } diff --git a/docs.json b/docs.json index cc210fd9..ae26047a 100644 --- a/docs.json +++ b/docs.json @@ -90,27 +90,36 @@ "pages": [ "essentials/v2/connector-providers", { - "group": "CRM & support", + "group": "Messaging & email", "pages": [ - "essentials/v2/connectors/attio", - "essentials/v2/connectors/copper", - "essentials/v2/connectors/freshdesk", - "essentials/v2/connectors/gong", - "essentials/v2/connectors/helpscout", - "essentials/v2/connectors/hubspot", - "essentials/v2/connectors/intercom", - "essentials/v2/connectors/pipedrive", - "essentials/v2/connectors/servicenow", - "essentials/v2/connectors/zendesk", - "essentials/v2/connectors/zoho-crm" + "essentials/v2/connectors/discord", + "essentials/v2/connectors/gmail", + "essentials/v2/connectors/microsoft-teams", + "essentials/v2/connectors/outlook", + "essentials/v2/connectors/sendgrid", + "essentials/v2/connectors/slack", + "essentials/v2/connectors/twilio", + "essentials/v2/connectors/twitter" ] }, { - "group": "Docs & files", + "group": "Tickets & project management", + "pages": [ + "essentials/v2/connectors/asana", + "essentials/v2/connectors/clickup", + "essentials/v2/connectors/jira", + "essentials/v2/connectors/linear", + "essentials/v2/connectors/monday", + "essentials/v2/connectors/shortcut", + "essentials/v2/connectors/smartsheet", + "essentials/v2/connectors/wrike" + ] + }, + { + "group": "Docs & cloud storage", "pages": [ "essentials/v2/connectors/airtable", "essentials/v2/connectors/bookstack", - "essentials/v2/connectors/coda", "essentials/v2/connectors/confluence", "essentials/v2/connectors/contentful", "essentials/v2/connectors/dropbox", @@ -118,7 +127,20 @@ "essentials/v2/connectors/google-drive", "essentials/v2/connectors/guru", "essentials/v2/connectors/notion", - "essentials/v2/connectors/sharepoint" + "essentials/v2/connectors/sharepoint", + "essentials/v2/connectors/coda" + ] + }, + { + "group": "Meetings & calendar", + "pages": [ + "essentials/v2/connectors/avoma", + "essentials/v2/connectors/calendly", + "essentials/v2/connectors/fireflies", + "essentials/v2/connectors/google-calendar", + "essentials/v2/connectors/granola", + "essentials/v2/connectors/loom", + "essentials/v2/connectors/zoom" ] }, { @@ -134,18 +156,6 @@ "essentials/v2/connectors/supabase" ] }, - { - "group": "HR & finance", - "pages": [ - "essentials/v2/connectors/bamboohr", - "essentials/v2/connectors/greenhouse", - "essentials/v2/connectors/lever", - "essentials/v2/connectors/quickbooks", - "essentials/v2/connectors/recurly", - "essentials/v2/connectors/stripe", - "essentials/v2/connectors/xero" - ] - }, { "group": "Marketing & analytics", "pages": [ @@ -162,41 +172,31 @@ ] }, { - "group": "Meetings & calendar", - "pages": [ - "essentials/v2/connectors/avoma", - "essentials/v2/connectors/calendly", - "essentials/v2/connectors/fireflies", - "essentials/v2/connectors/google-calendar", - "essentials/v2/connectors/granola", - "essentials/v2/connectors/loom", - "essentials/v2/connectors/zoom" - ] - }, - { - "group": "Messaging & email", + "group": "HR & finance", "pages": [ - "essentials/v2/connectors/discord", - "essentials/v2/connectors/gmail", - "essentials/v2/connectors/microsoft-teams", - "essentials/v2/connectors/outlook", - "essentials/v2/connectors/sendgrid", - "essentials/v2/connectors/slack", - "essentials/v2/connectors/twilio", - "essentials/v2/connectors/twitter" + "essentials/v2/connectors/bamboohr", + "essentials/v2/connectors/greenhouse", + "essentials/v2/connectors/lever", + "essentials/v2/connectors/quickbooks", + "essentials/v2/connectors/recurly", + "essentials/v2/connectors/stripe", + "essentials/v2/connectors/xero" ] }, { - "group": "Project management", + "group": "CRM & support", "pages": [ - "essentials/v2/connectors/asana", - "essentials/v2/connectors/clickup", - "essentials/v2/connectors/jira", - "essentials/v2/connectors/linear", - "essentials/v2/connectors/monday", - "essentials/v2/connectors/shortcut", - "essentials/v2/connectors/smartsheet", - "essentials/v2/connectors/wrike" + "essentials/v2/connectors/attio", + "essentials/v2/connectors/copper", + "essentials/v2/connectors/freshdesk", + "essentials/v2/connectors/gong", + "essentials/v2/connectors/helpscout", + "essentials/v2/connectors/hubspot", + "essentials/v2/connectors/intercom", + "essentials/v2/connectors/pipedrive", + "essentials/v2/connectors/servicenow", + "essentials/v2/connectors/zendesk", + "essentials/v2/connectors/zoho-crm" ] } ] diff --git a/essentials/v2/connector-providers.mdx b/essentials/v2/connector-providers.mdx index 595b81dc..8eac2490 100644 --- a/essentials/v2/connector-providers.mdx +++ b/essentials/v2/connector-providers.mdx @@ -1,33 +1,53 @@ --- title: "Connector providers" sidebarTitle: "All connectors" -description: "See what each connector indexes before you connect an account." +description: "See what each connector syncs, what it needs, and who can read what it brings in." --- -Choose a provider to see the indexed object types and any provider-specific setup steps. These pages describe content capabilities; availability and credentials come from your deployment's [provider catalog](/api-reference/v2/endpoint/list-connector-providers). +Choose a provider to see what to set up and what it syncs. Availability and credential fields come from your deployment's [provider catalog](/api-reference/v2/endpoint/list-connector-providers). The steps every connector shares are in the [connectors guide](/essentials/v2/connectors). -## CRM & support +## How to read a connector page + +1. **Before you connect:** the credentials, permissions and steps the provider needs. +2. **What gets synced:** what one document is, and what HydraDB does with each attribute it keeps. +3. **How it fits into the graph:** what kind of item each document becomes and what it connects to. +4. **Permissions:** whether the provider's permissions decide who can read an item. +5. **Keeping in sync:** how history, edits and deletions arrive. +6. **Not synced:** what does not come across. + +These pages follow that layout: [BigQuery](/essentials/v2/connectors/bigquery), [GitHub](/essentials/v2/connectors/github), [HubSpot](/essentials/v2/connectors/hubspot), [Notion](/essentials/v2/connectors/notion), [Slack](/essentials/v2/connectors/slack), [Stripe](/essentials/v2/connectors/stripe). The others list the indexed object types and setup notes while they move to it. + +## Messaging & email - } href="/essentials/v2/connectors/attio" horizontal /> - - - } href="/essentials/v2/connectors/gong" horizontal /> - - - - } href="/essentials/v2/connectors/pipedrive" horizontal /> - - } href="/essentials/v2/connectors/zendesk" horizontal /> - + + + + + + + + } href="/essentials/v2/connectors/twitter" horizontal /> -## Docs & files +## Tickets & project management + + + + + + + + + } href="/essentials/v2/connectors/smartsheet" horizontal /> + + + +## Docs & cloud storage - @@ -36,6 +56,19 @@ Choose a provider to see the indexed object types and any provider-specific setu } href="/essentials/v2/connectors/guru" horizontal /> } href="/essentials/v2/connectors/notion" horizontal /> + + + +## Meetings & calendar + + + + + + + + + ## Engineering @@ -51,18 +84,6 @@ Choose a provider to see the indexed object types and any provider-specific setu -## HR & finance - - - - - - - - - - - ## Marketing & analytics @@ -78,42 +99,32 @@ Choose a provider to see the indexed object types and any provider-specific setu } href="/essentials/v2/connectors/typeform" horizontal /> -## Meetings & calendar - - - - - - - - - - - -## Messaging & email +## HR & finance - - - - - - - - } href="/essentials/v2/connectors/twitter" horizontal /> + + + + + + + -## Project management +## CRM & support - - - - - - - } href="/essentials/v2/connectors/smartsheet" horizontal /> - + } href="/essentials/v2/connectors/attio" horizontal /> + + + } href="/essentials/v2/connectors/gong" horizontal /> + + + + } href="/essentials/v2/connectors/pipedrive" horizontal /> + + } href="/essentials/v2/connectors/zendesk" horizontal /> + ## Related diff --git a/essentials/v2/connectors/airtable.mdx b/essentials/v2/connectors/airtable.mdx index bfee4181..fa5b8ef1 100644 --- a/essentials/v2/connectors/airtable.mdx +++ b/essentials/v2/connectors/airtable.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Airtable, and how to connect it." icon: "/images/connectors/airtable.svg" --- -Use the Airtable connector to bring the following content into HydraDB. - ## What syncs -The provider description does not enumerate fixed indexed object types. Use the setup notes below when available; the resource picker shows what your connection can select. +No fixed object types: what syncs is the set of resources you select when you configure the connector. ## Connect diff --git a/essentials/v2/connectors/asana.mdx b/essentials/v2/connectors/asana.mdx index 7fe15900..b37202bb 100644 --- a/essentials/v2/connectors/asana.mdx +++ b/essentials/v2/connectors/asana.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Asana, and how to connect it." icon: "/images/connectors/asana.svg" --- -Use the Asana connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `tasks` - `subtasks` diff --git a/essentials/v2/connectors/attio.mdx b/essentials/v2/connectors/attio.mdx index 9c15d6cf..1daf734e 100644 --- a/essentials/v2/connectors/attio.mdx +++ b/essentials/v2/connectors/attio.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Attio, and how to connect it." icon: "/images/connectors/attio-light.svg" --- -Use the Attio connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `records` - `list_entries` diff --git a/essentials/v2/connectors/avoma.mdx b/essentials/v2/connectors/avoma.mdx index e0def5c1..57014ee2 100644 --- a/essentials/v2/connectors/avoma.mdx +++ b/essentials/v2/connectors/avoma.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Avoma, and how to connect it." icon: "/images/connectors/avoma.svg" --- -Use the Avoma connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `meetings` - `scorecard_evaluations` diff --git a/essentials/v2/connectors/bamboohr.mdx b/essentials/v2/connectors/bamboohr.mdx index 5a4858c2..d253a67d 100644 --- a/essentials/v2/connectors/bamboohr.mdx +++ b/essentials/v2/connectors/bamboohr.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from BambooHR, and how to connect it." icon: "/images/connectors/bamboohr.svg" --- -Use the BambooHR connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `employees` - `time_off_requests` diff --git a/essentials/v2/connectors/bigquery.mdx b/essentials/v2/connectors/bigquery.mdx index ded379f3..a67a1288 100644 --- a/essentials/v2/connectors/bigquery.mdx +++ b/essentials/v2/connectors/bigquery.mdx @@ -1,39 +1,272 @@ --- title: "BigQuery" -description: "What HydraDB syncs from BigQuery, and how to connect it." +description: "Sync rows from the BigQuery tables you choose, one searchable document per row." icon: "/images/connectors/bigquery.svg" --- -Use the BigQuery connector to bring the following content into HydraDB. +The BigQuery connector reads the tables you select in one Google Cloud project. Each row becomes one document. Its text lists every non-empty column as a label and a value, and the document is grouped under its table. -## What syncs +You decide, table by table, how HydraDB finds new and changed rows: a timestamp column, BigQuery's change history, or a full read of the table on every sync. -The provider description does not enumerate fixed indexed object types. Use the setup notes below when available; the resource picker shows what your connection can select. + +BigQuery is in beta. + -## Connect +## Before you connect -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + +Set a primary key for every table you select. HydraDB updates a row's document by its key. If a table has no real unique key, different rows can be treated as the same document and replace each other. + -1. Connect with a service-account key: paste the downloaded key file as credentials_json (grant the account the BigQuery Data Viewer and BigQuery Job User roles). client_email + private_key, or client_id + client_secret + refresh_token, also work. -2. Pick which tables to sync in the resource-selection step; each table's rows become searchable documents. -3. Replication is configured PER TABLE, alongside the selection: pass table_configs on POST /connectors/{id}/configure; the same request that selects the tables; with exactly one mode per table. The dashboard collects this on the table-selection screen. -4. Tables with a timestamp column that changes on every insert/update (updated_at, modified_ts, …): make it the sync cursor; table_configs: [{"table": "dataset.table", "replication_key": "updated_at"}]; and each sync reads only new and changed rows. -5. Append-only tables with no such column: use {"table": "dataset.table", "change_history": "appends"}. New rows stream from BigQuery's own change log; no schema change, no setup. -6. Tables that also receive UPDATEs but have no cursor column: use {"table": "dataset.table", "change_history": "changes"} instead, and run this once in BigQuery (no schema change, does not touch your data): ALTER TABLE dataset.table SET OPTIONS(enable_change_history=true). -7. Change-history backfill never blocks live syncing: changes are captured from the moment you connect, while existing rows backfill in the background in bounded slices per sync cycle. On a very large table the full backfill can take many cycles; expect it to be slow. To skip it, add "snapshot": "none" to that table's table_configs entry (only rows that change after connecting are indexed), or "snapshot": 10000 to cap the backfill at that many rows. -8. Fleet-wide fallbacks (optional, credential fields): a top-level "replication_key" applies that cursor to every synced table that has the column; "change_history" ("appends" | "changes") covers tables that still have no cursor. Per-table table_configs override both. -9. A table with no cursor and no change_history re-reads in full every sync cycle; fine for small reference tables, expensive for large ones. The dashboard requires a mode per table; API/SDK consumers should always send table_configs (or the fleet-wide fields). +BigQuery uses a Google Cloud service account. There is no sign-in flow: you paste credentials. Supply one complete set: a service-account key file, a service-account email with its private key, or an OAuth client id, client secret and refresh token. -Use provider `bigquery` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. +**Credentials** -## Common mistakes + +The service account's JSON key file, pasted whole. This is the recommended option. + -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. + +The service account's email. Use it together with `private_key` instead of the key file. + -## Related + +The service account's private key. Use it together with `client_email`. + -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings + +An OAuth client id. Valid only together with `client_secret` and `refresh_token`. + + + +An OAuth client secret. Valid only together with `client_id` and `refresh_token`. + + + +An OAuth refresh token you issued beforehand. It is required in the OAuth option, because a client id and secret alone cannot reach BigQuery. + + +Each credential field is optional on its own, but one of the three options must be complete. + +**Connector settings** + + +The Google Cloud project to read. Required unless the key file already names a project. + + + +The BigQuery location to run query jobs in. + + + +Limits discovery and sync to these datasets. + + + +A timestamp column to use as the sync cursor for every selected table that has it. A table's own setting overrides it. + + + +`appends` or `changes`, used for tables that still have no cursor column. A table's own setting overrides it. + + + +Off by default. When on, column-partitioned tables sync incrementally on their partition column. + + +**What the service account needs** + +- `BigQuery Data Viewer`: role on the project. +- `BigQuery Job User`: role on the project. +- `https://www.googleapis.com/auth/bigquery`: scope, in the OAuth option. Google rejects query jobs under the read-only BigQuery scope. + +**Set it up** + + + + In Google Cloud, create a service account. Give it the BigQuery Data Viewer and BigQuery Job User roles on the project, and download its JSON key. + + + Paste the key as `credentials_json`. Add `project_id` only if the key file does not name a project. To narrow what discovery shows, list `datasets`. + + + Discover lists the tables in the project, narrowed by `datasets` when you set it. Select the tables to sync. Each selected table becomes its own set of documents, one per row. + + + If the table has a timestamp column that changes on every insert and update, such as `updated_at`, make it the table's `replication_key`. If rows are only ever inserted, set `change_history` to `appends`. If rows are also updated and there is no such column, set `change_history` to `changes`. A table with none of these is read in full on every sync. If a table has both a cursor and change history, change history wins. + + + Run `ALTER TABLE dataset.table SET OPTIONS(enable_change_history=true)` once in BigQuery for that table. It changes no data. + + + Add `primary_keys` with the column or columns that identify one row, unless the table already declares a primary key. + + + Through the API or SDK, send the per-table settings as `table_configs` on the same Configure Connector request that selects the tables. The dashboard collects them on the table-selection screen. + + + +One `table_configs` entry per table, for each sync mode: + + +```json Timestamp cursor +{"table": "sales.orders", "replication_key": "updated_at", "primary_keys": ["order_id"]} +``` +```json Inserts only +{"table": "web.page_views", "change_history": "appends", "primary_keys": ["event_id"]} +``` +```json Inserts and updates +{"table": "crm.accounts", "change_history": "changes", "primary_keys": ["account_id"]} +``` +```json Changes only, no backfill +{"table": "crm.accounts", "change_history": "changes", "snapshot": "none", "primary_keys": ["account_id"]} +``` +```json Full read +{"table": "ref.countries", "primary_keys": ["code"]} +``` + + +Use provider `bigquery` with [Create Connector](/api-reference/v2/endpoint/create-connector). Then call [Discover Connector Resources](/api-reference/v2/endpoint/discover-connector-resources) to list what the credentials can reach, and [Configure Connector](/api-reference/v2/endpoint/configure-connector) to choose what to sync. + +Create one connector per account, each with that account's own credentials. One connector reads one Google Cloud project. + +## What gets synced + +**What the labels mean** + +- **Title:** names the item in results. +- **Searchable:** part of the text a query matches. +- **Date:** the time HydraDB uses for recency. +- **Filter:** a key a query can filter on, typed exactly as shown. +- **Link:** connects this item to another item. +- **Person or group in the graph:** a person or group the knowledge graph attaches the item to. +- **Access:** decides who can read the item. +- **Stored with results:** kept on the document, and shown when you open or inspect it. A search does not match it. +- **Not kept:** the provider has it, and HydraDB does not keep it. + +### Table rows + +- **One document:** One row of a selected table, as long as the table's key is unique. Rows that share a key replace one another. +- **Title:** The first non-empty column named `name`, `title`, `subject`, `summary` or `email`. Otherwise the first non-empty column that is not a number, in alphabetical column order, then the first number column. A row with none of these is titled with its table and row key. +- **Text:** The title on the first line. Then every non-empty column in alphabetical order, as `Column Name: value`: underscores become spaces and words are capitalised. Lists of values are joined with commas. Nested records are written as compact JSON. +- **Date:** The first of `updated_at`, `modified_at`, `last_modified`, `updated`, `created_at`, `created`, `timestamp`, `event_time` and `inserted_at` that holds a TIMESTAMP or epoch-seconds value. A row with none has no date. DATETIME columns carry no time zone and are not used. +- **Link back:** None. +- **Files:** None. Column values are kept as text only. + +**Title** + + +Names the row in results. It is also the first line of the row text, so a query matches it. + + +**Searchable** + + +Every non-empty column of the row, written as described above. This is what a query matches. + + +**Date** + + +The value of the first recognised time column. It is the document date used for recency. A sync cursor with another name does not set it. + + +**Filter** + + +The table as `dataset.table`. Limits a query to one table. + + + +The table as `dataset__table`, with two underscores. Another way to limit a query to one table. + + + +Always `table`. + + + +Limits a query to this connector's documents. + + + +Always `bigquery`. Limits a query to BigQuery documents. + + + + + +The table as `dataset.table`, so you can see where a result came from. + + + +The key the row was matched on. Together with the table, it decides which document a later sync updates. + + + + +## How it fits into the graph + +**What each item becomes** + +- Table rows: a record, an item that does not fit one of the specialised kinds, searched through its text. + +**Connections BigQuery creates** + +None. Rows are not linked to each other or to items in other tools, even when a column holds another table's key. + +**People and groups it names** + +- None are declared. Each row is grouped under its table. +- A column such as `email` or `user_id` is part of the row text only. It does not make the row a person in the graph. + +**What HydraDB reads from the text** + +Everything else. Customers, people, products and references between rows are found only by HydraDB reading the row text. + +There is no per-connector setup for this. Every connector maps its items onto the same shared model, and HydraDB finds people, organizations, projects, products and other entities in the text the same way for every source. To steer what it looks for, use [custom instructions](/essentials/v2/connectors#4-custom-ingestion-instructions). + +## Permissions + + +This connector does not carry BigQuery permissions into search. Every synced item is visible to everyone who can query the collection, unless you [set an access rule on the resource](/essentials/v2/connectors#set-your-own-rule-on-a-resource). + + +- BigQuery dataset, table, row-level and column-level access controls are not reproduced. +- Every column of a selected table becomes searchable text, including sensitive ones. Select tables with that in mind. + +**Enforce ACL** cannot be turned on for BigQuery, because it needs a provider that reports `acl_supported: true`. API-key requests must omit `enforce_acl`, including `false`. See [ACL on synced content](/essentials/v2/connectors#5-acl-native-rbac-awareness). + +Database and collection names decide where content lands; collection names do not authorize access. + +## Keeping in sync + +- **First sync:** A table with a cursor column reads back the window set by `lookback_days`, 30 days by default. A change-history table starts capturing changes at its first sync, not when you create the connector, and then loads its existing rows in slices of 1,000 per sync. Set `snapshot` to `none` to skip existing rows, or to a number to load at most that many rows, in no particular order. With `none`, changes between creating the connector and its first sync are not recovered. +- **New and changed items:** A cursor table picks up rows whose cursor value moved past the last sync. A `changes` table reads BigQuery's change history, about 11 minutes behind the current time. An `appends` table sees new rows only. A table with neither is read in full on every sync, and rows whose content did not change are skipped. +- **Edits:** An edited row updates the same document, as long as its key is unique. In `appends` mode, edits to existing rows are never seen. +- **Deletions:** Deleted rows are not removed. A row deleted in BigQuery stays searchable in HydraDB. +- BigQuery keeps change history for its time-travel window, 2 to 7 days. If a change-history table is not synced within that window, for example while the connector is paused, the table is skipped with an error on each sync until it is loaded again from the start. + +After the first sync, HydraDB syncs every hour by default. Set `sync_interval_seconds` to change it. + +## Not synced + +- Tables you did not select. +- Rows deleted in BigQuery: they stay in HydraDB. +- Updates to existing rows in tables set to `appends`. +- BigQuery dataset, table, row-level and column-level access controls. +- Table and column descriptions and other schema details. Only row values are kept. + +## Questions this lets you answer + +- What does the `sales.orders` table say about order 10432? +- Which rows in `crm.accounts` mention Acme Corp? +- Which rows in `support.tickets` were updated most recently? +- What plan and region are recorded for jane@example.com in `billing.customers`? + +## Good to know + +- **Large tables need a sync mode.** A table with no cursor column and no change history is read in full on every sync, which is expensive on large tables. +- **Change-history rows carry two extra lines.** In change-history mode, each row also has `_change_type` and `_change_timestamp` columns, and both appear in the row text. +- **A cursor column does not always set the date.** Recency uses only the time column names listed above. A cursor with another name drives sync without setting the document date. +- **Backfill is best effort.** Deleting rows while existing rows are still loading can make other rows be missed. diff --git a/essentials/v2/connectors/bookstack.mdx b/essentials/v2/connectors/bookstack.mdx index 1f900218..1da6680e 100644 --- a/essentials/v2/connectors/bookstack.mdx +++ b/essentials/v2/connectors/bookstack.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from BookStack, and how to connect it." icon: "/images/connectors/bookstack.svg" --- -Use the BookStack connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `books` - `pages` diff --git a/essentials/v2/connectors/calendly.mdx b/essentials/v2/connectors/calendly.mdx index 41fc5f18..3caff741 100644 --- a/essentials/v2/connectors/calendly.mdx +++ b/essentials/v2/connectors/calendly.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Calendly, and how to connect it." icon: "/images/connectors/calendly.svg" --- -Use the Calendly connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `scheduled_events` diff --git a/essentials/v2/connectors/clickup.mdx b/essentials/v2/connectors/clickup.mdx index 5f48401d..5436685a 100644 --- a/essentials/v2/connectors/clickup.mdx +++ b/essentials/v2/connectors/clickup.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from ClickUp, and how to connect it." icon: "/images/connectors/clickup.svg" --- -Use the ClickUp connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `team` - `task` diff --git a/essentials/v2/connectors/coda.mdx b/essentials/v2/connectors/coda.mdx index 1073ef80..c790660a 100644 --- a/essentials/v2/connectors/coda.mdx +++ b/essentials/v2/connectors/coda.mdx @@ -1,14 +1,12 @@ --- -title: "Coda" -description: "What HydraDB syncs from Coda, and how to connect it." +title: "Superhuman" +description: "What HydraDB syncs from Superhuman (formerly Coda), and how to connect it." icon: "/images/connectors/coda.svg" --- -Use the Coda connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `docs` - `pages` diff --git a/essentials/v2/connectors/confluence.mdx b/essentials/v2/connectors/confluence.mdx index 97c86da2..e2ecaf2e 100644 --- a/essentials/v2/connectors/confluence.mdx +++ b/essentials/v2/connectors/confluence.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Confluence, and how to connect it." icon: "/images/connectors/confluence.svg" --- -Use the Confluence connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `content` - `attachments` diff --git a/essentials/v2/connectors/contentful.mdx b/essentials/v2/connectors/contentful.mdx index 00b00df6..c2ed1666 100644 --- a/essentials/v2/connectors/contentful.mdx +++ b/essentials/v2/connectors/contentful.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Contentful, and how to connect it." icon: "/images/connectors/contentful.svg" --- -Use the Contentful connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `entries` - `tasks` diff --git a/essentials/v2/connectors/copper.mdx b/essentials/v2/connectors/copper.mdx index 0e98bbca..32354478 100644 --- a/essentials/v2/connectors/copper.mdx +++ b/essentials/v2/connectors/copper.mdx @@ -3,11 +3,9 @@ title: "Copper" description: "What HydraDB syncs from Copper, and how to connect it." --- -Use the Copper connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `opportunities` - `leads` diff --git a/essentials/v2/connectors/datadog.mdx b/essentials/v2/connectors/datadog.mdx index 120c112e..a90e5ff6 100644 --- a/essentials/v2/connectors/datadog.mdx +++ b/essentials/v2/connectors/datadog.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Datadog, and how to connect it." icon: "/images/connectors/datadog-light.svg" --- -Use the Datadog connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `aggregate_logs` - `metric_response_time` @@ -32,7 +30,7 @@ Create one connector per account, using that account's credentials where require 5. Both keys are site-specific. If your org is not on US1, set the site field (for example us5.datadoghq.com or datadoghq.eu) or every call fails against the wrong region. 6. Datadog has nothing to browse, so the resource step offers a single "All data" row; select it to continue. It syncs the whole org: monitors are indexed with their message text, which is where runbooks live, along with dashboards, SLO definitions, notebooks and declared incidents. 7. Incidents Datadog marks PRIVATE are indexed too, and their restriction is carried over: Datadog scopes a private incident to its participants, and we record it as visible to nobody, so an access-scoped search never returns it. Each indexed incident also records its own visibility in its text, so you can tell which is which. -8. That mirroring only takes effect once access-scoped search is enabled for this connector on our side, which is a per-provider setting rather than something the scopes control. Until it is on, a private incident behaves the way it did before and is searchable by everyone in your HydraDB tenant. Ask us to turn it on, or skip just the incident_read scope if that trade is not acceptable: every other stream syncs without it. +8. That mirroring takes effect only once HydraDB turns on access-scoped search for this connector. Until then, a private incident is searchable by everyone in your HydraDB tenant. Ask us to turn it on, or leave out the incident_read scope if that is not acceptable: everything else syncs without it. 9. The metric query, log query and SLO id fields are optional additions, each selecting one extra time series to index. Leaving them blank costs you those series and nothing else; everything above syncs without them. Use provider `datadog` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. diff --git a/essentials/v2/connectors/discord.mdx b/essentials/v2/connectors/discord.mdx index 756501a7..46044c47 100644 --- a/essentials/v2/connectors/discord.mdx +++ b/essentials/v2/connectors/discord.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Discord, and how to connect it." icon: "/images/connectors/discord.svg" --- -Use the Discord connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `messages` diff --git a/essentials/v2/connectors/dropbox.mdx b/essentials/v2/connectors/dropbox.mdx index 4fcb284a..dd37432e 100644 --- a/essentials/v2/connectors/dropbox.mdx +++ b/essentials/v2/connectors/dropbox.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Dropbox, and how to connect it." icon: "/images/connectors/dropbox.svg" --- -Use the Dropbox connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `files` diff --git a/essentials/v2/connectors/figma.mdx b/essentials/v2/connectors/figma.mdx index dbffb3b7..36e9809a 100644 --- a/essentials/v2/connectors/figma.mdx +++ b/essentials/v2/connectors/figma.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Figma, and how to connect it." icon: "/images/connectors/figma.svg" --- -Use the Figma connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `files` diff --git a/essentials/v2/connectors/fireflies.mdx b/essentials/v2/connectors/fireflies.mdx index a2d488df..1ab5ef9c 100644 --- a/essentials/v2/connectors/fireflies.mdx +++ b/essentials/v2/connectors/fireflies.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Fireflies, and how to connect it." icon: "/images/connectors/fireflies.svg" --- -Use the Fireflies connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `transcripts` diff --git a/essentials/v2/connectors/freshdesk.mdx b/essentials/v2/connectors/freshdesk.mdx index f40460c9..cd012bea 100644 --- a/essentials/v2/connectors/freshdesk.mdx +++ b/essentials/v2/connectors/freshdesk.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Freshdesk, and how to connect it." icon: "/images/connectors/freshdesk.svg" --- -Use the Freshdesk connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `tickets` - `conversations` diff --git a/essentials/v2/connectors/github.mdx b/essentials/v2/connectors/github.mdx index 65d72eb5..f248801c 100644 --- a/essentials/v2/connectors/github.mdx +++ b/essentials/v2/connectors/github.mdx @@ -1,34 +1,240 @@ --- title: "GitHub" -description: "What HydraDB syncs from GitHub, and how to connect it." +description: "Sync issues and pull requests, each with its whole discussion, from the GitHub repositories you choose." icon: "/images/connectors/github-light.svg" --- -Use the GitHub connector to bring the following content into HydraDB. +The GitHub connector reads the repositories you select. Each issue and each pull request becomes one document that carries its body and its whole discussion: conversation comments and, for a pull request, review comments and review summaries. -## What syncs +Issues and pull requests are linked to the issues they reference or close, to their parent issue, and to the Linear issues, Slack messages and Notion pages they link to. -The provider description lists these indexed object types: +## Before you connect -- `issues` -- `issue_comments` +GitHub uses a personal access token. A classic token needs `repo`, or `public_repo` for public repositories only. A fine-grained token works with the access GitHub grants it. -## Connect +**Credentials** -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + +A GitHub personal access token with read access to repositories and issues. + -Set a stable, distinct `provider_account_scope` for each connected account yourself, for example `github-account-a` and `github-account-b`. These are caller-provided example identifiers, not validated native account-ID formats. The API stores the supplied value; it does not derive or validate the provider's account identity. Reusing a scope can make sources with matching external IDs overwrite each other in the same destination. +**Scopes for a classic token** -Use provider `github` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. +- `public_repo`: public repositories only. Use this or `repo`. +- `repo`: private and public repositories. Reading a private repository's collaborators for permissions also needs it. +- `read:org`: reads which organization teams can access a repository, for permissions. If GitHub refuses it, the connector raises a permission warning. -## Common mistakes +HydraDB checks for `repo` or `public_repo` only when GitHub reports the token's scopes. Fine-grained tokens may not report them. -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. +**Set it up** -## Related + + + In GitHub, create a personal access token with `repo`, or `public_repo` for public repositories only. Add `read:org` if you want organization team access captured. + + + Paste the token as `access_token`. + + + Discover lists every repository the token's user owns, collaborates on, or can see as an organization member. Select the repositories to sync. + + -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings +Use provider `github` with [Create Connector](/api-reference/v2/endpoint/create-connector). Then call [Discover Connector Resources](/api-reference/v2/endpoint/discover-connector-resources) to list what the credentials can reach, and [Configure Connector](/api-reference/v2/endpoint/configure-connector) to choose what to sync. + +Create one connector per account, each with that account's own credentials. GitHub rate limits apply per token, so a large first sync can use up the hourly quota. That is why the first sync is bounded. + +To connect several GitHub accounts, give each connector its own `provider_account_scope`, for example `github-account-a` and `github-account-b`. Both are caller-provided example identifiers. HydraDB stores the value as given and does not check it against GitHub's own account ids. Two connectors that share a scope and write to the same collection can overwrite each other's items. See [several accounts from one provider](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). + +## What gets synced + +**What the labels mean** + +- **Title:** names the item in results. +- **Searchable:** part of the text a query matches. +- **Date:** the time HydraDB uses for recency. +- **Filter:** a key a query can filter on, typed exactly as shown. +- **Link:** connects this item to another item. +- **Person or group in the graph:** a person or group the knowledge graph attaches the item to. +- **Access:** decides who can read the item. +- **Stored with results:** kept on the document, and shown when you open or inspect it. A search does not match it. +- **Not kept:** the provider has it, and HydraDB does not keep it. + +### Issues and pull requests + +- **One document:** One issue or one pull request, with its whole discussion inside it. +- **Title:** The issue or pull request title. +- **Text:** The body. Each comment, review comment and review summary is added as its own searchable part of the item, with its author and time, and for a review comment the file, line and the comment it replies to. Empty comments are skipped. Labels are written as a `Labels` line, the creation time as a `Created` line, and a sub-issue's parent as a `Parent` line. +- **Date:** When the issue or pull request was last updated. +- **Link back:** The issue or pull request page on GitHub. +- **Files:** Images and files in bodies and comments are not downloaded. + +**Title** + + +Names the result. HydraDB also scans it for Linear issue keys and links. + + +**Searchable** + + +The main text. References in it become links: `#123`, `owner/repo#123`, closing keywords, and Linear, Slack and Notion links. + + + +Each comment, review comment and review summary is searchable with the item. Its author is recorded as a commenter, and references inside it become links of the item. + + + +Written as the `Labels` line, so a query can match a label. + + + +Written as the `Created` line. + + + +The id `owner/repo#number`. It keeps later syncs on the same document, and it is what items in other tools, such as Linear issues, link to. + + +**Date** + + +When the item was last updated. It is the document date, and it moves with every edit or new comment. + + +**Filter** + + +The repository as `owner/name`. Limits a query to one repository. + + + +The issue or pull request number. Targets one item. + + + +Limits a query to this connector. + + + +Always `github`. + + +**Link** + + +A sub-issue's parent issue, as `owner/repo#number`. Links the sub-issue to its parent, and is written as the `Parent` line. + + + +Marks a pull request, so closing keywords in its body link it to the issues it closes. + + +**Person or group in the graph** + + +Each `@username` in the body, recorded as a person the item mentions. + + +**Access** + + +The selected repository. Its audience decides who can read every issue and pull request in it. + + + + + +The login of the person who opened the item. It is not searchable and not added to the graph as a person. + + + +Assignee logins. Not searchable, and not added to the graph. + + + +`open` or `closed`. Not searchable. + + + +When the item was closed. + + + +The milestone title and its due date. + + + + +## How it fits into the graph + +**What each item becomes** + +- Issues and pull requests: a ticket, an issue, task or support ticket, with its workflow and ownership details. + +**Connections GitHub creates** + +- A sub-issue to its parent issue. +- An issue or pull request to each issue or pull request it references in its body or discussion. +- A pull request to each issue its body closes with a closing keyword. +- An issue or pull request to a Linear issue it links to, or names after a closing word. +- An issue or pull request to a Slack message or Notion page it links to. +- In the other direction, Linear issues link to the GitHub pull requests attached to them. +- References inside code blocks, inline code and HTML comments are ignored. + +**People and groups it names** + +- The author of each comment, as a commenter. +- Each `@username` mentioned in the body. +- The person who opened the item and its assignees are not declared as people. + +**What HydraDB reads from the text** + +The body and discussion text: topics, decisions, and people and projects named in prose. + +There is no per-connector setup for this. Every connector maps its items onto the same shared model, and HydraDB finds people, organizations, projects, products and other entities in the text the same way for every source. To steer what it looks for, use [custom instructions](/essentials/v2/connectors#4-custom-ingestion-instructions). + +## Permissions + +This connector can carry GitHub permissions into search. + +- **Who can read an item:** Access follows the repository, not the single issue. A public or internal repository can be read by everyone in your HydraDB tenant unless you set an access rule. A private repository can be read by its collaborators and by the organization teams that have access to it. +- **How a person is identified:** The email address on a collaborator's public GitHub profile. Teams are added as groups. +- **When permissions cannot be read:** If a collaborator hides their profile email, the collaborator list is incomplete, there are too many people to express, or GitHub refuses a request, the connector raises a permission warning. An access rule you set on the repository stays in force. Without a rule, depending on your deployment's setting, the repository's items are either readable by everyone or hidden until permissions can be read. + +- One collaborator with a hidden public email stops HydraDB from capturing a private repository's audience. Set an access rule on such a repository. +- Internal repositories are open to everyone in your HydraDB tenant. Check that this matches who should see them. + +Captured permissions filter search only when **Enforce ACL** is on for the connector. Only a signed-in human workspace owner or writer can turn it on, in the dashboard connector settings. API-key requests must omit `enforce_acl`, including `false`. See [Enforce ACL](/essentials/v2/connectors#enforce-acl). You can also [set your own rule on a resource](/essentials/v2/connectors#set-your-own-rule-on-a-resource). + +Database and collection names decide where content lands; collection names do not authorize access. + +## Keeping in sync + +- **First sync:** Reaches back 30 days by default, set by `lookback_days`. The window is measured from the repository's most recent activity, not from today, so a quiet repository still brings in its last stretch of work. +- **New and changed items:** Each sync asks GitHub for items updated since the last sync. A changed item is sent again with its whole discussion. +- **Edits:** Editing an issue or pull request, or adding a comment, moves its updated time, so the whole item is sent again. +- **Deletions:** Deleted issues and pull requests are not removed. An item that disappears from GitHub can stay searchable in HydraDB. + +After the first sync, HydraDB syncs every hour by default. Set `sync_interval_seconds` to change it. + +## Not synced + +- Code, commits and diffs. +- Releases, wikis, projects and GitHub Discussions. +- Images and files attached in bodies and comments. +- Repositories the token's user cannot see. + +## Questions this lets you answer + +- What was decided in the discussion on the pull request that added rate limiting? +- Which pull request fixed issue `acme/api#412`? +- Which issues in `acme/api` are labelled bug and mention the login timeout? +- Which Linear issue does this pull request close? +- What did reviewers say about the caching change in `acme/web`? + +## Good to know + +- **Who opened or owns an item is not searchable.** The opener, the assignees and whether the item is open are stored on it, but a query does not match them. +- **Comments arrive inside their issue or pull request.** Each comment is part of its issue or pull request, so a result is the whole item, not a single comment. diff --git a/essentials/v2/connectors/gitlab.mdx b/essentials/v2/connectors/gitlab.mdx index b6ee7d08..249e3235 100644 --- a/essentials/v2/connectors/gitlab.mdx +++ b/essentials/v2/connectors/gitlab.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from GitLab, and how to connect it." icon: "/images/connectors/gitlab.svg" --- -Use the GitLab connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `issues` - `merge_requests` diff --git a/essentials/v2/connectors/gmail.mdx b/essentials/v2/connectors/gmail.mdx index 82588e7f..b57fdbdb 100644 --- a/essentials/v2/connectors/gmail.mdx +++ b/essentials/v2/connectors/gmail.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Gmail, and how to connect it." icon: "/images/connectors/gmail.svg" --- -Use the Gmail connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `messages` diff --git a/essentials/v2/connectors/gong.mdx b/essentials/v2/connectors/gong.mdx index 959ae827..a17fe059 100644 --- a/essentials/v2/connectors/gong.mdx +++ b/essentials/v2/connectors/gong.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Gong, and how to connect it." icon: "/images/connectors/gong-light.svg" --- -Use the Gong connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `calls` - `answered_scorecards` diff --git a/essentials/v2/connectors/google-calendar.mdx b/essentials/v2/connectors/google-calendar.mdx index 7aa86f0b..b0710b67 100644 --- a/essentials/v2/connectors/google-calendar.mdx +++ b/essentials/v2/connectors/google-calendar.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Google Calendar, and how to connect it." icon: "/images/connectors/google-calendar.svg" --- -Use the Google Calendar connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `events` diff --git a/essentials/v2/connectors/google-drive.mdx b/essentials/v2/connectors/google-drive.mdx index 8587c689..0804e777 100644 --- a/essentials/v2/connectors/google-drive.mdx +++ b/essentials/v2/connectors/google-drive.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Google Drive, and how to connect it." icon: "/images/connectors/google-drive.svg" --- -Use the Google Drive connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `files` diff --git a/essentials/v2/connectors/google-search-console.mdx b/essentials/v2/connectors/google-search-console.mdx index 1f746130..7b5baf6c 100644 --- a/essentials/v2/connectors/google-search-console.mdx +++ b/essentials/v2/connectors/google-search-console.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Google Search Console, and how to connect icon: "/images/connectors/google-search-console.svg" --- -Use the Google Search Console connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `performance_report_query` - `performance_report_page` diff --git a/essentials/v2/connectors/googleads.mdx b/essentials/v2/connectors/googleads.mdx index 9a1e7a58..46ec1bd2 100644 --- a/essentials/v2/connectors/googleads.mdx +++ b/essentials/v2/connectors/googleads.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Google Ads, and how to connect it." icon: "/images/connectors/googleads.svg" --- -Use the Google Ads connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `accessible_customers` - `customer_hierarchy` diff --git a/essentials/v2/connectors/granola.mdx b/essentials/v2/connectors/granola.mdx index 728b874c..19b082a1 100644 --- a/essentials/v2/connectors/granola.mdx +++ b/essentials/v2/connectors/granola.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Granola, and how to connect it." icon: "/images/connectors/granola.svg" --- -Use the Granola connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `notes` diff --git a/essentials/v2/connectors/greenhouse.mdx b/essentials/v2/connectors/greenhouse.mdx index 51853da0..139f15ab 100644 --- a/essentials/v2/connectors/greenhouse.mdx +++ b/essentials/v2/connectors/greenhouse.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Greenhouse, and how to connect it." icon: "/images/connectors/greenhouse.svg" --- -Use the Greenhouse connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `candidates` - `applications` diff --git a/essentials/v2/connectors/guru.mdx b/essentials/v2/connectors/guru.mdx index c95e7cd5..e7686238 100644 --- a/essentials/v2/connectors/guru.mdx +++ b/essentials/v2/connectors/guru.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Guru, and how to connect it." icon: "/images/connectors/guru-light.svg" --- -Use the Guru connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `cards` diff --git a/essentials/v2/connectors/helpscout.mdx b/essentials/v2/connectors/helpscout.mdx index 95b6ed76..65517169 100644 --- a/essentials/v2/connectors/helpscout.mdx +++ b/essentials/v2/connectors/helpscout.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Help Scout, and how to connect it." icon: "/images/connectors/helpscout.svg" --- -Use the Help Scout connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `conversations` - `conversation_threads` diff --git a/essentials/v2/connectors/hubspot.mdx b/essentials/v2/connectors/hubspot.mdx index 6c2c6dbb..0c63fa03 100644 --- a/essentials/v2/connectors/hubspot.mdx +++ b/essentials/v2/connectors/hubspot.mdx @@ -1,39 +1,498 @@ --- title: "HubSpot" -description: "What HydraDB syncs from HubSpot, and how to connect it." +description: "Sync HubSpot CRM records and logged activities, with record-level permissions worked out from owners and teams." icon: "/images/connectors/hubspot.svg" --- -Use the HubSpot connector to bring the following content into HydraDB. +The HubSpot connector reads the CRM object types you select: deals, tickets, contacts and companies, and the notes, emails, calls, meetings and tasks logged on them. Each record or activity becomes one document. -## What syncs +Activities are linked to the deal, contact or company they are logged on. Records carry a list of who can read them, worked out from HubSpot owners and teams. -The provider description lists these indexed object types: +## Before you connect -- `deals` -- `tickets` -- `contacts` -- `companies` -- `notes` -- `emails` -- `calls` -- `meetings` -- `tasks` +HubSpot uses an access token from a private app, or an OAuth access token. -## Connect +**Credentials** -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + +A HubSpot private-app or OAuth access token. HydraDB does not refresh it, so a short-lived token must be replaced when it expires. + -Use provider `hubspot` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. +**Scopes for the app, all required** -## Common mistakes +- `crm.objects.contacts.read`: contacts. +- `crm.objects.companies.read`: companies. +- `crm.objects.deals.read`: deals. +- `tickets`: tickets. +- `crm.objects.notes.read`: notes. +- `crm.objects.calls.read`: calls. +- `crm.objects.emails.read`: logged emails. +- `sales-email-read`: email bodies. Without it, emails sync with their subject only. +- `crm.objects.meetings.read`: meetings. +- `crm.objects.tasks.read`: tasks. +- `crm.objects.owners.read`: record owners, used to work out who can read a record. +- `settings.users.read`: users, their teams and super-admin status, used for permissions. +- `settings.users.teams.read`: teams, used for permissions. -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. +**Set it up** -## Related + + + In HubSpot, create a private app or an OAuth app that requests every scope above, and copy its access token. + + + Paste the token as `access_token`. + + + Discover lists the CRM object types the token can read. Select the ones to sync. Notes, emails, calls, meetings and tasks are offered only when the token can also read contacts, companies, deals and tickets. + + + When you configure the connector, list in `full_visibility_roles` the names of HubSpot roles whose members can see every record. HubSpot does not report what a role can see, so a member of such a role is otherwise not given access. Leaving the setting out keeps the current list; an empty list clears it. + + -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings +Use provider `hubspot` with [Create Connector](/api-reference/v2/endpoint/create-connector). Then call [Discover Connector Resources](/api-reference/v2/endpoint/discover-connector-resources) to list what the credentials can reach, and [Configure Connector](/api-reference/v2/endpoint/configure-connector) to choose what to sync. + +Create one connector per account, each with that account's own credentials. + +## What gets synced + +**What the labels mean** + +- **Title:** names the item in results. +- **Searchable:** part of the text a query matches. +- **Date:** the time HydraDB uses for recency. +- **Filter:** a key a query can filter on, typed exactly as shown. +- **Link:** connects this item to another item. +- **Person or group in the graph:** a person or group the knowledge graph attaches the item to. +- **Access:** decides who can read the item. +- **Stored with results:** kept on the document, and shown when you open or inspect it. A search does not match it. +- **Not kept:** the provider has it, and HydraDB does not keep it. + +### On every HubSpot document + +**Date** + + +When the record was last modified. It is the document date, unless the activity has its own time. It is also in the text of notes and emails. + + + +Used as the date only when there is no activity time and no modification time. It is also in the text of deals, tickets, notes, emails and calls. + + +**Filter** + + +The HubSpot record id. Targets one record, and keeps later syncs on the same document. + + + +The object type, such as `deals` or `notes`. Limits a query to one type. + + + +Set when there was a problem working out who can read the record, such as readers that could not be resolved or a removed team. A warning does not by itself mean the record is public. + + + +Limits a query to this connector. + + + +Always `hubspot`. + + +**Access** + + +The people who can read the record, worked out as described under Permissions. + + + + + +The object type the record came from. To filter on it, use `additional_metadata.hubspot_object`. + + + +Properties beyond the ones listed on this page are not kept. + + + + +### Deals + +- **One document:** One deal. +- **Title:** The deal name. +- **Text:** The deal description, then `Deal`, `Amount`, `Stage`, `Close date` and `Owner` lines. +- **Date:** When the deal was last modified, else when it was created. +- **Link back:** None. + +**Title** + + +Names the deal in results. + + +**Searchable** + + +The description and the lines described above. + + + +Written as the `Amount` line. + + + +Written as the `Close date` line. + + + +Written as the `Stage` line, as HubSpot's internal stage id, not its display name. + + + +The owner's email, written as the `Owner` line. HydraDB can find the rep from that text. The owner is not declared as the deal's assignee. + + + + + +HubSpot's pipeline id. It is not turned into a name and is not searchable. + + + + +### Tickets + +- **One document:** One ticket. +- **Title:** The ticket subject. +- **Text:** The ticket content. When the content is empty, the subject with `Priority` and `Stage` lines. +- **Date:** When the ticket was last modified, else when it was created. +- **Link back:** None. + +**Title** + + +Names the ticket in results. + + +**Searchable** + + +The content, or the fallback described above. + + + +Written as a `Priority` line. + + + +Written as a `Stage` line only when the ticket has no content. Otherwise it is stored and not searchable. + + + + + +The owner's email. It is not part of the text. + + + + +### Contacts and companies + +- **One document:** One contact, or one company. +- **Title:** A contact's first and last name, else their email. A company's name. +- **Text:** A contact: `Name`, `Email`, `Company`, `Phone` and `Job title` lines. A company: its description, then `Company`, `Domain` and `Industry` lines. +- **Date:** When the record was last modified, else when it was created. +- **Link back:** None. + +**Title** + + +Names the contact or company in results. + + +**Searchable** + + +The lines described above. + + + +A contact's email, so a query can find the person by email. + + + +A contact's company name. + + + +A contact's job title. + + + +A company's website domain, written as the `Domain` line. + + + +A company's industry, written as the `Industry` line. + + +**Link** + + +Links a contact to its company's document. + + + + + +The owner's email. It is not part of the text. + + + + +### Notes + +- **One document:** One note. +- **Title:** Usually the first 80 characters of the note. +- **Text:** The note body, converted from HTML to plain text. +- **Date:** When the note was logged as happening, else when it was last modified, else when it was created. +- **Link back:** None. +- **Files:** Files attached to the note are not synced. + +**Searchable** + + +The note body. + + +**Date** + + +When the note was logged as happening. It is the document date. + + + + + +The owner's email. It is not part of the text. + + + + +### Emails + +- **One document:** One logged email. +- **Title:** The email subject. +- **Text:** The plain-text body, else the HTML body converted to text, else the subject. The email's details, such as its direction, sender, recipient, owner and times, are written into the text as a list of fields. +- **Date:** When the email happened, else when it was last modified, else when it was created. +- **Link back:** None. +- **Files:** Files attached to the email are not synced. + +**Title** + + +The subject. Names the email in results. + + +**Searchable** + + +The body and details described above. + + + +The sender. Part of the text, and attached to the email in the graph. + + + +The recipient. Part of the text, and attached to the email in the graph. + + + +Whether the email was inbound or outbound, written into the details. + + + +The owner's email, written into the details. + + +**Date** + + +When the email happened. It is the document date, and it is written into the details. + + +### Calls + +- **One document:** One logged call. +- **Title:** Usually the first 80 characters of the call text, which include the call details. +- **Text:** The call notes, converted from HTML, then `Call`, `Direction` and `Owner` lines. +- **Date:** When the call happened, else when it was last modified, else when it was created. +- **Link back:** None. + +**Searchable** + + +The notes and lines described above. + + + +Written as the `Direction` line, so a query can match inbound or outbound calls. + + + +Written as the `Owner` line. HydraDB can find the rep from that text. + + +**Date** + + +When the call happened. It is the document date. + + + + + +The call length in milliseconds. It is not searchable. + + + + +### Meetings and tasks + +- **One document:** One logged meeting, or one task. +- **Title:** The meeting title, or the task subject. +- **Text:** A meeting: its notes converted from HTML, then `Meeting`, `Location`, `Start` and `Owner` lines. A task: its body converted from HTML, then `Task`, `Status`, `Priority` and `Owner` lines. +- **Date:** When the meeting or task happened, else when it was last modified, else when it was created. +- **Link back:** None. + +**Title** + + +Names the meeting or task in results. + + +**Searchable** + + +The notes or body and the lines described above. + + + +Where the meeting was held, written as the `Location` line. + + + +When the meeting started, written as the `Start` line. The document date is the activity time. + + + +A task's status, written as the `Status` line. + + + +A task's priority, written as the `Priority` line. + + + +Written as the `Owner` line. HydraDB can find the rep from that text. + + +**Date** + + +When the meeting or task happened. It is the document date. + + + + + +When the meeting ended. It is not searchable and is not the document date. + + + + +## How it fits into the graph + +**What each item becomes** + +- Deals: a ticket, an issue, task or support ticket, with its workflow and ownership details. +- Tickets: a ticket, an issue, task or support ticket, with its workflow and ownership details. +- Contacts and companies: a record, an item that does not fit one of the specialised kinds, searched through its text. +- Notes: a comment, a note or comment that belongs to another item. +- Emails: an email, an email message, with its sender, recipients and subject. +- Calls: a message, a chat or conversation message, kept with its author and its thread. +- Meetings and tasks: a record, an item that does not fit one of the specialised kinds, searched through its text. + +**Connections HubSpot creates** + +- A contact to its company. +- A note, email, call, meeting or task to the deal it is logged on. With no deal, to the contact. With no contact, to the company. When several records of one type are associated, the one with the lowest id is used. +- An activity is linked to that record only if everyone who can read the activity can also read the record. +- No links to other tools. + +**People and groups it names** + +- The record owner, as an email. +- The sender and recipient of each email. +- A contact's company name. + +**What HydraDB reads from the text** + +Everything in deal descriptions, ticket content, and the text of notes, emails, calls, meetings and tasks. + +There is no per-connector setup for this. Every connector maps its items onto the same shared model, and HydraDB finds people, organizations, projects, products and other entities in the text the same way for every source. To steer what it looks for, use [custom instructions](/essentials/v2/connectors#4-custom-ingestion-instructions). + +## Permissions + +This connector can carry HubSpot permissions into search. + +- **Who can read an item:** Each deal, contact and company carries HubSpot's owners and the teams that can access it, including parent teams. Its readers are the owners, every member of those teams, every super admin, and the members of the roles you list in `full_visibility_roles`. An activity can be read by everyone who can read any record it is logged on. An activity logged on nothing uses its own owner and teams. +- **How a person is identified:** A HubSpot user's or owner's email address. +- **When permissions cannot be read:** If a record names owners or teams but their readers cannot be worked out, the record gets an access warning, which you can find with `additional_metadata.rbac_warning`. An access rule you set stays in force. Without one, depending on your deployment's setting, the record is either readable by everyone or hidden until its readers can be worked out. A record with no owner or team information is not restricted and gets no warning. + +- Tickets do not carry HubSpot's owner and team access lists, so owners and teams do not restrict them. Set an access rule on the tickets resource if tickets must be private. +- Queues and archived owners give access to no one. +- If an activity's parent record is not synced, the activity can be readable by everyone. Sync the deals, contacts and companies your activities are logged on. +- This is HydraDB's reading of HubSpot owners, teams and roles. It is not a guarantee that HydraDB matches HubSpot's visibility in every case. + +Captured permissions filter search only when **Enforce ACL** is on for the connector. Only a signed-in human workspace owner or writer can turn it on, in the dashboard connector settings. API-key requests must omit `enforce_acl`, including `false`. See [Enforce ACL](/essentials/v2/connectors#enforce-acl). You can also [set your own rule on a resource](/essentials/v2/connectors#set-your-own-rule-on-a-resource). + +Database and collection names decide where content lands; collection names do not authorize access. + +## Keeping in sync + +- **First sync:** Each selected object type reaches back the window set by `lookback_days`, 30 days by default. +- **New and changed items:** Each sync reads records modified since the last sync. Owners, users and teams are read in full on every sync. +- **Edits:** An edited record is read again and replaces its document. +- **Deletions:** Deleted and archived HubSpot records are not removed. They stay in HydraDB. +- If the token lacks the scope for one object type, that type can be skipped while the others sync. + +After the first sync, HydraDB syncs every hour by default. Set `sync_interval_seconds` to change it. + +## Not synced + +- Object types you did not select. +- Email bodies, when the token lacks `sales-email-read`: those emails have their subject only. +- Products, line items, quotes, forms, marketing emails and other HubSpot objects. +- Files attached to activities. +- Custom CRM properties. +- Deletions and archived records. + +## Questions this lets you answer + +- What was said on the last call with this contact? +- What amounts and close dates are recorded on the synced deals? +- Which notes and emails are logged on the Acme deal? +- What did the customer write in their last email? + +## Good to know + +- **Stages and pipelines are ids.** Deal stages appear in the text as HubSpot's internal ids, not their display names. Pipelines are not searchable. +- **Results do not link back to HubSpot.** No HubSpot URL is stored. Use `additional_metadata.hubspot_id` to find the record. +- **Older connectors sync every object type.** A connector set up before object types could be selected keeps syncing all of them until you configure it again. diff --git a/essentials/v2/connectors/intercom.mdx b/essentials/v2/connectors/intercom.mdx index e035d5d4..203f9c5b 100644 --- a/essentials/v2/connectors/intercom.mdx +++ b/essentials/v2/connectors/intercom.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Intercom, and how to connect it." icon: "/images/connectors/intercom.svg" --- -Use the Intercom connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `conversations` - `conversation_parts` diff --git a/essentials/v2/connectors/jira.mdx b/essentials/v2/connectors/jira.mdx index 64070043..8a69c5e5 100644 --- a/essentials/v2/connectors/jira.mdx +++ b/essentials/v2/connectors/jira.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Jira, and how to connect it." icon: "/images/connectors/jira.svg" --- -Use the Jira connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `issues` - `issue_comments` diff --git a/essentials/v2/connectors/klaviyo.mdx b/essentials/v2/connectors/klaviyo.mdx index 49256be4..b48283e3 100644 --- a/essentials/v2/connectors/klaviyo.mdx +++ b/essentials/v2/connectors/klaviyo.mdx @@ -3,11 +3,9 @@ title: "Klaviyo" description: "What HydraDB syncs from Klaviyo, and how to connect it." --- -Use the Klaviyo connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `campaigns` - `flows` diff --git a/essentials/v2/connectors/launchdarkly.mdx b/essentials/v2/connectors/launchdarkly.mdx index 3ed090cf..06a4e375 100644 --- a/essentials/v2/connectors/launchdarkly.mdx +++ b/essentials/v2/connectors/launchdarkly.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from LaunchDarkly, and how to connect it." icon: "/images/connectors/launchdarkly-light.svg" --- -Use the LaunchDarkly connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `feature_flags` - `audit_log` @@ -27,7 +25,7 @@ Create one connector per account, using that account's credentials where require 4. After connecting, pick the projects to sync. Everything project-scoped follows that choice: the project's flags, its environments, and its segments. 5. Some data is account-wide and is always synced, whatever you pick: the audit log, account members and teams. Members and teams are what let a flag's maintainer resolve to a person or a group rather than a raw id. 6. Flags are indexed with their real targeting, per environment; on/off state, the default variation or percentage rollout, individual targets, prerequisite flags and each rule, including which segment a rule matches. Segments are indexed alongside, so "who is this flag on for" is answerable end to end. -7. Two things are deliberately never indexed. An environment's SDK key and mobile key are dropped before they leave the tap, because they are live credentials for your own environment. So are a member's MFA state and whether they have a password. +7. Two things are never indexed. An environment's SDK key and mobile key are dropped before indexing, because they are live credentials for your own environment. So are a member's MFA state and whether they have a password. 8. A brand-new LaunchDarkly organization has one empty default project and no flags, so a correctly configured connector on a new org indexes almost nothing. That is the org being empty, not the token being wrong. 9. With permission-aware search on, each project is restricted to the members who can view it in LaunchDarkly: their base role, custom roles (preset roles included), team roles and permission grants are evaluated the way LaunchDarkly does. Flags, segments and environments follow their project, and so does each audit log entry about one project; members, teams and account-level audit entries are not restricted. Invited members who have not joined yet are not included. The token's role must read projects, members, teams and custom roles (the built-in Reader can). A role this evaluation cannot read exactly makes every project readable by everyone in your workspace, with a warning on the connector naming it. diff --git a/essentials/v2/connectors/lever.mdx b/essentials/v2/connectors/lever.mdx index 10ad566e..f060cb91 100644 --- a/essentials/v2/connectors/lever.mdx +++ b/essentials/v2/connectors/lever.mdx @@ -3,11 +3,9 @@ title: "Lever" description: "What HydraDB syncs from Lever, and how to connect it." --- -Use the Lever connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `opportunities` - `candidates` diff --git a/essentials/v2/connectors/linear.mdx b/essentials/v2/connectors/linear.mdx index 10bd126e..a1f8d2ef 100644 --- a/essentials/v2/connectors/linear.mdx +++ b/essentials/v2/connectors/linear.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Linear, and how to connect it." icon: "/images/connectors/linear.svg" --- -Use the Linear connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `Issues` @@ -16,7 +14,7 @@ The provider description lists these indexed object types: Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. -Set a stable, distinct `provider_account_scope` for each connected account yourself, for example `linear-account-a` and `linear-account-b`. These are caller-provided example identifiers, not validated native account-ID formats. The API stores the supplied value; it does not derive or validate the provider's account identity. Reusing a scope can make sources with matching external IDs overwrite each other in the same destination. +Set a stable, distinct `provider_account_scope` for each connected account yourself, for example `linear-account-a` and `linear-account-b`. These are caller-provided example identifiers. The API stores the supplied value as given; it does not check it against the provider's own account ids. Reusing a scope can make sources with matching external IDs overwrite each other in the same destination. Use provider `linear` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. diff --git a/essentials/v2/connectors/loom.mdx b/essentials/v2/connectors/loom.mdx index 50d67000..7eca14c4 100644 --- a/essentials/v2/connectors/loom.mdx +++ b/essentials/v2/connectors/loom.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Loom, and how to connect it." icon: "/images/connectors/loom.svg" --- -Use the Loom connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `videos` diff --git a/essentials/v2/connectors/mailchimp.mdx b/essentials/v2/connectors/mailchimp.mdx index ce7fed57..0ef89506 100644 --- a/essentials/v2/connectors/mailchimp.mdx +++ b/essentials/v2/connectors/mailchimp.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Mailchimp, and how to connect it." icon: "/images/connectors/mailchimp.svg" --- -Use the Mailchimp connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `campaigns` - `lists` diff --git a/essentials/v2/connectors/microsoft-teams.mdx b/essentials/v2/connectors/microsoft-teams.mdx index cfb78e5c..295de11e 100644 --- a/essentials/v2/connectors/microsoft-teams.mdx +++ b/essentials/v2/connectors/microsoft-teams.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Microsoft Teams, and how to connect it." icon: "/images/connectors/microsoft-teams.svg" --- -Use the Microsoft Teams connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `channel_messages` - `chat_messages` diff --git a/essentials/v2/connectors/mixpanel.mdx b/essentials/v2/connectors/mixpanel.mdx index 90f78e78..810d19c2 100644 --- a/essentials/v2/connectors/mixpanel.mdx +++ b/essentials/v2/connectors/mixpanel.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Mixpanel, and how to connect it." icon: "/images/connectors/mixpanel.svg" --- -Use the Mixpanel connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `export` - `funnels` diff --git a/essentials/v2/connectors/monday.mdx b/essentials/v2/connectors/monday.mdx index 5e26b65f..2bc5e651 100644 --- a/essentials/v2/connectors/monday.mdx +++ b/essentials/v2/connectors/monday.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Monday.com, and how to connect it." icon: "/images/connectors/monday.svg" --- -Use the Monday.com connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `items` - `assets` diff --git a/essentials/v2/connectors/notion.mdx b/essentials/v2/connectors/notion.mdx index 95456a29..bbb9af31 100644 --- a/essentials/v2/connectors/notion.mdx +++ b/essentials/v2/connectors/notion.mdx @@ -1,33 +1,208 @@ --- title: "Notion" -description: "What HydraDB syncs from Notion, and how to connect it." +description: "Sync the Notion pages and databases you share with HydraDB, one searchable document per page." icon: "/images/connectors/notion-light.svg" --- -Use the Notion connector to bring the following content into HydraDB. +The Notion connector reads the databases and top-level pages you share with its integration. Each page becomes one document: a database row, a selected page, and every sub-page under them. -## What syncs +Each sub-page is linked to the page it sits under, so a page tree stays connected. -The provider description lists these indexed object types: +## Before you connect -- `pages` +Notion uses an internal integration token. -## Connect +**Credentials** -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + +A Notion internal integration token. It starts with `secret_` or `ntn_`. + -Set a stable, distinct `provider_account_scope` for each connected account yourself, for example `notion-account-a` and `notion-account-b`. These are caller-provided example identifiers, not validated native account-ID formats. The API stores the supplied value; it does not derive or validate the provider's account identity. Reusing a scope can make sources with matching external IDs overwrite each other in the same destination. +**Capabilities to give the integration** -Use provider `notion` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. +- `Read content`: required. Lets HydraDB search, read pages and blocks, and query databases. +- `Read user information without email`: optional. Lets HydraDB check the token and show who created a page. -## Common mistakes +**Set it up** -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. + + + In Notion, create an internal integration with the Read content capability, and copy its token. + + + Share each database and page you want synced with the integration. Discovery lists only what the integration can see. + + + Paste the token as `access_token`. + + + Discover lists every database the integration can see, and every page that sits at the top of the workspace. Select at least one: a sync needs a selected resource. + + -## Related +Use provider `notion` with [Create Connector](/api-reference/v2/endpoint/create-connector). Then call [Discover Connector Resources](/api-reference/v2/endpoint/discover-connector-resources) to list what the credentials can reach, and [Configure Connector](/api-reference/v2/endpoint/configure-connector) to choose what to sync. -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings +Create one connector per account, each with that account's own credentials. + +To connect several Notion accounts, give each connector its own `provider_account_scope`, for example `notion-account-a` and `notion-account-b`. Both are caller-provided example identifiers. HydraDB stores the value as given and does not check it against Notion's own account ids. Two connectors that share a scope and write to the same collection can overwrite each other's items. See [several accounts from one provider](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). + +## What gets synced + +**What the labels mean** + +- **Title:** names the item in results. +- **Searchable:** part of the text a query matches. +- **Date:** the time HydraDB uses for recency. +- **Filter:** a key a query can filter on, typed exactly as shown. +- **Link:** connects this item to another item. +- **Person or group in the graph:** a person or group the knowledge graph attaches the item to. +- **Access:** decides who can read the item. +- **Stored with results:** kept on the document, and shown when you open or inspect it. A search does not match it. +- **Not kept:** the provider has it, and HydraDB does not keep it. + +### Pages + +- **One document:** One Notion page: a database row, a selected page, or any sub-page under them. A sub-page is its own document, not part of its parent's text. +- **Title:** The page's title. A page without a title uses its Notion id. +- **Text:** The page title at the top, the creator as an `Author` line, and the plain text of the page's blocks in order, one block per line: paragraphs, headings, bulleted and numbered lists, to-dos, toggles, quotes, callouts and code. Text inside toggles and callouts is included. +- **Date:** When the page was last edited. +- **Link back:** The page in Notion. +- **Files:** Images and files are kept as links to the original. Text in images can be added when HydraDB's image reading is available. The text of PDF and Word files is not guaranteed to be read. + +**Title** + + +Names the page in results, and is written at the top of its text. + + +**Searchable** + + +The block text described above. This is what a query matches. + + + +The creator's display name, or their Notion id if the name cannot be read. It is the `Author` line of the text, and the graph records the page as written by that person. + + +**Date** + + +When the page was last edited. It is the document date, and it is not part of the text. + + +**Filter** + + +The page's Notion id. Limits a query to one page. + + + +Limits a query to this connector. + + + +Always `notion`. + + +**Link** + + +For a sub-page, the page it sits under. Links the two, so a page tree is connected in the graph. + + +**Person or group in the graph** + + +The creator's email, when Notion returns one. It lets the graph recognise the same person across tools. + + + +People @mentioned in the page. The graph records each as mentioned by the page. + + + + + +When the page was created. + + + +The Notion user id of the last editor. It is not turned into a name or a person. + + + +Property values other than the title, such as status, owner, dates and tags, are not read. + + + +Comments on pages are not read. + + + + +## How it fits into the graph + +**What each item becomes** + +- Pages: a page, a page, article or other document-style content. + +**Connections Notion creates** + +- A sub-page to the page it sits under. +- No links from Notion pages to other tools. In the other direction, GitHub issues, pull requests and comments that link to a Notion page are linked to it. + +**People and groups it names** + +- The page's creator, with an email when Notion returns one. +- People @mentioned in the page. + +**What HydraDB reads from the text** + +Everything in the page text: topics, and people or projects named in plain text rather than @mentioned. Database properties are not read, so structure kept only in database columns is not available. + +There is no per-connector setup for this. Every connector maps its items onto the same shared model, and HydraDB finds people, organizations, projects, products and other entities in the text the same way for every source. To steer what it looks for, use [custom instructions](/essentials/v2/connectors#4-custom-ingestion-instructions). + +## Permissions + + +This connector does not carry Notion permissions into search. Every synced item is visible to everyone who can query the collection, unless you [set an access rule on the resource](/essentials/v2/connectors#set-your-own-rule-on-a-resource). + + +- Notion's page sharing is not read. + +**Enforce ACL** cannot be turned on for Notion, because it needs a provider that reports `acl_supported: true`. API-key requests must omit `enforce_acl`, including `false`. See [ACL on synced content](/essentials/v2/connectors#5-acl-native-rbac-awareness). + +Database and collection names decide where content lands; collection names do not authorize access. + +## Keeping in sync + +- **First sync:** A database reaches back 30 days by last edited time by default, set by `lookback_days`. A selected page and its sub-pages are walked on every sync. +- **New and changed items:** For a database, rows edited since the last sync are read again in full, with their sub-pages. For a selected page, the whole tree is walked on every sync and pages edited since the last sync are sent. +- **Edits:** An edited page is sent again and replaces its document. A sub-page under a database row is picked up only when the row itself is edited. +- **Deletions:** Pages deleted or unshared in Notion are not removed. They stay searchable in HydraDB. +- Sub-pages are followed up to 10 levels deep, and blocks up to 20 levels deep. +- A sub-page or block that Notion now refuses or cannot find is skipped instead of failing its page. + +After the first sync, HydraDB syncs every hour by default. Set `sync_interval_seconds` to change it. + +## Not synced + +- Database property values other than the title. +- Comments on pages. +- Pages and databases not shared with the integration. +- Text in unsupported blocks, such as table rows, equations, embeds and bookmarks. +- Deletions: deleted pages stay in HydraDB. + +## Questions this lets you answer + +- What does our onboarding page say about laptop setup? +- Which Notion pages did Priya create? +- Which pages mention Alex? +- What sub-pages sit under the Engineering Handbook page? + +## Good to know + +- **Database columns are not synced.** A database row brings in its title and page text only. Status, owner, dates and tags are not read. +- **Edits to a sub-page under a database row can be missed.** They are picked up when the row itself is edited. Pages you select directly do not have this problem, because they are walked on every sync. +- **Only the last 30 days of a database come in first.** Set `lookback_days` to reach further back. diff --git a/essentials/v2/connectors/okta.mdx b/essentials/v2/connectors/okta.mdx index 59097192..174fe8fb 100644 --- a/essentials/v2/connectors/okta.mdx +++ b/essentials/v2/connectors/okta.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Okta, and how to connect it." icon: "/images/connectors/okta.svg" --- -Use the Okta connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `users` - `groups` diff --git a/essentials/v2/connectors/outlook.mdx b/essentials/v2/connectors/outlook.mdx index c7df0aa8..0d320f95 100644 --- a/essentials/v2/connectors/outlook.mdx +++ b/essentials/v2/connectors/outlook.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Outlook, and how to connect it." icon: "/images/connectors/outlook.svg" --- -Use the Outlook connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `mail_messages` diff --git a/essentials/v2/connectors/pagerduty.mdx b/essentials/v2/connectors/pagerduty.mdx index 96f9511d..82b83a60 100644 --- a/essentials/v2/connectors/pagerduty.mdx +++ b/essentials/v2/connectors/pagerduty.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from PagerDuty, and how to connect it." icon: "/images/connectors/pagerduty.svg" --- -Use the PagerDuty connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `incidents` - `schedules` diff --git a/essentials/v2/connectors/pardot.mdx b/essentials/v2/connectors/pardot.mdx index b25e816f..527fe051 100644 --- a/essentials/v2/connectors/pardot.mdx +++ b/essentials/v2/connectors/pardot.mdx @@ -3,11 +3,9 @@ title: "Pardot" description: "What HydraDB syncs from Pardot, and how to connect it." --- -Use the Pardot connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `opportunities` - `prospects` diff --git a/essentials/v2/connectors/pipedrive.mdx b/essentials/v2/connectors/pipedrive.mdx index 6c0de1d9..5154c480 100644 --- a/essentials/v2/connectors/pipedrive.mdx +++ b/essentials/v2/connectors/pipedrive.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Pipedrive, and how to connect it." icon: "/images/connectors/pipedrive-light.svg" --- -Use the Pipedrive connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `deals` - `persons` diff --git a/essentials/v2/connectors/posthog.mdx b/essentials/v2/connectors/posthog.mdx index 7b4f60fd..5d4f03bf 100644 --- a/essentials/v2/connectors/posthog.mdx +++ b/essentials/v2/connectors/posthog.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from PostHog, and how to connect it." icon: "/images/connectors/posthog.svg" --- -Use the PostHog connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `persons` - `cohorts` diff --git a/essentials/v2/connectors/quickbooks.mdx b/essentials/v2/connectors/quickbooks.mdx index 0918196b..e6c18bb5 100644 --- a/essentials/v2/connectors/quickbooks.mdx +++ b/essentials/v2/connectors/quickbooks.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from QuickBooks, and how to connect it." icon: "/images/connectors/quickbooks.svg" --- -Use the QuickBooks connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `Invoice` - `Customer` diff --git a/essentials/v2/connectors/recurly.mdx b/essentials/v2/connectors/recurly.mdx index 4b1b38ef..83c0c3bb 100644 --- a/essentials/v2/connectors/recurly.mdx +++ b/essentials/v2/connectors/recurly.mdx @@ -3,11 +3,9 @@ title: "Recurly" description: "What HydraDB syncs from Recurly, and how to connect it." --- -Use the Recurly connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `invoices` - `accounts` diff --git a/essentials/v2/connectors/sendgrid.mdx b/essentials/v2/connectors/sendgrid.mdx index dce16c92..4e10b049 100644 --- a/essentials/v2/connectors/sendgrid.mdx +++ b/essentials/v2/connectors/sendgrid.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from SendGrid, and how to connect it." icon: "/images/connectors/sendgrid.svg" --- -Use the SendGrid connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `single_sends` - `lists` diff --git a/essentials/v2/connectors/sentry.mdx b/essentials/v2/connectors/sentry.mdx index 3f8b291d..196e1476 100644 --- a/essentials/v2/connectors/sentry.mdx +++ b/essentials/v2/connectors/sentry.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Sentry, and how to connect it." icon: "/images/connectors/sentry-light.svg" --- -Use the Sentry connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `issues` - `events` diff --git a/essentials/v2/connectors/servicenow.mdx b/essentials/v2/connectors/servicenow.mdx index 1b53298f..7345e3c7 100644 --- a/essentials/v2/connectors/servicenow.mdx +++ b/essentials/v2/connectors/servicenow.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from ServiceNow, and how to connect it." icon: "/images/connectors/servicenow.svg" --- -Use the ServiceNow connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `kb_knowledge` - `sc_cat_item` diff --git a/essentials/v2/connectors/sharepoint.mdx b/essentials/v2/connectors/sharepoint.mdx index e2d97d6b..e56c10dd 100644 --- a/essentials/v2/connectors/sharepoint.mdx +++ b/essentials/v2/connectors/sharepoint.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from SharePoint, and how to connect it." icon: "/images/connectors/sharepoint.svg" --- -Use the SharePoint connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `pages` - `driveItems` @@ -22,7 +20,7 @@ Create one connector per account, using that account's credentials where require 2. Grant Microsoft Graph APPLICATION permissions Sites.Read.All and Files.Read.All, then grant tenant-wide admin consent. Sites.Read.All is required for site discovery, document libraries, and site pages; Files.Read.All is required for drive delta metadata and file-content download. Delegated permissions do not satisfy this connector. 3. Pick the SharePoint sites to sync. Site pages and document-library files become searchable with human site, library, path, author, and MIME metadata; IDs remain provenance and stable identity rather than reader-facing labels. 4. Lists on a selected site are indexed too: every row of every visible list becomes one document holding its column values under their display names. Document libraries, hidden lists and SharePoint's own system lists are skipped, and list row attachments are not downloaded. -5. Native SharePoint item and site permissions are not yet reproduced. Content stays tenant-public under the current fail-open policy and every source carries rbac_warning; configure a customer resource ACL for sites that must be restricted. +5. SharePoint item and site permissions are not yet reproduced. Content is readable by everyone in your HydraDB tenant, and every item carries rbac_warning; set a resource access rule for sites that must be restricted. 6. File changes use Graph drive delta and page changes use lastModifiedDateTime windows. Provider deletion signals are not fully converged into hard index deletion yet; this documented current limitation does not block initial or incremental ingestion. Use provider `sharepoint` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. diff --git a/essentials/v2/connectors/shortcut.mdx b/essentials/v2/connectors/shortcut.mdx index 4e2bc752..558d40e3 100644 --- a/essentials/v2/connectors/shortcut.mdx +++ b/essentials/v2/connectors/shortcut.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Shortcut, and how to connect it." icon: "/images/connectors/shortcut.svg" --- -Use the Shortcut connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `stories` - `project_stories` diff --git a/essentials/v2/connectors/slack.mdx b/essentials/v2/connectors/slack.mdx index 5c4ea019..b59bca9e 100644 --- a/essentials/v2/connectors/slack.mdx +++ b/essentials/v2/connectors/slack.mdx @@ -1,33 +1,255 @@ --- title: "Slack" -description: "What HydraDB syncs from Slack, and how to connect it." +description: "Sync messages and thread replies from the Slack channels you choose, with private channels limited to their members." icon: "/images/connectors/slack.svg" --- -Use the Slack connector to bring the following content into HydraDB. +The Slack connector reads the public and private channels you select in one Slack workspace. Each message becomes one document, and each thread reply is its own document linked to the message that started the thread. -## What syncs +Files shared in a message are downloaded and read with it. A private channel's messages can be limited to the channel's members. -The provider description lists these indexed object types: +## Before you connect -- `conversation_history` +Slack uses a token from a Slack app installed in your workspace. A bot token or a user token works. -## Connect +**Credentials** -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + +A Slack bot token, which starts with `xoxb-`, or a user token, which starts with `xoxp-`. + -Set a stable, distinct `provider_account_scope` for each connected account yourself, for example `slack-account-a` and `slack-account-b`. These are caller-provided example identifiers, not validated native account-ID formats. The API stores the supplied value; it does not derive or validate the provider's account identity. Reusing a scope can make sources with matching external IDs overwrite each other in the same destination. +**Scopes to add to the Slack app** -Use provider `slack` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. +- `channels:read`: lists public channels in the channel picker. +- `channels:history` +- `groups:read`: lists private channels in the channel picker. +- `groups:history` +- `users:read` +- `users:read.email`: without it, permissions cannot be captured for any private channel. +- `files:read` -## Common mistakes +If neither `channels:read` nor `groups:read` is granted, connecting fails with a message that names the missing scope. -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. +**Set it up** -## Related + + + Create a Slack app for your workspace and add the scopes above. + + + Install the app in the workspace and copy its token. + + + Paste the token as `access_token`. + + + Discover lists every public and private channel that is not archived and that the token can see, with whether it is private, whether the app is a member, and its member count. Select the channels to sync. + + -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings +Use provider `slack` with [Create Connector](/api-reference/v2/endpoint/create-connector). Then call [Discover Connector Resources](/api-reference/v2/endpoint/discover-connector-resources) to list what the credentials can reach, and [Configure Connector](/api-reference/v2/endpoint/configure-connector) to choose what to sync. + +Create one connector per account, each with that account's own credentials. One token covers one Slack workspace. + +To connect several Slack accounts, give each connector its own `provider_account_scope`, for example `slack-account-a` and `slack-account-b`. Both are caller-provided example identifiers. HydraDB stores the value as given and does not check it against Slack's own account ids. Two connectors that share a scope and write to the same collection can overwrite each other's items. See [several accounts from one provider](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). + +## What gets synced + +**What the labels mean** + +- **Title:** names the item in results. +- **Searchable:** part of the text a query matches. +- **Date:** the time HydraDB uses for recency. +- **Filter:** a key a query can filter on, typed exactly as shown. +- **Link:** connects this item to another item. +- **Person or group in the graph:** a person or group the knowledge graph attaches the item to. +- **Access:** decides who can read the item. +- **Stored with results:** kept on the document, and shown when you open or inspect it. A search does not match it. +- **Not kept:** the provider has it, and HydraDB does not keep it. + +### Messages + +- **One document:** One Slack message: a message posted in a channel, or a single reply in a thread. +- **Title:** The channel name with `#`, a colon and the message's first line, cut to about 80 characters, for example `#general: Deploy is done`. A reply reads `#general thread: ...`. A message with no text is titled `Slack message`. +- **Text:** The message text, with mentions turned into display names. Then the pretext, title and text of any legacy attachments, and one `[file: name]` line per shared file. The sender is written as a `From` line and the time as a `Sent` line. +- **Date:** The message's Slack timestamp. +- **Link back:** A Slack permalink to the message. A reply links to itself inside its thread. Empty if the workspace address could not be read. +- **Files:** Each shared file is downloaded and read, and its text becomes searchable with the message. A file is skipped if Slack gave no download address, the download fails, or the file is too large. + +**Title** + + +Labels the message with its channel and opening words in results. When the message has text, search matches the message itself, so the channel name in the title is not guaranteed to match a query. + + +**Searchable** + + +The text described above. This is what a query matches, and what HydraDB reads for people and topics. + + + +The display name of the person or bot that posted, or the raw Slack id if the name could not be read. It is the `From` line, and the graph records the message as sent by that person. + + + +The text read from each shared file, searchable with the message. + + +**Date** + + +The message time. It is the document date used for recency, and the `Sent` line of the text. + + +**Filter** + + +The message's Slack timestamp. Picks out one exact message. + + + +The timestamp of the thread's first message, empty outside a thread. Limits a query to one thread. + + + +Slack's message subtype, such as `bot_message` or `file_share`. Includes or excludes bot posts and file shares. + + + +The bot id when a bot posted the message. Includes or excludes one bot's messages. + + + +How many replies the thread has. Finds thread starters by how many replies they drew. + + + +Limits a query to this connector. Access rules you set on a channel are matched to messages through it. + + + +Always `slack`. + + +**Link** + + +For a reply, the message that started its thread. Joins the reply to that message, so the whole conversation can be returned together. + + + +The thread a message belongs to. Groups every message of one thread together in the graph. + + +**Person or group in the graph** + + +Display names of people mentioned in the message. The graph records each as mentioned. The names are searchable as part of the message text. + + +**Access** + + +The selected channel. For a private channel, its members decide who can read its messages. + + + + + +How many legacy attachments the message had. + + + +How many shared files Slack listed, including any that could not be downloaded. + + + +Whether Slack marked the message as edited when it was read. Later edits are not picked up automatically. + + + +The display name of the editor, when edited. The editor is not added to the graph as a person. + + + +The edit time, when edited. The document date stays the original message time. + + + +The details Slack supplied for each shared file, kept even when a file's text could not be read. + + + +Reactions are not read. + + + + +## How it fits into the graph + +**What each item becomes** + +- Messages: a message, a chat or conversation message, kept with its author and its thread. + +**Connections Slack creates** + +- A thread reply to the message that started the thread. +- Every message to its thread, including a message nobody replied to. +- No links to items in other tools. + +**People and groups it names** + +- The sender of each message. +- People mentioned in a message. +- An editor is kept with the message but not added to the graph. + +**What HydraDB reads from the text** + +Topics, decisions, people and organisations named in prose, in the message text, legacy attachment text and shared file text. Each reply is read together with the text of its thread's first message. + +There is no per-connector setup for this. Every connector maps its items onto the same shared model, and HydraDB finds people, organizations, projects, products and other entities in the text the same way for every source. To steer what it looks for, use [custom instructions](/essentials/v2/connectors#4-custom-ingestion-instructions). + +## Permissions + +This connector can carry Slack permissions into search. + +- **Who can read an item:** A public channel's messages can be read by the whole workspace. A private channel's messages can be read by its members. HydraDB reads this once per channel on each sync; there is no per-message permission. +- **How a person is identified:** A member's email address, in lower case. Bots and deactivated users have no email and are left out. +- **When permissions cannot be read:** If HydraDB cannot read a channel's privacy, members or member emails, an access rule you set on that channel stays in force. Without a rule, the connector status shows a permission warning, and depending on your deployment's setting the messages either stay readable or are hidden until permissions can be read. + +- A private channel with more than 1,000 members who have emails, or more than 3,000 members in all, cannot be captured. Set an access rule on such a channel. +- Without `users:read.email`, permissions cannot be captured for any private channel. + +Captured permissions filter search only when **Enforce ACL** is on for the connector. Only a signed-in human workspace owner or writer can turn it on, in the dashboard connector settings. API-key requests must omit `enforce_acl`, including `false`. See [Enforce ACL](/essentials/v2/connectors#enforce-acl). You can also [set your own rule on a resource](/essentials/v2/connectors#set-your-own-rule-on-a-resource). + +Database and collection names decide where content lands; collection names do not authorize access. + +## Keeping in sync + +- **First sync:** A newly selected channel reads back the window set by `lookback_days`, 30 days by default. +- **New and changed items:** Each sync reads recent history for new messages, and new replies on threads whose latest reply moved. A second pass, every 6 hours by default, walks the channel's whole history in steps to find new replies on older threads. +- **Edits:** A routine sync does not pick up an edit to a message that is already indexed. +- **Deletions:** Deleted messages are not removed. A message deleted in Slack stays searchable in HydraDB. + +After the first sync, HydraDB syncs every hour by default. Set `sync_interval_seconds` to change it. + +## Not synced + +- Archived channels: discovery does not offer them. +- Direct messages and group direct messages. +- System messages: joins, leaves, renames, topic and purpose changes, pins, bots being added or removed, and thread broadcasts. +- Edits and deletions made after a message was indexed. +- Reactions. + +## Questions this lets you answer + +- What did the team decide about the release last week? +- What did Priya say in the thread about the pricing change? +- Which messages were posted by the alerts bot? +- What does the PDF shared in the design channel say about the new layout? + +## Good to know + +- **Naming a channel does not filter to it.** When a message has text, search matches the message, not its `#channel` title. A channel name in a query does not reliably limit results to that channel. +- **A name that could not be read stays an id.** If HydraDB could not read a person's name, the message keeps the raw Slack id, and later syncs do not go back to fix it. diff --git a/essentials/v2/connectors/smartsheet.mdx b/essentials/v2/connectors/smartsheet.mdx index 81d3fbce..ef7820cc 100644 --- a/essentials/v2/connectors/smartsheet.mdx +++ b/essentials/v2/connectors/smartsheet.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Smartsheet, and how to connect it." icon: "/images/connectors/smartsheet-light.svg" --- -Use the Smartsheet connector to bring the following content into HydraDB. - ## What syncs -The provider description does not enumerate fixed indexed object types. Use the setup notes below when available; the resource picker shows what your connection can select. +No fixed object types: what syncs is the set of resources you select when you configure the connector. ## Connect diff --git a/essentials/v2/connectors/stripe.mdx b/essentials/v2/connectors/stripe.mdx index 87429996..6f874c62 100644 --- a/essentials/v2/connectors/stripe.mdx +++ b/essentials/v2/connectors/stripe.mdx @@ -1,34 +1,265 @@ --- title: "Stripe" -description: "What HydraDB syncs from Stripe, and how to connect it." +description: "Sync customers, invoices, subscriptions and charges from a Stripe account, each linked to its customer." icon: "/images/connectors/stripe.svg" --- -Use the Stripe connector to bring the following content into HydraDB. +The Stripe connector reads one Stripe account. Customers, invoices, subscriptions and charges each become one document with a readable summary, and an invoice carries its line items. -## What syncs +Invoices, subscriptions and charges are linked to the customer they belong to. -The provider description lists these indexed object types: +## Before you connect -- `invoices` -- `customers` -- `subscriptions` -- `charges` +Stripe uses a secret key together with the account id. -## Connect +**Credentials** -Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. + +A Stripe secret key, `sk_live_...` or `sk_test_...`, with read access to the account's resources. + -Use provider `stripe` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment. + +The Stripe account id, `acct_...`. + -## Common mistakes +**Set it up** -- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read. -- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed. -- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`. + + + Paste the secret key as `client_secret` and the account id as `account_id`. + + + Discover offers one `All data` resource for the account. There are no smaller parts to pick. Select it. + + -## Related +Use provider `stripe` with [Create Connector](/api-reference/v2/endpoint/create-connector). Then call [Discover Connector Resources](/api-reference/v2/endpoint/discover-connector-resources) to list what the credentials can reach, and [Configure Connector](/api-reference/v2/endpoint/configure-connector) to choose what to sync. -- [Connector providers](/essentials/v2/connector-providers) -- [Connectors](/essentials/v2/connectors): setup, sync, and access control -- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings +Create one connector per account, each with that account's own credentials. One connector reads one Stripe account. A test-mode key reads test data and a live-mode key reads live data. + +## What gets synced + + +Amounts in the text are shown in major units, assuming two decimal places. For a zero-decimal currency, the amounts read 100 times too small. The stored numbers are unchanged. + + +**What the labels mean** + +- **Title:** names the item in results. +- **Searchable:** part of the text a query matches. +- **Date:** the time HydraDB uses for recency. +- **Filter:** a key a query can filter on, typed exactly as shown. +- **Link:** connects this item to another item. +- **Person or group in the graph:** a person or group the knowledge graph attaches the item to. +- **Access:** decides who can read the item. +- **Stored with results:** kept on the document, and shown when you open or inspect it. A search does not match it. +- **Not kept:** the provider has it, and HydraDB does not keep it. + +### On every Stripe document + +**Date** + + +When the record was created. It is the document date, and it stays the creation time after the record is updated. + + +**Filter** + + +The Stripe id: `cus_...`, `in_...`, `sub_...` or `ch_...`. Targets one record. A customer's id is also what its invoices, subscriptions and charges link to. + + + +Limits a query to this connector. + + + +Always `stripe`. + + + + + +The record type: `customers`, `invoices`, `subscriptions` or `charges`. + + + +Every other field Stripe returns for the record, such as an address, metadata or invoice settings. A search does not match them, and they are not filters. + + + + +### Customers + +- **One document:** One customer. +- **Title:** The customer's name, or their email when there is no name. +- **Text:** The customer's description, then `Name`, `Email`, `Phone` and `Balance` lines, with the balance in its currency. +- **Date:** When the customer was created. +- **Link back:** None. + +**Title** + + +Names the customer in results. + + +**Searchable** + + +The description, name, email, phone and balance, as described above. + + +**Person or group in the graph** + + +The customer's email. It identifies the customer as a person in the graph, appears in the `Email` line, and is the title when there is no name. + + +### Invoices + +- **One document:** One invoice, with its line items. +- **Title:** `Invoice - `, using the customer's name or email. +- **Text:** The invoice description, then `Customer`, `Email`, `Status`, `Total`, `Amount due`, `Amount paid`, `Due date` and `Line items` lines. Each line item shows its description and amount. +- **Date:** When the invoice was created. +- **Link back:** None. +- **Files:** Invoice PDFs are not downloaded. + +**Title** + + +Names the invoice in results. + + +**Searchable** + + +The description, customer, status, amounts, due date and line items, as described above. + + + +Each line's description and amount, written into the `Line items` line. + + +**Link** + + +The customer id. Links the invoice to its customer's document. + + +### Subscriptions + +- **One document:** One subscription. +- **Title:** The plan's nickname or name, or the plan id, followed by `subscription`. +- **Text:** `Plan`, `Status`, `Amount`, `Quantity`, `Customer`, `Started` and `Current period end` lines. `Amount` is the plan price with its currency and interval, for example `49.00 USD/month`. `Customer` is the customer's name, or the id when the name is not known. +- **Date:** When the subscription was created. +- **Link back:** None. + +**Title** + + +The subscription's plan. Its nickname or name is the title, and its price and interval form the `Amount` line. + + +**Searchable** + + +The plan, status, price, quantity, customer and period dates, as described above. + + +**Link** + + +The customer id. Links the subscription to its customer's document. The customer's name appears in the text. + + +### Charges + +- **One document:** One charge. +- **Title:** The charge description, or `Charge - ` when there is none. +- **Text:** The charge description, then `Customer`, `Amount`, `Status`, `Receipt email` and `Failure message` lines. `Customer` is the first of the billing name, billing email, receipt email, customer name and customer id that is present. +- **Date:** When the charge was created. +- **Link back:** None. + +**Title** + + +Names the charge in results. + + +**Searchable** + + +The description, payer, amount, status and failure reason, as described above. + + +**Link** + + +The customer id. Links the charge to its customer's document. + + +## How it fits into the graph + +**What each item becomes** + +- Customers: a record, an item that does not fit one of the specialised kinds, searched through its text. +- Invoices: a record, an item that does not fit one of the specialised kinds, searched through its text. +- Subscriptions: a record, an item that does not fit one of the specialised kinds, searched through its text. +- Charges: a record, an item that does not fit one of the specialised kinds, searched through its text. + +**Connections Stripe creates** + +- An invoice to its customer. +- A subscription to its customer. +- A charge to its customer. +- Charges are not linked to their invoice, and invoices are not linked to their subscription. +- No links to other tools. + +**People and groups it names** + +- Each customer, identified by their email. + +**What HydraDB reads from the text** + +Products and plans as entities, and anything written in descriptions. + +There is no per-connector setup for this. Every connector maps its items onto the same shared model, and HydraDB finds people, organizations, projects, products and other entities in the text the same way for every source. To steer what it looks for, use [custom instructions](/essentials/v2/connectors#4-custom-ingestion-instructions). + +## Permissions + + +This connector does not carry Stripe permissions into search. Every synced item is visible to everyone who can query the collection, unless you [set an access rule on the resource](/essentials/v2/connectors#set-your-own-rule-on-a-resource). + + +**Enforce ACL** cannot be turned on for Stripe, because it needs a provider that reports `acl_supported: true`. API-key requests must omit `enforce_acl`, including `false`. See [ACL on synced content](/essentials/v2/connectors#5-acl-native-rbac-awareness). + +Database and collection names decide where content lands; collection names do not authorize access. + +## Keeping in sync + +- **First sync:** Reaches back the window set by `lookback_days`, 30 days by default. +- **New and changed items:** Each sync lists records created in the sync window, and reads Stripe's events for updates in the same window. +- **Edits:** An update, such as an invoice being paid, arrives as an event and replaces the record's document. +- **Deletions:** Deletions in Stripe are not detected. A deleted record stays in HydraDB. +- Updates are read from events that reach back 30 days. After a long pause, updates to older records can be missed. + +After the first sync, HydraDB syncs every hour by default. Set `sync_interval_seconds` to change it. + +## Not synced + +- Products, prices and plans as their own documents. +- Events, payouts, refunds, disputes, balance transactions and other Stripe objects. +- Deletions in Stripe. +- Invoice PDFs and hosted invoice pages. + +## Questions this lets you answer + +- What status, amount due and amount paid are recorded for Acme Corp's invoice INV-0042? +- What plan is jane@example.com subscribed to, and when does the current period end? +- Why did the charge for jane@example.com fail? +- What line items were on Acme Corp's last invoice? + +## Good to know + +- **Recency follows creation time.** A record's date stays its creation time after it is updated, so recency ranks records by when they were created. +- **Plan details come from the plan only.** Product or price details that live only in other fields are not searchable. diff --git a/essentials/v2/connectors/supabase.mdx b/essentials/v2/connectors/supabase.mdx index eb210177..edfea75d 100644 --- a/essentials/v2/connectors/supabase.mdx +++ b/essentials/v2/connectors/supabase.mdx @@ -4,12 +4,11 @@ description: "What HydraDB syncs from Supabase, and how to connect it." icon: "/images/connectors/supabase.svg" --- -Use the Supabase connector to bring the following content into HydraDB. - ## What syncs Selected table row changes arrive through database webhooks. There is no history backfill. + ## Connect Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access. @@ -20,7 +19,7 @@ Create one connector per account, using that account's credentials where require 4. Run the SQL command generated by the dashboard in the Supabase SQL editor to add a trigger for each table. Replace the API key placeholder with your HydraDB API key. 5. Only changes made after connecting are reflected. Existing rows are sent when they are updated; there is no historical backfill. -Follow the Supabase connection flow in the dashboard. This is a push connector; the webhook triggers, not a polling credential, deliver changes. +Follow the Supabase connection flow in the dashboard. Changes arrive as they happen, through the database webhooks you set up in Supabase. ## Common mistakes diff --git a/essentials/v2/connectors/surveymonkey.mdx b/essentials/v2/connectors/surveymonkey.mdx index ffe37380..7752b6d4 100644 --- a/essentials/v2/connectors/surveymonkey.mdx +++ b/essentials/v2/connectors/surveymonkey.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from SurveyMonkey, and how to connect it." icon: "/images/connectors/surveymonkey.svg" --- -Use the SurveyMonkey connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `survey_details` - `simplified_responses` diff --git a/essentials/v2/connectors/twilio.mdx b/essentials/v2/connectors/twilio.mdx index 272cb172..7617868e 100644 --- a/essentials/v2/connectors/twilio.mdx +++ b/essentials/v2/connectors/twilio.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Twilio, and how to connect it." icon: "/images/connectors/twilio.svg" --- -Use the Twilio connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `messages` - `calls` diff --git a/essentials/v2/connectors/twitter.mdx b/essentials/v2/connectors/twitter.mdx index aee598f4..3d996e64 100644 --- a/essentials/v2/connectors/twitter.mdx +++ b/essentials/v2/connectors/twitter.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Twitter, and how to connect it." icon: "/images/connectors/twitter-light.svg" --- -Use the Twitter connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `posts` - `dms` diff --git a/essentials/v2/connectors/typeform.mdx b/essentials/v2/connectors/typeform.mdx index efa5941f..c580f509 100644 --- a/essentials/v2/connectors/typeform.mdx +++ b/essentials/v2/connectors/typeform.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Typeform, and how to connect it." icon: "/images/connectors/typeform-light.svg" --- -Use the Typeform connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `forms` - `responses` diff --git a/essentials/v2/connectors/wrike.mdx b/essentials/v2/connectors/wrike.mdx index 2a5437d5..7636f32e 100644 --- a/essentials/v2/connectors/wrike.mdx +++ b/essentials/v2/connectors/wrike.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Wrike, and how to connect it." icon: "/images/connectors/wrike.svg" --- -Use the Wrike connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `tasks` - `comments` diff --git a/essentials/v2/connectors/xero.mdx b/essentials/v2/connectors/xero.mdx index a31624d4..dbd06a64 100644 --- a/essentials/v2/connectors/xero.mdx +++ b/essentials/v2/connectors/xero.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Xero, and how to connect it." icon: "/images/connectors/xero.svg" --- -Use the Xero connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `invoices` - `contacts` diff --git a/essentials/v2/connectors/zendesk.mdx b/essentials/v2/connectors/zendesk.mdx index dbc2c6d9..0393e9a7 100644 --- a/essentials/v2/connectors/zendesk.mdx +++ b/essentials/v2/connectors/zendesk.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Zendesk, and how to connect it." icon: "/images/connectors/zendesk-light.svg" --- -Use the Zendesk connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `tickets` - `ticket_comments` diff --git a/essentials/v2/connectors/zoho-crm.mdx b/essentials/v2/connectors/zoho-crm.mdx index 00efb1b6..4e3ee71a 100644 --- a/essentials/v2/connectors/zoho-crm.mdx +++ b/essentials/v2/connectors/zoho-crm.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Zoho CRM, and how to connect it." icon: "/images/connectors/zoho-crm.svg" --- -Use the Zoho CRM connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `deals` - `leads` diff --git a/essentials/v2/connectors/zoom.mdx b/essentials/v2/connectors/zoom.mdx index e6701b68..f64d0a7f 100644 --- a/essentials/v2/connectors/zoom.mdx +++ b/essentials/v2/connectors/zoom.mdx @@ -4,11 +4,9 @@ description: "What HydraDB syncs from Zoom, and how to connect it." icon: "/images/connectors/zoom.svg" --- -Use the Zoom connector to bring the following content into HydraDB. - ## What syncs -The provider description lists these indexed object types: +**Indexed object types** - `cloud_recordings` - `meetings` diff --git a/scripts/connector_pages/bigquery.json b/scripts/connector_pages/bigquery.json new file mode 100644 index 00000000..86eebbdd --- /dev/null +++ b/scripts/connector_pages/bigquery.json @@ -0,0 +1,311 @@ +{ + "description": "Sync rows from the BigQuery tables you choose, one searchable document per row.", + "intro": [ + "The BigQuery connector reads the tables you select in one Google Cloud project. Each row becomes one document. Its text lists every non-empty column as a label and a value, and the document is grouped under its table.", + "You decide, table by table, how HydraDB finds new and changed rows: a timestamp column, BigQuery's change history, or a full read of the table on every sync." + ], + "callouts": { + "connect": { + "kind": "warning", + "text": "Set a primary key for every table you select. HydraDB updates a row's document by its key. If a table has no real unique key, different rows can be treated as the same document and replace each other." + } + }, + "connect": { + "auth": "BigQuery uses a Google Cloud service account. There is no sign-in flow: you paste credentials. Supply one complete set: a service-account key file, a service-account email with its private key, or an OAuth client id, client secret and refresh token.", + "credentials": [ + { + "name": "credentials_json", + "type": "secret string", + "required": false, + "text": "The service account's JSON key file, pasted whole. This is the recommended option." + }, + { + "name": "client_email", + "type": "secret string", + "required": false, + "text": "The service account's email. Use it together with `private_key` instead of the key file." + }, + { + "name": "private_key", + "type": "secret string", + "required": false, + "text": "The service account's private key. Use it together with `client_email`." + }, + { + "name": "client_id", + "type": "secret string", + "required": false, + "text": "An OAuth client id. Valid only together with `client_secret` and `refresh_token`." + }, + { + "name": "client_secret", + "type": "secret string", + "required": false, + "text": "An OAuth client secret. Valid only together with `client_id` and `refresh_token`." + }, + { + "name": "refresh_token", + "type": "secret string", + "required": false, + "text": "An OAuth refresh token you issued beforehand. It is required in the OAuth option, because a client id and secret alone cannot reach BigQuery." + } + ], + "credentials_note": "Each credential field is optional on its own, but one of the three options must be complete.", + "settings": [ + { + "name": "project_id", + "type": "string", + "required": false, + "text": "The Google Cloud project to read. Required unless the key file already names a project." + }, + { + "name": "location", + "type": "string", + "required": false, + "text": "The BigQuery location to run query jobs in." + }, + { + "name": "datasets", + "type": "string list", + "required": false, + "text": "Limits discovery and sync to these datasets." + }, + { + "name": "replication_key", + "type": "string", + "required": false, + "text": "A timestamp column to use as the sync cursor for every selected table that has it. A table's own setting overrides it." + }, + { + "name": "change_history", + "type": "string", + "required": false, + "text": "`appends` or `changes`, used for tables that still have no cursor column. A table's own setting overrides it." + }, + { + "name": "detect_replication_from_partitioning", + "type": "boolean", + "required": false, + "text": "Off by default. When on, column-partitioned tables sync incrementally on their partition column." + } + ], + "permissions_label": "What the service account needs", + "permissions": [ + { + "name": "BigQuery Data Viewer", + "text": "role on the project." + }, + { + "name": "BigQuery Job User", + "text": "role on the project." + }, + { + "name": "https://www.googleapis.com/auth/bigquery", + "text": "scope, in the OAuth option. Google rejects query jobs under the read-only BigQuery scope." + } + ], + "steps": [ + { + "title": "Create a service account", + "text": "In Google Cloud, create a service account. Give it the BigQuery Data Viewer and BigQuery Job User roles on the project, and download its JSON key." + }, + { + "title": "Create the connector", + "text": "Paste the key as `credentials_json`. Add `project_id` only if the key file does not name a project. To narrow what discovery shows, list `datasets`." + }, + { + "title": "Select tables", + "text": "Discover lists the tables in the project, narrowed by `datasets` when you set it. Select the tables to sync. Each selected table becomes its own set of documents, one per row." + }, + { + "title": "Choose a sync mode for each table", + "text": "If the table has a timestamp column that changes on every insert and update, such as `updated_at`, make it the table's `replication_key`. If rows are only ever inserted, set `change_history` to `appends`. If rows are also updated and there is no such column, set `change_history` to `changes`. A table with none of these is read in full on every sync. If a table has both a cursor and change history, change history wins." + }, + { + "title": "Turn on change history for tables set to changes", + "text": "Run `ALTER TABLE dataset.table SET OPTIONS(enable_change_history=true)` once in BigQuery for that table. It changes no data." + }, + { + "title": "Set each table's primary key", + "text": "Add `primary_keys` with the column or columns that identify one row, unless the table already declares a primary key." + }, + { + "title": "Send the settings when you configure", + "text": "Through the API or SDK, send the per-table settings as `table_configs` on the same Configure Connector request that selects the tables. The dashboard collects them on the table-selection screen." + } + ], + "examples": [ + { + "intro": "One `table_configs` entry per table, for each sync mode:", + "tabs": [ + { + "title": "Timestamp cursor", + "language": "json", + "code": "{\"table\": \"sales.orders\", \"replication_key\": \"updated_at\", \"primary_keys\": [\"order_id\"]}" + }, + { + "title": "Inserts only", + "language": "json", + "code": "{\"table\": \"web.page_views\", \"change_history\": \"appends\", \"primary_keys\": [\"event_id\"]}" + }, + { + "title": "Inserts and updates", + "language": "json", + "code": "{\"table\": \"crm.accounts\", \"change_history\": \"changes\", \"primary_keys\": [\"account_id\"]}" + }, + { + "title": "Changes only, no backfill", + "language": "json", + "code": "{\"table\": \"crm.accounts\", \"change_history\": \"changes\", \"snapshot\": \"none\", \"primary_keys\": [\"account_id\"]}" + }, + { + "title": "Full read", + "language": "json", + "code": "{\"table\": \"ref.countries\", \"primary_keys\": [\"code\"]}" + } + ] + } + ], + "account": "One connector reads one Google Cloud project." + }, + "documents": [ + { + "name": "Table rows", + "kind": "custom", + "one_document": "One row of a selected table, as long as the table's key is unique. Rows that share a key replace one another.", + "title": "The first non-empty column named `name`, `title`, `subject`, `summary` or `email`. Otherwise the first non-empty column that is not a number, in alphabetical column order, then the first number column. A row with none of these is titled with its table and row key.", + "text": "The title on the first line. Then every non-empty column in alphabetical order, as `Column Name: value`: underscores become spaces and words are capitalised. Lists of values are joined with commas. Nested records are written as compact JSON.", + "date": "The first of `updated_at`, `modified_at`, `last_modified`, `updated`, `created_at`, `created`, `timestamp`, `event_time` and `inserted_at` that holds a TIMESTAMP or epoch-seconds value. A row with none has no date. DATETIME columns carry no time zone and are not used.", + "link_back": "None.", + "files": "None. Column values are kept as text only.", + "attributes": [ + { + "name": "Row text", + "purposes": [ + "Searchable" + ], + "text": "Every non-empty column of the row, written as described above. This is what a query matches." + }, + { + "name": "title", + "purposes": [ + "Title", + "Searchable" + ], + "text": "Names the row in results. It is also the first line of the row text, so a query matches it." + }, + { + "name": "updated_at", + "purposes": [ + "Date" + ], + "text": "The value of the first recognised time column. It is the document date used for recency. A sync cursor with another name does not set it." + }, + { + "name": "additional_metadata.container_name", + "purposes": [ + "Filter" + ], + "text": "The table as `dataset.table`. Limits a query to one table." + }, + { + "name": "additional_metadata.container_id", + "purposes": [ + "Filter" + ], + "text": "The table as `dataset__table`, with two underscores. Another way to limit a query to one table." + }, + { + "name": "additional_metadata.container_type", + "purposes": [ + "Filter" + ], + "text": "Always `table`." + }, + { + "name": "connector_id", + "purposes": [ + "Filter" + ], + "text": "Limits a query to this connector's documents." + }, + { + "name": "provider", + "purposes": [ + "Filter" + ], + "text": "Always `bigquery`. Limits a query to BigQuery documents." + }, + { + "name": "table", + "purposes": [ + "Stored with results" + ], + "text": "The table as `dataset.table`, so you can see where a result came from." + }, + { + "name": "row_key", + "purposes": [ + "Stored with results" + ], + "text": "The key the row was matched on. Together with the table, it decides which document a later sync updates." + } + ] + } + ], + "graph": { + "connections": "None. Rows are not linked to each other or to items in other tools, even when a column holds another table's key.", + "people": [ + "None are declared. Each row is grouped under its table.", + "A column such as `email` or `user_id` is part of the row text only. It does not make the row a person in the graph." + ], + "from_text": "Everything else. Customers, people, products and references between rows are found only by HydraDB reading the row text." + }, + "permissions": { + "carried": false, + "notes": [ + "BigQuery dataset, table, row-level and column-level access controls are not reproduced.", + "Every column of a selected table becomes searchable text, including sensitive ones. Select tables with that in mind." + ] + }, + "sync": { + "first_sync": "A table with a cursor column reads back the window set by `lookback_days`, 30 days by default. A change-history table starts capturing changes at its first sync, not when you create the connector, and then loads its existing rows in slices of 1,000 per sync. Set `snapshot` to `none` to skip existing rows, or to a number to load at most that many rows, in no particular order. With `none`, changes between creating the connector and its first sync are not recovered.", + "changes": "A cursor table picks up rows whose cursor value moved past the last sync. A `changes` table reads BigQuery's change history, about 11 minutes behind the current time. An `appends` table sees new rows only. A table with neither is read in full on every sync, and rows whose content did not change are skipped.", + "edits": "An edited row updates the same document, as long as its key is unique. In `appends` mode, edits to existing rows are never seen.", + "deletes": "Deleted rows are not removed. A row deleted in BigQuery stays searchable in HydraDB.", + "notes": [ + "BigQuery keeps change history for its time-travel window, 2 to 7 days. If a change-history table is not synced within that window, for example while the connector is paused, the table is skipped with an error on each sync until it is loaded again from the start." + ] + }, + "not_synced": [ + "Tables you did not select.", + "Rows deleted in BigQuery: they stay in HydraDB.", + "Updates to existing rows in tables set to `appends`.", + "BigQuery dataset, table, row-level and column-level access controls.", + "Table and column descriptions and other schema details. Only row values are kept." + ], + "questions": [ + "What does the `sales.orders` table say about order 10432?", + "Which rows in `crm.accounts` mention Acme Corp?", + "Which rows in `support.tickets` were updated most recently?", + "What plan and region are recorded for jane@example.com in `billing.customers`?" + ], + "good_to_know": [ + { + "title": "Large tables need a sync mode.", + "text": "A table with no cursor column and no change history is read in full on every sync, which is expensive on large tables." + }, + { + "title": "Change-history rows carry two extra lines.", + "text": "In change-history mode, each row also has `_change_type` and `_change_timestamp` columns, and both appear in the row text." + }, + { + "title": "A cursor column does not always set the date.", + "text": "Recency uses only the time column names listed above. A cursor with another name drives sync without setting the document date." + }, + { + "title": "Backfill is best effort.", + "text": "Deleting rows while existing rows are still loading can make other rows be missed." + } + ] +} diff --git a/scripts/connector_pages/github.json b/scripts/connector_pages/github.json new file mode 100644 index 00000000..29fc78fa --- /dev/null +++ b/scripts/connector_pages/github.json @@ -0,0 +1,266 @@ +{ + "description": "Sync issues and pull requests, each with its whole discussion, from the GitHub repositories you choose.", + "intro": [ + "The GitHub connector reads the repositories you select. Each issue and each pull request becomes one document that carries its body and its whole discussion: conversation comments and, for a pull request, review comments and review summaries.", + "Issues and pull requests are linked to the issues they reference or close, to their parent issue, and to the Linear issues, Slack messages and Notion pages they link to." + ], + "connect": { + "auth": "GitHub uses a personal access token. A classic token needs `repo`, or `public_repo` for public repositories only. A fine-grained token works with the access GitHub grants it.", + "credentials": [ + { + "name": "access_token", + "type": "secret string", + "required": true, + "text": "A GitHub personal access token with read access to repositories and issues." + } + ], + "permissions_label": "Scopes for a classic token", + "permissions": [ + { + "name": "public_repo", + "text": "public repositories only. Use this or `repo`." + }, + { + "name": "repo", + "text": "private and public repositories. Reading a private repository's collaborators for permissions also needs it." + }, + { + "name": "read:org", + "text": "reads which organization teams can access a repository, for permissions. If GitHub refuses it, the connector raises a permission warning." + } + ], + "permissions_note": "HydraDB checks for `repo` or `public_repo` only when GitHub reports the token's scopes. Fine-grained tokens may not report them.", + "steps": [ + { + "title": "Create a token", + "text": "In GitHub, create a personal access token with `repo`, or `public_repo` for public repositories only. Add `read:org` if you want organization team access captured." + }, + { + "title": "Create the connector", + "text": "Paste the token as `access_token`." + }, + { + "title": "Select repositories", + "text": "Discover lists every repository the token's user owns, collaborates on, or can see as an organization member. Select the repositories to sync." + } + ], + "account": "GitHub rate limits apply per token, so a large first sync can use up the hourly quota. That is why the first sync is bounded." + }, + "documents": [ + { + "name": "Issues and pull requests", + "kind": "ticket", + "one_document": "One issue or one pull request, with its whole discussion inside it.", + "title": "The issue or pull request title.", + "text": "The body. Each comment, review comment and review summary is added as its own searchable part of the item, with its author and time, and for a review comment the file, line and the comment it replies to. Empty comments are skipped. Labels are written as a `Labels` line, the creation time as a `Created` line, and a sub-issue's parent as a `Parent` line.", + "date": "When the issue or pull request was last updated.", + "link_back": "The issue or pull request page on GitHub.", + "files": "Images and files in bodies and comments are not downloaded.", + "attributes": [ + { + "name": "title", + "purposes": [ + "Title", + "Searchable", + "Link" + ], + "text": "Names the result. HydraDB also scans it for Linear issue keys and links." + }, + { + "name": "body", + "purposes": [ + "Searchable", + "Link" + ], + "text": "The main text. References in it become links: `#123`, `owner/repo#123`, closing keywords, and Linear, Slack and Notion links." + }, + { + "name": "Comments", + "purposes": [ + "Searchable", + "Person or group in the graph", + "Link" + ], + "text": "Each comment, review comment and review summary is searchable with the item. Its author is recorded as a commenter, and references inside it become links of the item." + }, + { + "name": "labels", + "purposes": [ + "Searchable" + ], + "text": "Written as the `Labels` line, so a query can match a label." + }, + { + "name": "created_at", + "purposes": [ + "Searchable" + ], + "text": "Written as the `Created` line." + }, + { + "name": "Item id", + "purposes": [ + "Searchable", + "Link" + ], + "text": "The id `owner/repo#number`. It keeps later syncs on the same document, and it is what items in other tools, such as Linear issues, link to." + }, + { + "name": "updated_at", + "purposes": [ + "Date" + ], + "text": "When the item was last updated. It is the document date, and it moves with every edit or new comment." + }, + { + "name": "additional_metadata.github_repo", + "purposes": [ + "Filter" + ], + "text": "The repository as `owner/name`. Limits a query to one repository." + }, + { + "name": "additional_metadata.github_issue_number", + "purposes": [ + "Filter" + ], + "text": "The issue or pull request number. Targets one item." + }, + { + "name": "connector_id", + "purposes": [ + "Filter" + ], + "text": "Limits a query to this connector." + }, + { + "name": "provider", + "purposes": [ + "Filter" + ], + "text": "Always `github`." + }, + { + "name": "parent_id", + "purposes": [ + "Link", + "Searchable" + ], + "text": "A sub-issue's parent issue, as `owner/repo#number`. Links the sub-issue to its parent, and is written as the `Parent` line." + }, + { + "name": "is_pr", + "purposes": [ + "Link" + ], + "text": "Marks a pull request, so closing keywords in its body link it to the issues it closes." + }, + { + "name": "mentions", + "purposes": [ + "Person or group in the graph" + ], + "text": "Each `@username` in the body, recorded as a person the item mentions." + }, + { + "name": "Repository", + "purposes": [ + "Access" + ], + "text": "The selected repository. Its audience decides who can read every issue and pull request in it." + }, + { + "name": "author", + "purposes": [ + "Stored with results" + ], + "text": "The login of the person who opened the item. It is not searchable and not added to the graph as a person." + }, + { + "name": "assignees", + "purposes": [ + "Stored with results" + ], + "text": "Assignee logins. Not searchable, and not added to the graph." + }, + { + "name": "state", + "purposes": [ + "Stored with results" + ], + "text": "`open` or `closed`. Not searchable." + }, + { + "name": "closed_at", + "purposes": [ + "Stored with results" + ], + "text": "When the item was closed." + }, + { + "name": "milestone, milestone_due", + "purposes": [ + "Stored with results" + ], + "text": "The milestone title and its due date." + } + ] + } + ], + "graph": { + "connections": [ + "A sub-issue to its parent issue.", + "An issue or pull request to each issue or pull request it references in its body or discussion.", + "A pull request to each issue its body closes with a closing keyword.", + "An issue or pull request to a Linear issue it links to, or names after a closing word.", + "An issue or pull request to a Slack message or Notion page it links to.", + "In the other direction, Linear issues link to the GitHub pull requests attached to them.", + "References inside code blocks, inline code and HTML comments are ignored." + ], + "people": [ + "The author of each comment, as a commenter.", + "Each `@username` mentioned in the body.", + "The person who opened the item and its assignees are not declared as people." + ], + "from_text": "The body and discussion text: topics, decisions, and people and projects named in prose." + }, + "permissions": { + "carried": true, + "who_can_read": "Access follows the repository, not the single issue. A public or internal repository can be read by everyone in your HydraDB tenant unless you set an access rule. A private repository can be read by its collaborators and by the organization teams that have access to it.", + "identity": "The email address on a collaborator's public GitHub profile. Teams are added as groups.", + "when_unreadable": "If a collaborator hides their profile email, the collaborator list is incomplete, there are too many people to express, or GitHub refuses a request, the connector raises a permission warning. An access rule you set on the repository stays in force. Without a rule, depending on your deployment's setting, the repository's items are either readable by everyone or hidden until permissions can be read.", + "notes": [ + "One collaborator with a hidden public email stops HydraDB from capturing a private repository's audience. Set an access rule on such a repository.", + "Internal repositories are open to everyone in your HydraDB tenant. Check that this matches who should see them." + ] + }, + "sync": { + "first_sync": "Reaches back 30 days by default, set by `lookback_days`. The window is measured from the repository's most recent activity, not from today, so a quiet repository still brings in its last stretch of work.", + "changes": "Each sync asks GitHub for items updated since the last sync. A changed item is sent again with its whole discussion.", + "edits": "Editing an issue or pull request, or adding a comment, moves its updated time, so the whole item is sent again.", + "deletes": "Deleted issues and pull requests are not removed. An item that disappears from GitHub can stay searchable in HydraDB." + }, + "not_synced": [ + "Code, commits and diffs.", + "Releases, wikis, projects and GitHub Discussions.", + "Images and files attached in bodies and comments.", + "Repositories the token's user cannot see." + ], + "questions": [ + "What was decided in the discussion on the pull request that added rate limiting?", + "Which pull request fixed issue `acme/api#412`?", + "Which issues in `acme/api` are labelled bug and mention the login timeout?", + "Which Linear issue does this pull request close?", + "What did reviewers say about the caching change in `acme/web`?" + ], + "good_to_know": [ + { + "title": "Who opened or owns an item is not searchable.", + "text": "The opener, the assignees and whether the item is open are stored on it, but a query does not match them." + }, + { + "title": "Comments arrive inside their issue or pull request.", + "text": "Each comment is part of its issue or pull request, so a result is the whole item, not a single comment." + } + ] +} diff --git a/scripts/connector_pages/hubspot.json b/scripts/connector_pages/hubspot.json new file mode 100644 index 00000000..8c5455c9 --- /dev/null +++ b/scripts/connector_pages/hubspot.json @@ -0,0 +1,227 @@ +{ + "description": "Sync HubSpot CRM records and logged activities, with record-level permissions worked out from owners and teams.", + "intro": [ + "The HubSpot connector reads the CRM object types you select: deals, tickets, contacts and companies, and the notes, emails, calls, meetings and tasks logged on them. Each record or activity becomes one document.", + "Activities are linked to the deal, contact or company they are logged on. Records carry a list of who can read them, worked out from HubSpot owners and teams." + ], + "connect": { + "auth": "HubSpot uses an access token from a private app, or an OAuth access token.", + "credentials": [ + {"name": "access_token", "type": "secret string", "required": true, "text": "A HubSpot private-app or OAuth access token. HydraDB does not refresh it, so a short-lived token must be replaced when it expires."} + ], + "permissions_label": "Scopes for the app, all required", + "permissions": [ + {"name": "crm.objects.contacts.read", "text": "contacts."}, + {"name": "crm.objects.companies.read", "text": "companies."}, + {"name": "crm.objects.deals.read", "text": "deals."}, + {"name": "tickets", "text": "tickets."}, + {"name": "crm.objects.notes.read", "text": "notes."}, + {"name": "crm.objects.calls.read", "text": "calls."}, + {"name": "crm.objects.emails.read", "text": "logged emails."}, + {"name": "sales-email-read", "text": "email bodies. Without it, emails sync with their subject only."}, + {"name": "crm.objects.meetings.read", "text": "meetings."}, + {"name": "crm.objects.tasks.read", "text": "tasks."}, + {"name": "crm.objects.owners.read", "text": "record owners, used to work out who can read a record."}, + {"name": "settings.users.read", "text": "users, their teams and super-admin status, used for permissions."}, + {"name": "settings.users.teams.read", "text": "teams, used for permissions."} + ], + "steps": [ + {"title": "Create a private app", "text": "In HubSpot, create a private app or an OAuth app that requests every scope above, and copy its access token."}, + {"title": "Create the connector", "text": "Paste the token as `access_token`."}, + {"title": "Select object types", "text": "Discover lists the CRM object types the token can read. Select the ones to sync. Notes, emails, calls, meetings and tasks are offered only when the token can also read contacts, companies, deals and tickets."}, + {"title": "Name the roles that see everything", "text": "When you configure the connector, list in `full_visibility_roles` the names of HubSpot roles whose members can see every record. HubSpot does not report what a role can see, so a member of such a role is otherwise not given access. Leaving the setting out keeps the current list; an empty list clears it."} + ] + }, + "shared_attributes": [ + {"name": "updated_at", "purposes": ["Date"], "text": "When the record was last modified. It is the document date, unless the activity has its own time. It is also in the text of notes and emails."}, + {"name": "created_at", "purposes": ["Date"], "text": "Used as the date only when there is no activity time and no modification time. It is also in the text of deals, tickets, notes, emails and calls."}, + {"name": "additional_metadata.hubspot_id", "purposes": ["Filter"], "text": "The HubSpot record id. Targets one record, and keeps later syncs on the same document."}, + {"name": "additional_metadata.hubspot_object", "purposes": ["Filter"], "text": "The object type, such as `deals` or `notes`. Limits a query to one type."}, + {"name": "additional_metadata.rbac_warning", "purposes": ["Filter"], "text": "Set when there was a problem working out who can read the record, such as readers that could not be resolved or a removed team. A warning does not by itself mean the record is public."}, + {"name": "connector_id", "purposes": ["Filter"], "text": "Limits a query to this connector."}, + {"name": "provider", "purposes": ["Filter"], "text": "Always `hubspot`."}, + {"name": "acl", "purposes": ["Access"], "text": "The people who can read the record, worked out as described under Permissions."}, + {"name": "object_type", "purposes": ["Stored with results"], "text": "The object type the record came from. To filter on it, use `additional_metadata.hubspot_object`."}, + {"name": "Custom CRM properties", "purposes": ["Not kept"], "text": "Properties beyond the ones listed on this page are not kept."} + ], + "documents": [ + { + "name": "Deals", + "kind": "ticket", + "one_document": "One deal.", + "title": "The deal name.", + "text": "The deal description, then `Deal`, `Amount`, `Stage`, `Close date` and `Owner` lines.", + "date": "When the deal was last modified, else when it was created.", + "link_back": "None.", + "attributes": [ + {"name": "Deal text", "purposes": ["Searchable"], "text": "The description and the lines described above."}, + {"name": "title", "purposes": ["Title", "Searchable"], "text": "Names the deal in results."}, + {"name": "amount", "purposes": ["Searchable"], "text": "Written as the `Amount` line."}, + {"name": "close_date", "purposes": ["Searchable"], "text": "Written as the `Close date` line."}, + {"name": "stage", "purposes": ["Searchable"], "text": "Written as the `Stage` line, as HubSpot's internal stage id, not its display name."}, + {"name": "owner", "purposes": ["Searchable", "Person or group in the graph"], "text": "The owner's email, written as the `Owner` line. HydraDB can find the rep from that text. The owner is not declared as the deal's assignee."}, + {"name": "pipeline", "purposes": ["Stored with results"], "text": "HubSpot's pipeline id. It is not turned into a name and is not searchable."} + ] + }, + { + "name": "Tickets", + "kind": "ticket", + "one_document": "One ticket.", + "title": "The ticket subject.", + "text": "The ticket content. When the content is empty, the subject with `Priority` and `Stage` lines.", + "date": "When the ticket was last modified, else when it was created.", + "link_back": "None.", + "attributes": [ + {"name": "Ticket text", "purposes": ["Searchable"], "text": "The content, or the fallback described above."}, + {"name": "title", "purposes": ["Title", "Searchable"], "text": "Names the ticket in results."}, + {"name": "priority", "purposes": ["Searchable"], "text": "Written as a `Priority` line."}, + {"name": "stage", "purposes": ["Searchable"], "text": "Written as a `Stage` line only when the ticket has no content. Otherwise it is stored and not searchable."}, + {"name": "owner", "purposes": ["Stored with results"], "text": "The owner's email. It is not part of the text."} + ] + }, + { + "name": "Contacts and companies", + "kind": "custom", + "one_document": "One contact, or one company.", + "title": "A contact's first and last name, else their email. A company's name.", + "text": "A contact: `Name`, `Email`, `Company`, `Phone` and `Job title` lines. A company: its description, then `Company`, `Domain` and `Industry` lines.", + "date": "When the record was last modified, else when it was created.", + "link_back": "None.", + "attributes": [ + {"name": "Contact or company text", "purposes": ["Searchable"], "text": "The lines described above."}, + {"name": "title", "purposes": ["Title", "Searchable"], "text": "Names the contact or company in results."}, + {"name": "email", "purposes": ["Searchable"], "text": "A contact's email, so a query can find the person by email."}, + {"name": "company", "purposes": ["Searchable"], "text": "A contact's company name."}, + {"name": "job_title", "purposes": ["Searchable"], "text": "A contact's job title."}, + {"name": "domain", "purposes": ["Searchable"], "text": "A company's website domain, written as the `Domain` line."}, + {"name": "industry", "purposes": ["Searchable"], "text": "A company's industry, written as the `Industry` line."}, + {"name": "company_id", "purposes": ["Link"], "text": "Links a contact to its company's document."}, + {"name": "owner", "purposes": ["Stored with results"], "text": "The owner's email. It is not part of the text."} + ] + }, + { + "name": "Notes", + "kind": "comment", + "one_document": "One note.", + "title": "Usually the first 80 characters of the note.", + "text": "The note body, converted from HTML to plain text.", + "date": "When the note was logged as happening, else when it was last modified, else when it was created.", + "link_back": "None.", + "files": "Files attached to the note are not synced.", + "attributes": [ + {"name": "Note text", "purposes": ["Searchable"], "text": "The note body."}, + {"name": "occurred_at", "purposes": ["Date"], "text": "When the note was logged as happening. It is the document date."}, + {"name": "owner", "purposes": ["Stored with results"], "text": "The owner's email. It is not part of the text."} + ] + }, + { + "name": "Emails", + "kind": "email", + "one_document": "One logged email.", + "title": "The email subject.", + "text": "The plain-text body, else the HTML body converted to text, else the subject. The email's details, such as its direction, sender, recipient, owner and times, are written into the text as a list of fields.", + "date": "When the email happened, else when it was last modified, else when it was created.", + "link_back": "None.", + "files": "Files attached to the email are not synced.", + "attributes": [ + {"name": "Email text", "purposes": ["Searchable"], "text": "The body and details described above."}, + {"name": "title", "purposes": ["Title", "Searchable"], "text": "The subject. Names the email in results."}, + {"name": "from", "purposes": ["Searchable", "Person or group in the graph"], "text": "The sender. Part of the text, and attached to the email in the graph."}, + {"name": "to", "purposes": ["Searchable", "Person or group in the graph"], "text": "The recipient. Part of the text, and attached to the email in the graph."}, + {"name": "direction", "purposes": ["Searchable"], "text": "Whether the email was inbound or outbound, written into the details."}, + {"name": "owner", "purposes": ["Searchable"], "text": "The owner's email, written into the details."}, + {"name": "occurred_at", "purposes": ["Date", "Searchable"], "text": "When the email happened. It is the document date, and it is written into the details."} + ] + }, + { + "name": "Calls", + "kind": "message", + "one_document": "One logged call.", + "title": "Usually the first 80 characters of the call text, which include the call details.", + "text": "The call notes, converted from HTML, then `Call`, `Direction` and `Owner` lines.", + "date": "When the call happened, else when it was last modified, else when it was created.", + "link_back": "None.", + "attributes": [ + {"name": "Call text", "purposes": ["Searchable"], "text": "The notes and lines described above."}, + {"name": "direction", "purposes": ["Searchable"], "text": "Written as the `Direction` line, so a query can match inbound or outbound calls."}, + {"name": "owner", "purposes": ["Searchable", "Person or group in the graph"], "text": "Written as the `Owner` line. HydraDB can find the rep from that text."}, + {"name": "occurred_at", "purposes": ["Date"], "text": "When the call happened. It is the document date."}, + {"name": "duration_ms", "purposes": ["Stored with results"], "text": "The call length in milliseconds. It is not searchable."} + ] + }, + { + "name": "Meetings and tasks", + "kind": "custom", + "one_document": "One logged meeting, or one task.", + "title": "The meeting title, or the task subject.", + "text": "A meeting: its notes converted from HTML, then `Meeting`, `Location`, `Start` and `Owner` lines. A task: its body converted from HTML, then `Task`, `Status`, `Priority` and `Owner` lines.", + "date": "When the meeting or task happened, else when it was last modified, else when it was created.", + "link_back": "None.", + "attributes": [ + {"name": "Meeting or task text", "purposes": ["Searchable"], "text": "The notes or body and the lines described above."}, + {"name": "title", "purposes": ["Title", "Searchable"], "text": "Names the meeting or task in results."}, + {"name": "location", "purposes": ["Searchable"], "text": "Where the meeting was held, written as the `Location` line."}, + {"name": "start_time", "purposes": ["Searchable"], "text": "When the meeting started, written as the `Start` line. The document date is the activity time."}, + {"name": "status", "purposes": ["Searchable"], "text": "A task's status, written as the `Status` line."}, + {"name": "priority", "purposes": ["Searchable"], "text": "A task's priority, written as the `Priority` line."}, + {"name": "owner", "purposes": ["Searchable", "Person or group in the graph"], "text": "Written as the `Owner` line. HydraDB can find the rep from that text."}, + {"name": "occurred_at", "purposes": ["Date"], "text": "When the meeting or task happened. It is the document date."}, + {"name": "end_time", "purposes": ["Stored with results"], "text": "When the meeting ended. It is not searchable and is not the document date."} + ] + } + ], + "graph": { + "connections": [ + "A contact to its company.", + "A note, email, call, meeting or task to the deal it is logged on. With no deal, to the contact. With no contact, to the company. When several records of one type are associated, the one with the lowest id is used.", + "An activity is linked to that record only if everyone who can read the activity can also read the record.", + "No links to other tools." + ], + "people": [ + "The record owner, as an email.", + "The sender and recipient of each email.", + "A contact's company name." + ], + "from_text": "Everything in deal descriptions, ticket content, and the text of notes, emails, calls, meetings and tasks." + }, + "permissions": { + "carried": true, + "who_can_read": "Each deal, contact and company carries HubSpot's owners and the teams that can access it, including parent teams. Its readers are the owners, every member of those teams, every super admin, and the members of the roles you list in `full_visibility_roles`. An activity can be read by everyone who can read any record it is logged on. An activity logged on nothing uses its own owner and teams.", + "identity": "A HubSpot user's or owner's email address.", + "when_unreadable": "If a record names owners or teams but their readers cannot be worked out, the record gets an access warning, which you can find with `additional_metadata.rbac_warning`. An access rule you set stays in force. Without one, depending on your deployment's setting, the record is either readable by everyone or hidden until its readers can be worked out. A record with no owner or team information is not restricted and gets no warning.", + "notes": [ + "Tickets do not carry HubSpot's owner and team access lists, so owners and teams do not restrict them. Set an access rule on the tickets resource if tickets must be private.", + "Queues and archived owners give access to no one.", + "If an activity's parent record is not synced, the activity can be readable by everyone. Sync the deals, contacts and companies your activities are logged on.", + "This is HydraDB's reading of HubSpot owners, teams and roles. It is not a guarantee that HydraDB matches HubSpot's visibility in every case." + ] + }, + "sync": { + "first_sync": "Each selected object type reaches back the window set by `lookback_days`, 30 days by default.", + "changes": "Each sync reads records modified since the last sync. Owners, users and teams are read in full on every sync.", + "edits": "An edited record is read again and replaces its document.", + "deletes": "Deleted and archived HubSpot records are not removed. They stay in HydraDB.", + "notes": [ + "If the token lacks the scope for one object type, that type can be skipped while the others sync." + ] + }, + "not_synced": [ + "Object types you did not select.", + "Email bodies, when the token lacks `sales-email-read`: those emails have their subject only.", + "Products, line items, quotes, forms, marketing emails and other HubSpot objects.", + "Files attached to activities.", + "Custom CRM properties.", + "Deletions and archived records." + ], + "questions": [ + "What was said on the last call with this contact?", + "What amounts and close dates are recorded on the synced deals?", + "Which notes and emails are logged on the Acme deal?", + "What did the customer write in their last email?" + ], + "good_to_know": [ + {"title": "Stages and pipelines are ids.", "text": "Deal stages appear in the text as HubSpot's internal ids, not their display names. Pipelines are not searchable."}, + {"title": "Results do not link back to HubSpot.", "text": "No HubSpot URL is stored. Use `additional_metadata.hubspot_id` to find the record."}, + {"title": "Older connectors sync every object type.", "text": "A connector set up before object types could be selected keeps syncing all of them until you configure it again."} + ] +} diff --git a/scripts/connector_pages/notion.json b/scripts/connector_pages/notion.json new file mode 100644 index 00000000..97bdd778 --- /dev/null +++ b/scripts/connector_pages/notion.json @@ -0,0 +1,215 @@ +{ + "description": "Sync the Notion pages and databases you share with HydraDB, one searchable document per page.", + "intro": [ + "The Notion connector reads the databases and top-level pages you share with its integration. Each page becomes one document: a database row, a selected page, and every sub-page under them.", + "Each sub-page is linked to the page it sits under, so a page tree stays connected." + ], + "connect": { + "auth": "Notion uses an internal integration token.", + "credentials": [ + { + "name": "access_token", + "type": "secret string", + "required": true, + "text": "A Notion internal integration token. It starts with `secret_` or `ntn_`." + } + ], + "permissions_label": "Capabilities to give the integration", + "permissions": [ + { + "name": "Read content", + "text": "required. Lets HydraDB search, read pages and blocks, and query databases." + }, + { + "name": "Read user information without email", + "text": "optional. Lets HydraDB check the token and show who created a page." + } + ], + "steps": [ + { + "title": "Create an integration", + "text": "In Notion, create an internal integration with the Read content capability, and copy its token." + }, + { + "title": "Share content with it", + "text": "Share each database and page you want synced with the integration. Discovery lists only what the integration can see." + }, + { + "title": "Create the connector", + "text": "Paste the token as `access_token`." + }, + { + "title": "Select resources", + "text": "Discover lists every database the integration can see, and every page that sits at the top of the workspace. Select at least one: a sync needs a selected resource." + } + ] + }, + "documents": [ + { + "name": "Pages", + "kind": "knowledge_base", + "one_document": "One Notion page: a database row, a selected page, or any sub-page under them. A sub-page is its own document, not part of its parent's text.", + "title": "The page's title. A page without a title uses its Notion id.", + "text": "The page title at the top, the creator as an `Author` line, and the plain text of the page's blocks in order, one block per line: paragraphs, headings, bulleted and numbered lists, to-dos, toggles, quotes, callouts and code. Text inside toggles and callouts is included.", + "date": "When the page was last edited.", + "link_back": "The page in Notion.", + "files": "Images and files are kept as links to the original. Text in images can be added when HydraDB's image reading is available. The text of PDF and Word files is not guaranteed to be read.", + "attributes": [ + { + "name": "title", + "purposes": [ + "Title", + "Searchable" + ], + "text": "Names the page in results, and is written at the top of its text." + }, + { + "name": "Page text", + "purposes": [ + "Searchable" + ], + "text": "The block text described above. This is what a query matches." + }, + { + "name": "created_by", + "purposes": [ + "Searchable", + "Person or group in the graph" + ], + "text": "The creator's display name, or their Notion id if the name cannot be read. It is the `Author` line of the text, and the graph records the page as written by that person." + }, + { + "name": "last_edited_time", + "purposes": [ + "Date" + ], + "text": "When the page was last edited. It is the document date, and it is not part of the text." + }, + { + "name": "additional_metadata.notion_page_id", + "purposes": [ + "Filter" + ], + "text": "The page's Notion id. Limits a query to one page." + }, + { + "name": "connector_id", + "purposes": [ + "Filter" + ], + "text": "Limits a query to this connector." + }, + { + "name": "provider", + "purposes": [ + "Filter" + ], + "text": "Always `notion`." + }, + { + "name": "parent_id", + "purposes": [ + "Link" + ], + "text": "For a sub-page, the page it sits under. Links the two, so a page tree is connected in the graph." + }, + { + "name": "created_by_email", + "purposes": [ + "Person or group in the graph" + ], + "text": "The creator's email, when Notion returns one. It lets the graph recognise the same person across tools." + }, + { + "name": "mentions", + "purposes": [ + "Person or group in the graph" + ], + "text": "People @mentioned in the page. The graph records each as mentioned by the page." + }, + { + "name": "created_at", + "purposes": [ + "Stored with results" + ], + "text": "When the page was created." + }, + { + "name": "last_edited_by", + "purposes": [ + "Stored with results" + ], + "text": "The Notion user id of the last editor. It is not turned into a name or a person." + }, + { + "name": "Database properties", + "purposes": [ + "Not kept" + ], + "text": "Property values other than the title, such as status, owner, dates and tags, are not read." + }, + { + "name": "Comments", + "purposes": [ + "Not kept" + ], + "text": "Comments on pages are not read." + } + ] + } + ], + "graph": { + "connections": [ + "A sub-page to the page it sits under.", + "No links from Notion pages to other tools. In the other direction, GitHub issues, pull requests and comments that link to a Notion page are linked to it." + ], + "people": [ + "The page's creator, with an email when Notion returns one.", + "People @mentioned in the page." + ], + "from_text": "Everything in the page text: topics, and people or projects named in plain text rather than @mentioned. Database properties are not read, so structure kept only in database columns is not available." + }, + "permissions": { + "carried": false, + "notes": [ + "Notion's page sharing is not read." + ] + }, + "sync": { + "first_sync": "A database reaches back 30 days by last edited time by default, set by `lookback_days`. A selected page and its sub-pages are walked on every sync.", + "changes": "For a database, rows edited since the last sync are read again in full, with their sub-pages. For a selected page, the whole tree is walked on every sync and pages edited since the last sync are sent.", + "edits": "An edited page is sent again and replaces its document. A sub-page under a database row is picked up only when the row itself is edited.", + "deletes": "Pages deleted or unshared in Notion are not removed. They stay searchable in HydraDB.", + "notes": [ + "Sub-pages are followed up to 10 levels deep, and blocks up to 20 levels deep.", + "A sub-page or block that Notion now refuses or cannot find is skipped instead of failing its page." + ] + }, + "not_synced": [ + "Database property values other than the title.", + "Comments on pages.", + "Pages and databases not shared with the integration.", + "Text in unsupported blocks, such as table rows, equations, embeds and bookmarks.", + "Deletions: deleted pages stay in HydraDB." + ], + "questions": [ + "What does our onboarding page say about laptop setup?", + "Which Notion pages did Priya create?", + "Which pages mention Alex?", + "What sub-pages sit under the Engineering Handbook page?" + ], + "good_to_know": [ + { + "title": "Database columns are not synced.", + "text": "A database row brings in its title and page text only. Status, owner, dates and tags are not read." + }, + { + "title": "Edits to a sub-page under a database row can be missed.", + "text": "They are picked up when the row itself is edited. Pages you select directly do not have this problem, because they are walked on every sync." + }, + { + "title": "Only the last 30 days of a database come in first.", + "text": "Set `lookback_days` to reach further back." + } + ] +} diff --git a/scripts/connector_pages/slack.json b/scripts/connector_pages/slack.json new file mode 100644 index 00000000..c62d21e6 --- /dev/null +++ b/scripts/connector_pages/slack.json @@ -0,0 +1,296 @@ +{ + "description": "Sync messages and thread replies from the Slack channels you choose, with private channels limited to their members.", + "intro": [ + "The Slack connector reads the public and private channels you select in one Slack workspace. Each message becomes one document, and each thread reply is its own document linked to the message that started the thread.", + "Files shared in a message are downloaded and read with it. A private channel's messages can be limited to the channel's members." + ], + "connect": { + "auth": "Slack uses a token from a Slack app installed in your workspace. A bot token or a user token works.", + "credentials": [ + { + "name": "access_token", + "type": "secret string", + "required": true, + "text": "A Slack bot token, which starts with `xoxb-`, or a user token, which starts with `xoxp-`." + } + ], + "permissions_label": "Scopes to add to the Slack app", + "permissions": [ + { + "name": "channels:read", + "text": "lists public channels in the channel picker." + }, + { + "name": "channels:history" + }, + { + "name": "groups:read", + "text": "lists private channels in the channel picker." + }, + { + "name": "groups:history" + }, + { + "name": "users:read" + }, + { + "name": "users:read.email", + "text": "without it, permissions cannot be captured for any private channel." + }, + { + "name": "files:read" + } + ], + "permissions_note": "If neither `channels:read` nor `groups:read` is granted, connecting fails with a message that names the missing scope.", + "steps": [ + { + "title": "Create a Slack app", + "text": "Create a Slack app for your workspace and add the scopes above." + }, + { + "title": "Install it", + "text": "Install the app in the workspace and copy its token." + }, + { + "title": "Create the connector", + "text": "Paste the token as `access_token`." + }, + { + "title": "Select channels", + "text": "Discover lists every public and private channel that is not archived and that the token can see, with whether it is private, whether the app is a member, and its member count. Select the channels to sync." + } + ], + "account": "One token covers one Slack workspace." + }, + "documents": [ + { + "name": "Messages", + "kind": "message", + "one_document": "One Slack message: a message posted in a channel, or a single reply in a thread.", + "title": "The channel name with `#`, a colon and the message's first line, cut to about 80 characters, for example `#general: Deploy is done`. A reply reads `#general thread: ...`. A message with no text is titled `Slack message`.", + "text": "The message text, with mentions turned into display names. Then the pretext, title and text of any legacy attachments, and one `[file: name]` line per shared file. The sender is written as a `From` line and the time as a `Sent` line.", + "date": "The message's Slack timestamp.", + "link_back": "A Slack permalink to the message. A reply links to itself inside its thread. Empty if the workspace address could not be read.", + "files": "Each shared file is downloaded and read, and its text becomes searchable with the message. A file is skipped if Slack gave no download address, the download fails, or the file is too large.", + "attributes": [ + { + "name": "Message text", + "purposes": [ + "Searchable" + ], + "text": "The text described above. This is what a query matches, and what HydraDB reads for people and topics." + }, + { + "name": "author", + "purposes": [ + "Searchable", + "Person or group in the graph" + ], + "text": "The display name of the person or bot that posted, or the raw Slack id if the name could not be read. It is the `From` line, and the graph records the message as sent by that person." + }, + { + "name": "Shared files", + "purposes": [ + "Searchable" + ], + "text": "The text read from each shared file, searchable with the message." + }, + { + "name": "title", + "purposes": [ + "Title" + ], + "text": "Labels the message with its channel and opening words in results. When the message has text, search matches the message itself, so the channel name in the title is not guaranteed to match a query." + }, + { + "name": "created_at", + "purposes": [ + "Date", + "Searchable" + ], + "text": "The message time. It is the document date used for recency, and the `Sent` line of the text." + }, + { + "name": "additional_metadata.slack_ts", + "purposes": [ + "Filter" + ], + "text": "The message's Slack timestamp. Picks out one exact message." + }, + { + "name": "additional_metadata.slack_thread_ts", + "purposes": [ + "Filter" + ], + "text": "The timestamp of the thread's first message, empty outside a thread. Limits a query to one thread." + }, + { + "name": "additional_metadata.slack_subtype", + "purposes": [ + "Filter" + ], + "text": "Slack's message subtype, such as `bot_message` or `file_share`. Includes or excludes bot posts and file shares." + }, + { + "name": "additional_metadata.slack_bot_id", + "purposes": [ + "Filter" + ], + "text": "The bot id when a bot posted the message. Includes or excludes one bot's messages." + }, + { + "name": "additional_metadata.slack_reply_count", + "purposes": [ + "Filter" + ], + "text": "How many replies the thread has. Finds thread starters by how many replies they drew." + }, + { + "name": "connector_id", + "purposes": [ + "Filter", + "Access" + ], + "text": "Limits a query to this connector. Access rules you set on a channel are matched to messages through it." + }, + { + "name": "provider", + "purposes": [ + "Filter" + ], + "text": "Always `slack`." + }, + { + "name": "parent_id", + "purposes": [ + "Link" + ], + "text": "For a reply, the message that started its thread. Joins the reply to that message, so the whole conversation can be returned together." + }, + { + "name": "thread_id", + "purposes": [ + "Link" + ], + "text": "The thread a message belongs to. Groups every message of one thread together in the graph." + }, + { + "name": "mentions", + "purposes": [ + "Person or group in the graph", + "Searchable" + ], + "text": "Display names of people mentioned in the message. The graph records each as mentioned. The names are searchable as part of the message text." + }, + { + "name": "Channel", + "purposes": [ + "Access" + ], + "text": "The selected channel. For a private channel, its members decide who can read its messages." + }, + { + "name": "attachment_count", + "purposes": [ + "Stored with results" + ], + "text": "How many legacy attachments the message had." + }, + { + "name": "file_count", + "purposes": [ + "Stored with results" + ], + "text": "How many shared files Slack listed, including any that could not be downloaded." + }, + { + "name": "is_edited", + "purposes": [ + "Stored with results" + ], + "text": "Whether Slack marked the message as edited when it was read. Later edits are not picked up automatically." + }, + { + "name": "edited_by", + "purposes": [ + "Stored with results" + ], + "text": "The display name of the editor, when edited. The editor is not added to the graph as a person." + }, + { + "name": "edited_at", + "purposes": [ + "Stored with results" + ], + "text": "The edit time, when edited. The document date stays the original message time." + }, + { + "name": "slack_files", + "purposes": [ + "Stored with results" + ], + "text": "The details Slack supplied for each shared file, kept even when a file's text could not be read." + }, + { + "name": "Reactions", + "purposes": [ + "Not kept" + ], + "text": "Reactions are not read." + } + ] + } + ], + "graph": { + "connections": [ + "A thread reply to the message that started the thread.", + "Every message to its thread, including a message nobody replied to.", + "No links to items in other tools." + ], + "people": [ + "The sender of each message.", + "People mentioned in a message.", + "An editor is kept with the message but not added to the graph." + ], + "from_text": "Topics, decisions, people and organisations named in prose, in the message text, legacy attachment text and shared file text. Each reply is read together with the text of its thread's first message." + }, + "permissions": { + "carried": true, + "who_can_read": "A public channel's messages can be read by the whole workspace. A private channel's messages can be read by its members. HydraDB reads this once per channel on each sync; there is no per-message permission.", + "identity": "A member's email address, in lower case. Bots and deactivated users have no email and are left out.", + "when_unreadable": "If HydraDB cannot read a channel's privacy, members or member emails, an access rule you set on that channel stays in force. Without a rule, the connector status shows a permission warning, and depending on your deployment's setting the messages either stay readable or are hidden until permissions can be read.", + "notes": [ + "A private channel with more than 1,000 members who have emails, or more than 3,000 members in all, cannot be captured. Set an access rule on such a channel.", + "Without `users:read.email`, permissions cannot be captured for any private channel." + ] + }, + "sync": { + "first_sync": "A newly selected channel reads back the window set by `lookback_days`, 30 days by default.", + "changes": "Each sync reads recent history for new messages, and new replies on threads whose latest reply moved. A second pass, every 6 hours by default, walks the channel's whole history in steps to find new replies on older threads.", + "edits": "A routine sync does not pick up an edit to a message that is already indexed.", + "deletes": "Deleted messages are not removed. A message deleted in Slack stays searchable in HydraDB." + }, + "not_synced": [ + "Archived channels: discovery does not offer them.", + "Direct messages and group direct messages.", + "System messages: joins, leaves, renames, topic and purpose changes, pins, bots being added or removed, and thread broadcasts.", + "Edits and deletions made after a message was indexed.", + "Reactions." + ], + "questions": [ + "What did the team decide about the release last week?", + "What did Priya say in the thread about the pricing change?", + "Which messages were posted by the alerts bot?", + "What does the PDF shared in the design channel say about the new layout?" + ], + "good_to_know": [ + { + "title": "Naming a channel does not filter to it.", + "text": "When a message has text, search matches the message, not its `#channel` title. A channel name in a query does not reliably limit results to that channel." + }, + { + "title": "A name that could not be read stays an id.", + "text": "If HydraDB could not read a person's name, the message keeps the raw Slack id, and later syncs do not go back to fix it." + } + ] +} diff --git a/scripts/connector_pages/stripe.json b/scripts/connector_pages/stripe.json new file mode 100644 index 00000000..a0278230 --- /dev/null +++ b/scripts/connector_pages/stripe.json @@ -0,0 +1,134 @@ +{ + "description": "Sync customers, invoices, subscriptions and charges from a Stripe account, each linked to its customer.", + "intro": [ + "The Stripe connector reads one Stripe account. Customers, invoices, subscriptions and charges each become one document with a readable summary, and an invoice carries its line items.", + "Invoices, subscriptions and charges are linked to the customer they belong to." + ], + "callouts": { + "synced": { + "kind": "warning", + "text": "Amounts in the text are shown in major units, assuming two decimal places. For a zero-decimal currency, the amounts read 100 times too small. The stored numbers are unchanged." + } + }, + "connect": { + "auth": "Stripe uses a secret key together with the account id.", + "credentials": [ + {"name": "client_secret", "type": "secret string", "required": true, "text": "A Stripe secret key, `sk_live_...` or `sk_test_...`, with read access to the account's resources."}, + {"name": "account_id", "type": "string", "required": true, "text": "The Stripe account id, `acct_...`."} + ], + "steps": [ + {"title": "Create the connector", "text": "Paste the secret key as `client_secret` and the account id as `account_id`."}, + {"title": "Select the account", "text": "Discover offers one `All data` resource for the account. There are no smaller parts to pick. Select it."} + ], + "account": "One connector reads one Stripe account. A test-mode key reads test data and a live-mode key reads live data." + }, + "shared_attributes": [ + {"name": "created", "purposes": ["Date"], "text": "When the record was created. It is the document date, and it stays the creation time after the record is updated."}, + {"name": "additional_metadata.stripe_id", "purposes": ["Filter"], "text": "The Stripe id: `cus_...`, `in_...`, `sub_...` or `ch_...`. Targets one record. A customer's id is also what its invoices, subscriptions and charges link to."}, + {"name": "connector_id", "purposes": ["Filter"], "text": "Limits a query to this connector."}, + {"name": "provider", "purposes": ["Filter"], "text": "Always `stripe`."}, + {"name": "stream_type", "purposes": ["Stored with results"], "text": "The record type: `customers`, `invoices`, `subscriptions` or `charges`."}, + {"name": "Other Stripe fields", "purposes": ["Stored with results"], "text": "Every other field Stripe returns for the record, such as an address, metadata or invoice settings. A search does not match them, and they are not filters."} + ], + "documents": [ + { + "name": "Customers", + "kind": "custom", + "one_document": "One customer.", + "title": "The customer's name, or their email when there is no name.", + "text": "The customer's description, then `Name`, `Email`, `Phone` and `Balance` lines, with the balance in its currency.", + "date": "When the customer was created.", + "link_back": "None.", + "attributes": [ + {"name": "Customer text", "purposes": ["Searchable"], "text": "The description, name, email, phone and balance, as described above."}, + {"name": "title", "purposes": ["Title", "Searchable"], "text": "Names the customer in results."}, + {"name": "email", "purposes": ["Person or group in the graph", "Searchable", "Title"], "text": "The customer's email. It identifies the customer as a person in the graph, appears in the `Email` line, and is the title when there is no name."} + ] + }, + { + "name": "Invoices", + "kind": "custom", + "one_document": "One invoice, with its line items.", + "title": "`Invoice - `, using the customer's name or email.", + "text": "The invoice description, then `Customer`, `Email`, `Status`, `Total`, `Amount due`, `Amount paid`, `Due date` and `Line items` lines. Each line item shows its description and amount.", + "date": "When the invoice was created.", + "link_back": "None.", + "files": "Invoice PDFs are not downloaded.", + "attributes": [ + {"name": "Invoice text", "purposes": ["Searchable"], "text": "The description, customer, status, amounts, due date and line items, as described above."}, + {"name": "title", "purposes": ["Title", "Searchable"], "text": "Names the invoice in results."}, + {"name": "Line items", "purposes": ["Searchable"], "text": "Each line's description and amount, written into the `Line items` line."}, + {"name": "customer", "purposes": ["Link"], "text": "The customer id. Links the invoice to its customer's document."} + ] + }, + { + "name": "Subscriptions", + "kind": "custom", + "one_document": "One subscription.", + "title": "The plan's nickname or name, or the plan id, followed by `subscription`.", + "text": "`Plan`, `Status`, `Amount`, `Quantity`, `Customer`, `Started` and `Current period end` lines. `Amount` is the plan price with its currency and interval, for example `49.00 USD/month`. `Customer` is the customer's name, or the id when the name is not known.", + "date": "When the subscription was created.", + "link_back": "None.", + "attributes": [ + {"name": "Subscription text", "purposes": ["Searchable"], "text": "The plan, status, price, quantity, customer and period dates, as described above."}, + {"name": "plan", "purposes": ["Title", "Searchable"], "text": "The subscription's plan. Its nickname or name is the title, and its price and interval form the `Amount` line."}, + {"name": "customer", "purposes": ["Link", "Searchable"], "text": "The customer id. Links the subscription to its customer's document. The customer's name appears in the text."} + ] + }, + { + "name": "Charges", + "kind": "custom", + "one_document": "One charge.", + "title": "The charge description, or `Charge - ` when there is none.", + "text": "The charge description, then `Customer`, `Amount`, `Status`, `Receipt email` and `Failure message` lines. `Customer` is the first of the billing name, billing email, receipt email, customer name and customer id that is present.", + "date": "When the charge was created.", + "link_back": "None.", + "attributes": [ + {"name": "Charge text", "purposes": ["Searchable"], "text": "The description, payer, amount, status and failure reason, as described above."}, + {"name": "title", "purposes": ["Title", "Searchable"], "text": "Names the charge in results."}, + {"name": "customer", "purposes": ["Link"], "text": "The customer id. Links the charge to its customer's document."} + ] + } + ], + "graph": { + "connections": [ + "An invoice to its customer.", + "A subscription to its customer.", + "A charge to its customer.", + "Charges are not linked to their invoice, and invoices are not linked to their subscription.", + "No links to other tools." + ], + "people": [ + "Each customer, identified by their email." + ], + "from_text": "Products and plans as entities, and anything written in descriptions." + }, + "permissions": { + "carried": false + }, + "sync": { + "first_sync": "Reaches back the window set by `lookback_days`, 30 days by default.", + "changes": "Each sync lists records created in the sync window, and reads Stripe's events for updates in the same window.", + "edits": "An update, such as an invoice being paid, arrives as an event and replaces the record's document.", + "deletes": "Deletions in Stripe are not detected. A deleted record stays in HydraDB.", + "notes": [ + "Updates are read from events that reach back 30 days. After a long pause, updates to older records can be missed." + ] + }, + "not_synced": [ + "Products, prices and plans as their own documents.", + "Events, payouts, refunds, disputes, balance transactions and other Stripe objects.", + "Deletions in Stripe.", + "Invoice PDFs and hosted invoice pages." + ], + "questions": [ + "What status, amount due and amount paid are recorded for Acme Corp's invoice INV-0042?", + "What plan is jane@example.com subscribed to, and when does the current period end?", + "Why did the charge for jane@example.com fail?", + "What line items were on Acme Corp's last invoice?" + ], + "good_to_know": [ + {"title": "Recency follows creation time.", "text": "A record's date stays its creation time after it is updated, so recency ranks records by when they were created."}, + {"title": "Plan details come from the plan only.", "text": "Product or price details that live only in other fields are not searchable."} + ] +} diff --git a/scripts/dashboard_provider_names.json b/scripts/dashboard_provider_names.json index f9f17925..ef09851a 100644 --- a/scripts/dashboard_provider_names.json +++ b/scripts/dashboard_provider_names.json @@ -76,8 +76,8 @@ "zoho_crm": "Zoho CRM", "zoom": "Zoom" }, - "docs_overrides": { + "formerly": { "coda": "Coda" }, - "docs_overrides_reason": "The dashboard brands coda as Superhuman (description: formerly Coda). The docs keep Coda because the provider slug, the API host and the logo are all Coda." + "formerly_reason": "The dashboard brands coda as Superhuman and keeps \"formerly Coda\" in its description so a search for Coda finds it. The docs page description does the same." } diff --git a/scripts/generate_connector_pages.py b/scripts/generate_connector_pages.py index 5c776df5..9c509023 100644 --- a/scripts/generate_connector_pages.py +++ b/scripts/generate_connector_pages.py @@ -1,6 +1,7 @@ """Generate one page per connector enabled in production, plus the providers overview. scripts/production_providers.json is refreshed from GET /connectors/providers on production. +A provider with a copy file in scripts/connector_pages/ gets its page body rendered from that file. """ import argparse from collections import namedtuple @@ -18,6 +19,8 @@ LOGOS = ROOT / "images/connectors" DIRECTORY = ROOT / "essentials/v2/connectors" INDEX = ROOT / "essentials/v2/connector-providers.mdx" +COPY = ROOT / "scripts/connector_pages" +GUIDE = "/essentials/v2/connectors" SCOPED_PROVIDER_EXAMPLES = { "slack": ("slack-account-a", "slack-account-b"), "github": ("github-account-a", "github-account-b"), @@ -26,23 +29,30 @@ } NAVIGATION = ROOT / "docs.json" NAVIGATION_GROUP = "Connector providers" +# Sidebar and overview order: what customers connect most comes first. GROUPS = { - "CRM & support": {"crm", "sales", "support"}, - "Docs & files": {"docs", "knowledge", "storage", "cms", "design"}, + "Messaging & email": {"messaging", "email", "social"}, + "Tickets & project management": {"project_management"}, + "Docs & cloud storage": {"docs", "knowledge", "storage", "cms", "design"}, + "Meetings & calendar": {"communications", "calendar", "scheduling"}, "Engineering": {"dev_tools", "monitoring", "security"}, - "HR & finance": {"hr", "finance"}, "Marketing & analytics": {"marketing", "analytics", "forms"}, - "Meetings & calendar": {"communications", "calendar", "scheduling"}, - "Messaging & email": {"messaging", "email", "social"}, - "Project management": {"project_management"}, + "HR & finance": {"hr", "finance"}, + "CRM & support": {"crm", "sales", "support"}, } PROVIDER_GROUPS = { - "airtable": "Docs & files", + "airtable": "Docs & cloud storage", "microsoft_teams": "Messaging & email", "outlook": "Messaging & email", "twilio": "Messaging & email", } Logo = namedtuple("Logo", "light dark") +# Production setup steps that explain HydraDB's internals. Each rewrite keeps the effect a customer acts on and drops the reason. +SETUP_STEP_REWRITES = { + "datadog": {8: "That mirroring takes effect only once HydraDB turns on access-scoped search for this connector. Until then, a private incident is searchable by everyone in your HydraDB tenant. Ask us to turn it on, or leave out the incident_read scope if that is not acceptable: everything else syncs without it."}, + "launchdarkly": {7: "Two things are never indexed. An environment's SDK key and mobile key are dropped before indexing, because they are live credentials for your own environment. So are a member's MFA state and whether they have a password."}, + "sharepoint": {5: "SharePoint item and site permissions are not yet reproduced. Content is readable by everyone in your HydraDB tenant, and every item carries rbac_warning; set a resource access rule for sites that must be restricted."}, +} def prose(value): @@ -135,6 +145,272 @@ def navigation(by_group): return text[:start] + block + text[end + 1:] +PURPOSES = { + "Title": "names the item in results.", + "Searchable": "part of the text a query matches.", + "Date": "the time HydraDB uses for recency.", + "Filter": "a key a query can filter on, typed exactly as shown.", + "Link": "connects this item to another item.", + "Person or group in the graph": "a person or group the knowledge graph attaches the item to.", + "Access": "decides who can read the item.", + "Stored with results": "kept on the document, and shown when you open or inspect it. A search does not match it.", + "Not kept": "the provider has it, and HydraDB does not keep it.", +} +FOLDED = ("Stored with results", "Not kept") +KINDS = { + "message": ("a message", "a chat or conversation message, kept with its author and its thread"), + "ticket": ("a ticket", "an issue, task or support ticket, with its workflow and ownership details"), + "knowledge_base": ("a page", "a page, article or other document-style content"), + "custom": ("a record", "an item that does not fit one of the specialised kinds, searched through its text"), + "email": ("an email", "an email message, with its sender, recipients and subject"), + "comment": ("a comment", "a note or comment that belongs to another item"), + "contact": ("a contact", "a person or organization record"), + "meeting": ("a meeting", "a meeting or calendar event"), + "container": ("a container", "a project, channel, folder or space that holds other items"), + "iteration": ("an iteration", "a sprint, cycle or release with dates and a goal"), +} +COPY_KEYS = {"description", "intro", "connect", "documents", "graph", "permissions", "sync", "not_synced", "questions", "good_to_know"} +CALLOUT_SECTIONS = {"connect", "synced", "graph", "permissions", "sync"} + + +def load_copy(identifier): + """Returns the provider's checked-in page copy, or None. Raises ValueError on a copy file that cannot render.""" + path = COPY / f"{identifier}.json" + if not path.is_file(): + return None + copy = json.loads(path.read_text()) + problems = [f"missing {key}" for key in sorted(COPY_KEYS - copy.keys())] + problems += [f"unknown {key}" for key in sorted(copy.keys() - COPY_KEYS - {"callouts", "shared_attributes"})] + for section in copy.get("callouts", {}): + if section not in CALLOUT_SECTIONS: + problems.append(f"callout for unknown section {section}") + for document in copy.get("documents", []): + if document.get("kind") not in KINDS: + problems.append(f"{document.get('name')}: unknown kind {document.get('kind')}") + for attribute in all_attributes(copy): + unknown = [purpose for purpose in attribute.get("purposes", []) if purpose not in PURPOSES] + if unknown or not attribute.get("purposes"): + problems.append(f"{attribute.get('name')}: purposes {attribute.get('purposes')}") + if not 3 <= len(copy.get("questions", [])) <= 5: + problems.append("questions needs three to five entries") + if len(copy.get("good_to_know", [])) > 4: + problems.append("good_to_know has more than four entries") + if not isinstance(copy.get("permissions", {}).get("carried"), bool): + problems.append("permissions.carried must be true or false") + if problems: + raise ValueError(f"{path.relative_to(ROOT)}: {'; '.join(problems)}") + return copy + + +def all_attributes(copy): + return [*copy.get("shared_attributes", []), *(attribute for document in copy.get("documents", []) for attribute in document.get("attributes", []))] + + +def attribute(value): + return html.escape(value, quote=False).replace('"', """) + + +def mdx(text): + """Escapes JSX-significant characters outside inline code so copy reads as plain Markdown.""" + parts = re.split(r"(`[^`]*`)", text) + return "".join(part if part.startswith("`") else part.replace("{", "{").replace("}", "}").replace("<", "<").replace(">", ">") for part in parts) + + +def field(name, kind, text, required=False): + return [f'', mdx(text), "", ""] + + +def callout(copy, section): + found = copy.get("callouts", {}).get(section) + if not found: + return [] + tag = found["kind"].capitalize() + return [f"<{tag}>", mdx(found["text"]), f"", ""] + + +def labelled(label, value): + return f"- **{label}:** {mdx(value)}" + + +def attributes(items): + groups = {label: [item for item in items if item["purposes"][0] == label] for label in PURPOSES} + lines = [] + for label, members in groups.items(): + if members and label not in FOLDED: + lines += [f"**{label}**", ""] + for item in members: + lines += field(item["name"], ", ".join(item["purposes"]), item["text"]) + folded = [label for label in FOLDED if groups[label]] + if folded: + count = sum(len(groups[label]) for label in folded) + lines.append(f'') + lines.append("") + for label in folded: + for item in groups[label]: + lines += field(item["name"], ", ".join(item["purposes"]), item["text"]) + lines += ["", ""] + return lines + + +def copy_body(provider, copy, beta, acl_supported): + name = provider["display_name"] + identifier = provider["production_id"] + connect = copy["connect"] + lines = [line for paragraph in copy["intro"] for line in (mdx(paragraph), "")] + if beta: + lines += ["", f"{mdx(name)} is in beta.", "", ""] + + lines += ["## Before you connect", "", *callout(copy, "connect"), mdx(connect["auth"]), "", "**Credentials**", ""] + for credential in connect["credentials"]: + lines += field(credential["name"], credential["type"], credential["text"], credential["required"]) + if connect.get("credentials_note"): + lines += [mdx(connect["credentials_note"]), ""] + if connect.get("settings"): + lines += ["**Connector settings**", ""] + for setting in connect["settings"]: + lines += field(setting["name"], setting["type"], setting["text"], setting["required"]) + if connect.get("permissions"): + lines += [f"**{connect.get('permissions_label', 'Permissions to grant')}**", ""] + lines += [f"- `{item['name']}`" + (f": {mdx(item['text'])}" if item.get("text") else "") for item in connect["permissions"]] + lines.append("") + if connect.get("permissions_note"): + lines += [mdx(connect["permissions_note"]), ""] + lines += ["**Set it up**", "", ""] + for step in connect["steps"]: + lines += [f' ', f" {mdx(step['text'])}", " "] + lines += ["", ""] + for example in connect.get("examples", []): + lines += [mdx(example["intro"]), "", ""] + for tab in example["tabs"]: + lines += [f"```{tab['language']} {tab['title']}", tab["code"], "```"] + lines += ["", ""] + lines += [ + f"Use provider `{identifier}` with [Create Connector](/api-reference/v2/endpoint/create-connector). Then call [Discover Connector Resources](/api-reference/v2/endpoint/discover-connector-resources) to list what the credentials can reach, and [Configure Connector](/api-reference/v2/endpoint/configure-connector) to choose what to sync.", + "", + f"Create one connector per account, each with that account's own credentials. {mdx(connect.get('account', ''))}".rstrip(), + "", + ] + if provider["provider"] in SCOPED_PROVIDER_EXAMPLES: + first, second = SCOPED_PROVIDER_EXAMPLES[provider["provider"]] + lines += [ + f"To connect several {mdx(name)} accounts, give each connector its own `provider_account_scope`, for example `{first}` and `{second}`. Both are caller-provided example identifiers. HydraDB stores the value as given and does not check it against {mdx(name)}'s own account ids. Two connectors that share a scope and write to the same collection can overwrite each other's items. See [several accounts from one provider]({GUIDE}#6-connect-several-accounts-from-one-provider).", + "", + ] + + lines += ["## What gets synced", "", *callout(copy, "synced"), "**What the labels mean**", ""] + lines += [f"- **{label}:** {meaning}" for label, meaning in PURPOSES.items()] + lines.append("") + if copy.get("shared_attributes"): + lines += [f"### On every {mdx(name)} document", ""] + lines += attributes(copy["shared_attributes"]) + for document in copy["documents"]: + lines += [f"### {document['name']}", ""] + lines.append(labelled("One document", document["one_document"])) + lines.append(labelled("Title", document["title"])) + lines.append(labelled("Text", document["text"])) + lines.append(labelled("Date", document["date"])) + lines.append(labelled("Link back", document["link_back"])) + if document.get("files"): + lines.append(labelled("Files", document["files"])) + lines.append("") + lines += attributes(document["attributes"]) + + graph = copy["graph"] + lines += ["## How it fits into the graph", "", *callout(copy, "graph"), "**What each item becomes**", ""] + lines += [f"- {mdx(document['name'])}: {KINDS[document['kind']][0]}, {KINDS[document['kind']][1]}." for document in copy["documents"]] + lines += ["", f"**Connections {mdx(name)} creates**", ""] + lines += [f"- {mdx(item)}" for item in graph["connections"]] if isinstance(graph["connections"], list) else [mdx(graph["connections"])] + lines += ["", "**People and groups it names**", ""] + lines += [f"- {mdx(item)}" for item in graph["people"]] if isinstance(graph["people"], list) else [mdx(graph["people"])] + lines += [ + "", "**What HydraDB reads from the text**", "", mdx(graph["from_text"]), "", + f"There is no per-connector setup for this. Every connector maps its items onto the same shared model, and HydraDB finds people, organizations, projects, products and other entities in the text the same way for every source. To steer what it looks for, use [custom instructions]({GUIDE}#4-custom-ingestion-instructions).", + "", + ] + + permissions = copy["permissions"] + if permissions["carried"] != acl_supported: + raise ValueError(f"{identifier}: permissions.carried is {permissions['carried']} but production reports acl_supported {acl_supported}") + lines += ["## Permissions", "", *callout(copy, "permissions")] + if permissions["carried"]: + lines += [f"This connector can carry {mdx(name)} permissions into search.", ""] + lines += [labelled("Who can read an item", permissions["who_can_read"]), labelled("How a person is identified", permissions["identity"]), labelled("When permissions cannot be read", permissions["when_unreadable"]), ""] + lines += [*(f"- {mdx(item)}" for item in permissions.get("notes", [])), ""] if permissions.get("notes") else [] + lines += [ + f"Captured permissions filter search only when **Enforce ACL** is on for the connector. Only a signed-in human workspace owner or writer can turn it on, in the dashboard connector settings. API-key requests must omit `enforce_acl`, including `false`. See [Enforce ACL]({GUIDE}#enforce-acl). You can also [set your own rule on a resource]({GUIDE}#set-your-own-rule-on-a-resource).", + "", + ] + else: + lines += [ + "", + f"This connector does not carry {mdx(name)} permissions into search. Every synced item is visible to everyone who can query the collection, unless you [set an access rule on the resource]({GUIDE}#set-your-own-rule-on-a-resource).", + "", "", + ] + lines += [*(f"- {mdx(item)}" for item in permissions.get("notes", [])), ""] if permissions.get("notes") else [] + lines += [ + f"**Enforce ACL** cannot be turned on for {mdx(name)}, because it needs a provider that reports `acl_supported: true`. API-key requests must omit `enforce_acl`, including `false`. See [ACL on synced content]({GUIDE}#5-acl-native-rbac-awareness).", + "", + ] + lines += ["Database and collection names decide where content lands; collection names do not authorize access.", ""] + + sync = copy["sync"] + lines += ["## Keeping in sync", "", *callout(copy, "sync")] + lines += [labelled("First sync", sync["first_sync"]), labelled("New and changed items", sync["changes"]), labelled("Edits", sync["edits"]), labelled("Deletions", sync["deletes"])] + lines += [f"- {mdx(item)}" for item in sync.get("notes", [])] + lines += ["", "After the first sync, HydraDB syncs every hour by default. Set `sync_interval_seconds` to change it.", ""] + + lines += ["## Not synced", "", *(f"- {mdx(item)}" for item in copy["not_synced"]), ""] + lines += ["## Questions this lets you answer", "", *(f"- {mdx(item)}" for item in copy["questions"]), ""] + lines += ["## Good to know", ""] + lines += [f"- **{mdx(item['title'])}** {mdx(item['text'])}" for item in copy["good_to_know"]] + lines.append("") + return lines + + +def legacy_body(provider): + identifier = provider["provider"] + name = provider["display_name"] + lines = ["## What syncs", ""] + if provider.get("summary"): + lines.extend([prose(provider["summary"]), ""]) + types = provider["indexed_object_types"] + if types: + lines.extend(["**Indexed object types**", ""]) + lines.extend(f"- `{kind}`" for kind in types) + elif not provider.get("summary"): + lines.append("No fixed object types: what syncs is the set of resources you select when you configure the connector.") + lines.extend(["", "## Connect", ""]) + lines.extend([ + "Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access.", + "", + ]) + if identifier in SCOPED_PROVIDER_EXAMPLES: + first, second = SCOPED_PROVIDER_EXAMPLES[identifier] + lines.extend([ + f"Set a stable, distinct `provider_account_scope` for each connected account yourself, for example `{first}` and `{second}`. These are caller-provided example identifiers. The API stores the supplied value as given; it does not check it against the provider's own account ids. Reusing a scope can make sources with matching external IDs overwrite each other in the same destination.", + "", + ]) + if provider.get("setup_guide"): + rewrites = SETUP_STEP_REWRITES.get(identifier, {}) + lines.extend(f"{number}. {prose(rewrites.get(number, step))}" for number, step in enumerate(provider["setup_guide"], 1)) + lines.append("") + if identifier == "supabase": + lines.append("Follow the Supabase connection flow in the dashboard. Changes arrive as they happen, through the database webhooks you set up in Supabase.") + else: + lines.append(f"Use provider `{provider['production_id']}` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment.") + lines.extend([ + "", "## Common mistakes", "", + "- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read.", + "- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed.", + "- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`.", + "", "## Related", "", + "- [Connector providers](/essentials/v2/connector-providers)", + "- [Connectors](/essentials/v2/connectors): setup, sync, and access control", + "- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings", "", + ]) + return lines + + def pages(): production = {slug(row["provider"]): row for row in json.loads(PRODUCTION.read_text())["providers"]} enabled = {key: group(row) for key, row in production.items()} @@ -144,64 +420,46 @@ def pages(): for item in snapshot["providers"]: if slug(item["provider"]) in production: production_id = production[slug(item["provider"])]["provider"] - display_name = names["docs_overrides"].get(production_id, names["names"][production_id]) - providers.append({**item, "production_id": production_id, "display_name": display_name}) + providers.append({**item, "production_id": production_id, "display_name": names["names"][production_id]}) providers.sort(key=lambda item: item["display_name"].casefold()) output = {} + rewritten = [] for provider in providers: identifier = provider["provider"] name = provider["display_name"] + row = production[slug(identifier)] found = logo(identifier) + copy = load_copy(provider["production_id"]) + formerly = names["formerly"].get(provider["production_id"]) + called = f"{name} (formerly {formerly})" if formerly else name + description = copy["description"] if copy else f"What HydraDB syncs from {called}, and how to connect it." lines = [ "---", f"title: {json.dumps(name)}", - f"description: {json.dumps(f'What HydraDB syncs from {name}, and how to connect it.')}", + f"description: {json.dumps(description)}", *([f"icon: {json.dumps(found.light)}"] if found else []), - "---", "", f"Use the {prose(name)} connector to bring the following content into HydraDB.", - "", "## What syncs", "", + "---", "", ] - if provider.get("summary"): - lines.append(prose(provider["summary"])) - types = provider["indexed_object_types"] - if types: - lines.append("The provider description lists these indexed object types:") - lines.append("") - lines.extend(f"- `{kind}`" for kind in types) - elif not provider.get("summary"): - lines.append("The provider description does not enumerate fixed indexed object types. Use the setup notes below when available; the resource picker shows what your connection can select.") - lines.extend(["", "## Connect", ""]) - lines.extend([ - "Create one connector per account, using that account's credentials where required. Use a separate connector for a different account; see [account scopes](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). Shared destinations are allowed, but collection names do not authorize access.", - "", - ]) - if identifier in SCOPED_PROVIDER_EXAMPLES: - first, second = SCOPED_PROVIDER_EXAMPLES[identifier] - lines.extend([ - f"Set a stable, distinct `provider_account_scope` for each connected account yourself, for example `{first}` and `{second}`. These are caller-provided example identifiers, not validated native account-ID formats. The API stores the supplied value; it does not derive or validate the provider's account identity. Reusing a scope can make sources with matching external IDs overwrite each other in the same destination.", - "", - ]) - if provider.get("setup_guide"): - lines.extend(f"{number}. {prose(step)}" for number, step in enumerate(provider["setup_guide"], 1)) - lines.append("") - if identifier == "supabase": - lines.append("Follow the Supabase connection flow in the dashboard. This is a push connector; the webhook triggers, not a polling credential, deliver changes.") + if copy: + lines += copy_body(provider, copy, row["is_beta"], row["acl_supported"]) + rewritten.append(provider) else: - lines.append(f"Use provider `{provider['production_id']}` with [Create Connector](/api-reference/v2/endpoint/create-connector), then [discover resources](/api-reference/v2/endpoint/discover-connector-resources) and [configure the resources](/api-reference/v2/endpoint/configure-connector) you want to sync. The [provider description](/api-reference/v2/endpoint/list-connector-providers) supplies the credential fields for your deployment.") - lines.extend([ - "", "## Common mistakes", "", - "- A provider page describes indexed content, not the access granted to your credentials. Select resources the connected account can read.", - "- Synced content is not automatically private to each person. Review [ACL enforcement](/essentials/v2/connectors#enforce-acl) and set resource access rules where needed.", - "- API-key requests must omit `enforce_acl`, including `false`. Only a signed-in human workspace owner or writer can change **Enforce ACL** in dashboard connector settings, and enabling it requires `acl_supported: true`.", - "", "## Related", "", - "- [Connector providers](/essentials/v2/connector-providers)", - "- [Connectors](/essentials/v2/connectors): setup, sync, and access control", - "- [Get Connector Status](/api-reference/v2/endpoint/get-connector-status): progress and warnings", "", - ]) + lines += legacy_body(provider) output[DIRECTORY / f"{slug(identifier)}.mdx"] = "\n".join(lines) lines = [ "---", 'title: "Connector providers"', 'sidebarTitle: "All connectors"', - 'description: "See what each connector indexes before you connect an account."', "---", "", - "Choose a provider to see the indexed object types and any provider-specific setup steps. These pages describe content capabilities; availability and credentials come from your deployment's [provider catalog](/api-reference/v2/endpoint/list-connector-providers).", "", + 'description: "See what each connector syncs, what it needs, and who can read what it brings in."', "---", "", + f"Choose a provider to see what to set up and what it syncs. Availability and credential fields come from your deployment's [provider catalog](/api-reference/v2/endpoint/list-connector-providers). The steps every connector shares are in the [connectors guide]({GUIDE}).", "", + "## How to read a connector page", "", + "1. **Before you connect:** the credentials, permissions and steps the provider needs.", + "2. **What gets synced:** what one document is, and what HydraDB does with each attribute it keeps.", + "3. **How it fits into the graph:** what kind of item each document becomes and what it connects to.", + "4. **Permissions:** whether the provider's permissions decide who can read an item.", + "5. **Keeping in sync:** how history, edits and deletions arrive.", + "6. **Not synced:** what does not come across.", "", ] + if len(rewritten) < len(providers): + links = ", ".join(f"[{provider['display_name']}](/essentials/v2/connectors/{slug(provider['provider'])})" for provider in rewritten) + lines += [f"These pages follow that layout: {links}. The others list the indexed object types and setup notes while they move to it.", ""] by_group = {title: [provider for provider in providers if enabled[slug(provider["provider"])] == title] for title in GROUPS} for title, members in by_group.items(): lines.extend([f"## {title}", "", "", *(card(provider, logo(provider["provider"])) for provider in members), "", ""]) @@ -229,4 +487,5 @@ def pages(): for path in set(DIRECTORY.glob("*.mdx")) - generated.keys(): path.unlink() for path, content in generated.items(): - path.write_text(content) + if not path.exists() or path.read_text() != content: + path.write_text(content) diff --git a/scripts/production_filter_keys.json b/scripts/production_filter_keys.json new file mode 100644 index 00000000..442ac668 --- /dev/null +++ b/scripts/production_filter_keys.json @@ -0,0 +1,662 @@ +{ + "provenance": { + "source": "GET /connectors/providers?id= on production, saved 2026-11-16", + "rule": "Each provider's filterable_fields[].filter_key, the exact keys a query's metadata_filters accepts as published." + }, + "filter_keys": { + "airtable": [ + "additional_metadata.airtable_base_id", + "additional_metadata.airtable_table_id", + "additional_metadata.container_id", + "additional_metadata.container_name", + "additional_metadata.container_type", + "additional_metadata.rbac_warning", + "connector_id", + "provider" + ], + "asana": [ + "additional_metadata.asana_gid", + "additional_metadata.asana_kind", + "additional_metadata.asana_task_gid", + "additional_metadata.assignee_gid", + "additional_metadata.author_gid", + "additional_metadata.owner_gid", + "connector_id", + "provider" + ], + "attio": [ + "additional_metadata.call_recording_id", + "additional_metadata.comment_id", + "additional_metadata.container_id", + "additional_metadata.container_name", + "additional_metadata.container_type", + "additional_metadata.deadline_at", + "additional_metadata.entry_id", + "additional_metadata.is_completed", + "additional_metadata.meeting_id", + "additional_metadata.note_id", + "additional_metadata.object_id", + "additional_metadata.parent_record_id", + "additional_metadata.participants", + "additional_metadata.record_id", + "additional_metadata.resolved_at", + "additional_metadata.speakers", + "additional_metadata.status", + "additional_metadata.task_id", + "additional_metadata.thread_id", + "connector_id", + "provider" + ], + "avoma": [ + "additional_metadata.attendee_count", + "additional_metadata.avoma_meeting_id", + "additional_metadata.avoma_review_id", + "additional_metadata.crm_object_ids", + "additional_metadata.crm_object_types", + "additional_metadata.meeting_state", + "additional_metadata.organizer_email", + "additional_metadata.recording_uuid", + "additional_metadata.scorecard_id", + "additional_metadata.scored_by_email", + "additional_metadata.scored_for_email", + "connector_id", + "provider" + ], + "bamboohr": [ + "additional_metadata.bamboohr_employee_id", + "additional_metadata.bamboohr_time_off_id", + "connector_id", + "provider" + ], + "bigquery": [ + "additional_metadata.container_id", + "additional_metadata.container_name", + "additional_metadata.container_type", + "connector_id", + "provider" + ], + "bookstack": [ + "additional_metadata.bookstack_book_id", + "additional_metadata.bookstack_chapter_id", + "additional_metadata.bookstack_id", + "additional_metadata.bookstack_type", + "connector_id", + "provider" + ], + "calendly": [ + "additional_metadata.calendly_uri", + "additional_metadata.container_id", + "additional_metadata.container_name", + "additional_metadata.container_type", + "connector_id", + "provider" + ], + "clickup": [ + "additional_metadata.clickup_comment_id", + "additional_metadata.clickup_task_id", + "additional_metadata.rbac_warning", + "connector_id", + "provider" + ], + "coda": [ + "additional_metadata.coda_doc_id", + "additional_metadata.coda_page_id", + "additional_metadata.coda_row_id", + "additional_metadata.coda_table_id", + "connector_id", + "provider" + ], + "confluence": [ + "additional_metadata.confluence_attachment_id", + "additional_metadata.confluence_file_id", + "additional_metadata.confluence_media_type", + "additional_metadata.confluence_page_id", + "additional_metadata.container_id", + "additional_metadata.container_name", + "additional_metadata.container_type", + "connector_id", + "provider" + ], + "contentful": [ + "additional_metadata.contentful_entry_id", + "additional_metadata.contentful_task_id", + "connector_id", + "provider" + ], + "copper": [ + "additional_metadata.copper_id", + "additional_metadata.copper_object", + "additional_metadata.copper_parent_id", + "connector_id", + "provider" + ], + "datadog": [ + "additional_metadata.datadog_stream", + "connector_id", + "provider" + ], + "discord": [ + "additional_metadata.discord_author_id", + "additional_metadata.discord_channel_id", + "additional_metadata.discord_message_id", + "additional_metadata.discord_message_type", + "additional_metadata.discord_server_id", + "additional_metadata.has_attachments", + "additional_metadata.pinned", + "additional_metadata.rbac_warning", + "additional_metadata.tts", + "connector_id", + "provider" + ], + "dropbox": [ + "additional_metadata.container_id", + "additional_metadata.container_name", + "additional_metadata.container_type", + "connector_id", + "provider" + ], + "figma": [ + "additional_metadata.figma_file_key", + "additional_metadata.figma_project_id", + "connector_id", + "provider" + ], + "fireflies": [ + "additional_metadata.calendar_id", + "additional_metadata.fireflies_id", + "additional_metadata.host_email", + "additional_metadata.meeting_link", + "additional_metadata.organizer_email", + "additional_metadata.participant_count", + "connector_id", + "provider" + ], + "freshdesk": [ + "additional_metadata.freshdesk_id", + "additional_metadata.freshdesk_ticket_id", + "additional_metadata.rbac_warning", + "connector_id", + "provider" + ], + "github": [ + "additional_metadata.github_issue_number", + "additional_metadata.github_repo", + "connector_id", + "provider" + ], + "gitlab": [ + "additional_metadata.gitlab_blob_sha", + "additional_metadata.gitlab_iid", + "additional_metadata.gitlab_note_id", + "additional_metadata.gitlab_noteable_type", + "additional_metadata.gitlab_path", + "additional_metadata.gitlab_project_id", + "additional_metadata.gitlab_project_path", + "additional_metadata.gitlab_redacted", + "additional_metadata.gitlab_ref", + "additional_metadata.gitlab_sha", + "additional_metadata.gitlab_tag_name", + "connector_id", + "provider" + ], + "gmail": [ + "additional_metadata.account_email", + "additional_metadata.gmail_label_ids", + "additional_metadata.thread_id", + "connector_id", + "provider" + ], + "gong": [ + "additional_metadata.calendar_event_id", + "additional_metadata.call_id", + "additional_metadata.call_outcome", + "additional_metadata.container_id", + "additional_metadata.container_name", + "additional_metadata.container_type", + "additional_metadata.crm_object_ids", + "additional_metadata.direction", + "additional_metadata.filed_by_user_id", + "additional_metadata.folder_id", + "additional_metadata.has_transcript", + "additional_metadata.host_email", + "additional_metadata.is_private", + "additional_metadata.language", + "additional_metadata.library_container_type", + "additional_metadata.media", + "additional_metadata.meeting_url", + "additional_metadata.primary_user_id", + "additional_metadata.review_method", + "additional_metadata.reviewed_email", + "additional_metadata.reviewed_user_id", + "additional_metadata.reviewer_email", + "additional_metadata.reviewer_user_id", + "additional_metadata.scope", + "additional_metadata.scorecard_id", + "additional_metadata.visibility_type", + "connector_id", + "provider" + ], + "google_calendar": [ + "additional_metadata.container_id", + "additional_metadata.container_name", + "additional_metadata.container_type", + "connector_id", + "provider" + ], + "google_drive": [ + "additional_metadata.acl_warning", + "additional_metadata.container_id", + "additional_metadata.container_name", + "additional_metadata.container_type", + "additional_metadata.folder_id", + "additional_metadata.folder_name", + "connector_id", + "provider" + ], + "google_search_console": [ + "additional_metadata.google_search_console_stream", + "connector_id", + "provider" + ], + "googleads": [ + "additional_metadata.googleads_stream", + "connector_id", + "provider" + ], + "granola": [ + "additional_metadata.container_id", + "additional_metadata.container_type", + "connector_id", + "provider" + ], + "greenhouse": [ + "additional_metadata.greenhouse_application_id", + "additional_metadata.greenhouse_candidate_id", + "additional_metadata.greenhouse_interview_id", + "additional_metadata.greenhouse_job_id", + "additional_metadata.greenhouse_offer_id", + "connector_id", + "provider" + ], + "guru": [ + "additional_metadata.container_id", + "additional_metadata.container_name", + "additional_metadata.container_type", + "additional_metadata.guru_card_id", + "additional_metadata.guru_comment_id", + "additional_metadata.verification_state", + "connector_id", + "provider" + ], + "helpscout": [ + "additional_metadata.helpscout_conversation_id", + "additional_metadata.helpscout_id", + "connector_id", + "provider" + ], + "hubspot": [ + "additional_metadata.hubspot_id", + "additional_metadata.hubspot_object", + "additional_metadata.rbac_warning", + "connector_id", + "provider" + ], + "intercom": [ + "additional_metadata.intercom_article_id", + "additional_metadata.intercom_conversation_id", + "additional_metadata.intercom_open", + "additional_metadata.intercom_read", + "additional_metadata.intercom_ticket_id", + "additional_metadata.rbac_warning", + "connector_id", + "provider" + ], + "jira": [ + "additional_metadata.container_id", + "additional_metadata.container_name", + "additional_metadata.container_type", + "additional_metadata.jira_comment_id", + "additional_metadata.jira_id", + "additional_metadata.jira_issue_id", + "additional_metadata.jira_issue_key", + "additional_metadata.jira_key", + "additional_metadata.jira_link_types", + "additional_metadata.jira_parent_id", + "additional_metadata.jira_self", + "additional_metadata.jira_worklog_id", + "additional_metadata.project_key", + "additional_metadata.project_name", + "additional_metadata.security_level_id", + "additional_metadata.security_level_name", + "connector_id", + "provider" + ], + "klaviyo": [ + "additional_metadata.klaviyo_id", + "connector_id", + "provider" + ], + "launchdarkly": [ + "additional_metadata.container_id", + "additional_metadata.container_name", + "additional_metadata.container_type", + "additional_metadata.launchdarkly_audit_id", + "additional_metadata.launchdarkly_environment_key", + "additional_metadata.launchdarkly_flag_key", + "additional_metadata.launchdarkly_member_id", + "additional_metadata.launchdarkly_segment_key", + "additional_metadata.launchdarkly_team_key", + "connector_id", + "provider" + ], + "lever": [ + "additional_metadata.lever_application_id", + "additional_metadata.lever_candidate_id", + "additional_metadata.lever_contact_id", + "additional_metadata.lever_opportunity_id", + "additional_metadata.lever_posting_id", + "additional_metadata.lever_referral_id", + "connector_id", + "provider" + ], + "linear": [ + "additional_metadata.linear_identifier", + "additional_metadata.linear_issue_id", + "connector_id", + "provider" + ], + "loom": [ + "additional_metadata.loom_video_id", + "additional_metadata.owner_name", + "connector_id", + "provider" + ], + "mailchimp": [ + "additional_metadata.mailchimp_id", + "connector_id", + "provider" + ], + "microsoft_teams": [ + "additional_metadata.categories", + "additional_metadata.channel_membership_type", + "additional_metadata.chat_type", + "additional_metadata.container_id", + "additional_metadata.container_name", + "additional_metadata.container_type", + "additional_metadata.folder", + "additional_metadata.from_application", + "additional_metadata.has_attachments", + "additional_metadata.is_deleted", + "additional_metadata.is_reply", + "additional_metadata.is_sent", + "additional_metadata.mailbox_address", + "additional_metadata.mailbox_id", + "additional_metadata.rbac_warning", + "additional_metadata.team_id", + "additional_metadata.team_name", + "additional_metadata.thread_id", + "connector_id", + "provider" + ], + "mixpanel": [ + "additional_metadata.mixpanel_distinct_id", + "additional_metadata.mixpanel_event", + "additional_metadata.mixpanel_funnel_id", + "connector_id", + "provider" + ], + "monday": [ + "additional_metadata.monday_board_id", + "additional_metadata.monday_board_name", + "additional_metadata.monday_id", + "connector_id", + "provider" + ], + "notion": [ + "additional_metadata.notion_page_id", + "connector_id", + "provider" + ], + "okta": [ + "additional_metadata.okta_application_id", + "additional_metadata.okta_group_id", + "additional_metadata.okta_log_uuid", + "additional_metadata.okta_user_id", + "connector_id", + "provider" + ], + "outlook": [ + "additional_metadata.categories", + "additional_metadata.channel_membership_type", + "additional_metadata.chat_type", + "additional_metadata.container_id", + "additional_metadata.container_name", + "additional_metadata.container_type", + "additional_metadata.folder", + "additional_metadata.from_application", + "additional_metadata.has_attachments", + "additional_metadata.is_deleted", + "additional_metadata.is_reply", + "additional_metadata.is_sent", + "additional_metadata.mailbox_address", + "additional_metadata.mailbox_id", + "additional_metadata.rbac_warning", + "additional_metadata.team_id", + "additional_metadata.team_name", + "additional_metadata.thread_id", + "connector_id", + "provider" + ], + "pagerduty": [ + "additional_metadata.pagerduty_escalation_policy_id", + "additional_metadata.pagerduty_schedule_id", + "additional_metadata.pagerduty_service_id", + "additional_metadata.pagerduty_service_name", + "additional_metadata.pagerduty_team_ids", + "additional_metadata.pagerduty_teams", + "connector_id", + "provider" + ], + "pardot": [ + "additional_metadata.pardot_id", + "additional_metadata.pardot_object", + "connector_id", + "provider" + ], + "pipedrive": [ + "additional_metadata.active_flag", + "additional_metadata.expected_close_date", + "additional_metadata.health_status", + "additional_metadata.is_archived", + "additional_metadata.is_deleted", + "additional_metadata.is_done", + "additional_metadata.is_milestone", + "additional_metadata.pipedrive_id", + "additional_metadata.pipedrive_object", + "additional_metadata.pipedrive_parent_id", + "additional_metadata.priority", + "additional_metadata.project_status", + "additional_metadata.visible_to", + "connector_id", + "provider" + ], + "posthog": [ + "additional_metadata.posthog_stream", + "connector_id", + "provider" + ], + "quickbooks": [ + "additional_metadata.quickbooks_id", + "connector_id", + "provider" + ], + "recurly": [ + "additional_metadata.recurly_id", + "connector_id", + "provider" + ], + "sendgrid": [ + "additional_metadata.sendgrid_id", + "connector_id", + "provider" + ], + "sentry": [ + "additional_metadata.sentry_id", + "additional_metadata.sentry_short_id", + "connector_id", + "provider" + ], + "servicenow": [ + "additional_metadata.article_version", + "additional_metadata.assignee_email", + "additional_metadata.assignment_group", + "additional_metadata.author_email", + "additional_metadata.category", + "additional_metadata.container_id", + "additional_metadata.container_name", + "additional_metadata.container_type", + "additional_metadata.impact_code", + "additional_metadata.kb_category", + "additional_metadata.language", + "additional_metadata.number", + "additional_metadata.priority_code", + "additional_metadata.reporter_email", + "additional_metadata.servicenow_kind", + "additional_metadata.servicenow_sys_id", + "additional_metadata.servicenow_table", + "additional_metadata.state_code", + "additional_metadata.sys_class_name", + "additional_metadata.urgency_code", + "additional_metadata.workflow_state", + "connector_id", + "provider" + ], + "sharepoint": [ + "additional_metadata.container_id", + "additional_metadata.container_name", + "additional_metadata.container_type", + "additional_metadata.rbac_warning", + "additional_metadata.sharepoint_drive_id", + "additional_metadata.sharepoint_item_id", + "additional_metadata.sharepoint_list_id", + "additional_metadata.sharepoint_list_item_id", + "additional_metadata.sharepoint_page_id", + "additional_metadata.sharepoint_site_id", + "connector_id", + "provider" + ], + "shortcut": [ + "additional_metadata.shortcut_id", + "additional_metadata.shortcut_kind", + "connector_id", + "provider" + ], + "slack": [ + "additional_metadata.channel_id", + "additional_metadata.channel_name", + "additional_metadata.slack_bot_id", + "additional_metadata.slack_reply_count", + "additional_metadata.slack_subtype", + "additional_metadata.slack_thread_ts", + "additional_metadata.slack_ts", + "connector_id", + "provider" + ], + "smartsheet": [ + "additional_metadata.smartsheet_sheet", + "connector_id", + "provider" + ], + "stripe": [ + "additional_metadata.stripe_id", + "connector_id", + "provider" + ], + "supabase": [], + "surveymonkey": [ + "additional_metadata.rbac_warning", + "additional_metadata.surveymonkey_id", + "additional_metadata.surveymonkey_survey_id", + "connector_id", + "provider" + ], + "twilio": [ + "additional_metadata.twilio_sid", + "connector_id", + "provider" + ], + "twitter": [ + "additional_metadata.account_handle", + "additional_metadata.author_followers", + "additional_metadata.author_handle", + "additional_metadata.author_id", + "additional_metadata.author_name", + "additional_metadata.container_id", + "additional_metadata.container_name", + "additional_metadata.container_type", + "additional_metadata.context_message_count", + "additional_metadata.conversation_id", + "additional_metadata.counterpart_handles", + "additional_metadata.hashtags", + "additional_metadata.is_group_conversation", + "additional_metadata.is_outbound", + "additional_metadata.is_quote", + "additional_metadata.is_reply", + "additional_metadata.is_retweet", + "additional_metadata.lang", + "additional_metadata.media_keys", + "additional_metadata.mentions", + "additional_metadata.message_count", + "additional_metadata.participant_ids", + "additional_metadata.participants", + "additional_metadata.referenced_post_id", + "additional_metadata.urls", + "connector_id", + "provider" + ], + "typeform": [ + "additional_metadata.typeform_browser", + "additional_metadata.typeform_form_id", + "additional_metadata.typeform_id", + "additional_metadata.typeform_platform", + "additional_metadata.typeform_response_type", + "connector_id", + "provider" + ], + "wrike": [ + "additional_metadata.wrike_comment_id", + "additional_metadata.wrike_task_id", + "connector_id", + "provider" + ], + "xero": [ + "additional_metadata.xero_id", + "connector_id", + "provider" + ], + "zendesk": [ + "additional_metadata.rbac_warning", + "additional_metadata.zendesk_id", + "additional_metadata.zendesk_ticket_id", + "connector_id", + "provider" + ], + "zoho_crm": [ + "additional_metadata.acl_warning", + "additional_metadata.zoho_crm_id", + "additional_metadata.zoho_crm_module", + "additional_metadata.zoho_crm_parent_id", + "additional_metadata.zoho_crm_parent_kind", + "additional_metadata.zoho_crm_parent_module", + "connector_id", + "provider" + ], + "zoom": [ + "additional_metadata.container_id", + "additional_metadata.container_type", + "additional_metadata.host_id", + "connector_id", + "provider" + ] + } +} diff --git a/scripts/production_providers.json b/scripts/production_providers.json index f83899de..f6a094c4 100644 --- a/scripts/production_providers.json +++ b/scripts/production_providers.json @@ -3,352 +3,422 @@ { "provider": "airtable", "category": "productivity", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "asana", "category": "project_management", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "attio", "category": "crm", - "is_beta": true + "is_beta": true, + "acl_supported": true }, { "provider": "avoma", "category": "communications", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "bamboohr", "category": "hr", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "bigquery", "category": "analytics", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "bookstack", "category": "docs", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "calendly", "category": "scheduling", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "clickup", "category": "project_management", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "coda", "category": "docs", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "confluence", "category": "docs", - "is_beta": false + "is_beta": false, + "acl_supported": true }, { "provider": "contentful", "category": "cms", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "copper", "category": "crm", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "datadog", "category": "monitoring", - "is_beta": false + "is_beta": false, + "acl_supported": true }, { "provider": "discord", "category": "messaging", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "dropbox", "category": "storage", - "is_beta": false + "is_beta": false, + "acl_supported": true }, { "provider": "figma", "category": "design", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "fireflies", "category": "communications", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "freshdesk", "category": "support", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "github", "category": "dev_tools", - "is_beta": false + "is_beta": false, + "acl_supported": true }, { "provider": "gitlab", "category": "dev_tools", - "is_beta": false + "is_beta": false, + "acl_supported": true }, { "provider": "gmail", "category": "email", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "gong", "category": "sales", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "google_calendar", "category": "calendar", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "google_drive", "category": "storage", - "is_beta": false + "is_beta": false, + "acl_supported": true }, { "provider": "google_search_console", "category": "analytics", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "googleads", "category": "marketing", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "granola", "category": "communications", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "greenhouse", "category": "hr", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "guru", "category": "knowledge", - "is_beta": false + "is_beta": false, + "acl_supported": true }, { "provider": "helpscout", "category": "support", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "hubspot", "category": "crm", - "is_beta": false + "is_beta": false, + "acl_supported": true }, { "provider": "intercom", "category": "support", - "is_beta": false + "is_beta": false, + "acl_supported": true }, { "provider": "jira", "category": "project_management", - "is_beta": false + "is_beta": false, + "acl_supported": true }, { "provider": "klaviyo", "category": "marketing", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "launchdarkly", "category": "dev_tools", - "is_beta": false + "is_beta": false, + "acl_supported": true }, { "provider": "lever", "category": "hr", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "linear", "category": "project_management", - "is_beta": false + "is_beta": false, + "acl_supported": true }, { "provider": "loom", "category": "communications", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "mailchimp", "category": "marketing", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "microsoft_teams", "category": "productivity", - "is_beta": false + "is_beta": false, + "acl_supported": true }, { "provider": "mixpanel", "category": "analytics", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "monday", "category": "project_management", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "notion", "category": "docs", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "okta", "category": "security", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "outlook", "category": "productivity", - "is_beta": false + "is_beta": false, + "acl_supported": true }, { "provider": "pagerduty", "category": "monitoring", - "is_beta": false + "is_beta": false, + "acl_supported": true }, { "provider": "pardot", "category": "marketing", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "pipedrive", "category": "crm", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "posthog", "category": "analytics", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "quickbooks", "category": "finance", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "recurly", "category": "finance", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "sendgrid", "category": "email", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "sentry", "category": "dev_tools", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "servicenow", "category": "support", - "is_beta": false + "is_beta": false, + "acl_supported": true }, { "provider": "sharepoint", "category": "docs", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "shortcut", "category": "project_management", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "slack", "category": "messaging", - "is_beta": false + "is_beta": false, + "acl_supported": true }, { "provider": "smartsheet", "category": "project_management", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "stripe", "category": "finance", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "supabase", "category": "dev_tools", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "surveymonkey", "category": "forms", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "twilio", "category": "communications", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "twitter", "category": "social", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "typeform", "category": "forms", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "wrike", "category": "project_management", - "is_beta": false + "is_beta": false, + "acl_supported": false }, { "provider": "xero", "category": "finance", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "zendesk", "category": "support", - "is_beta": false + "is_beta": false, + "acl_supported": true }, { "provider": "zoho_crm", "category": "crm", - "is_beta": true + "is_beta": true, + "acl_supported": false }, { "provider": "zoom", "category": "communications", - "is_beta": true + "is_beta": true, + "acl_supported": false } ] } diff --git a/scripts/test_connector_pages.py b/scripts/test_connector_pages.py index 210a6cf0..bedca602 100644 --- a/scripts/test_connector_pages.py +++ b/scripts/test_connector_pages.py @@ -2,7 +2,7 @@ import re import unittest -from generate_connector_pages import DIRECTORY, ROOT, SNAPSHOT, SCOPED_PROVIDER_EXAMPLES, pages, prose +from generate_connector_pages import COPY, DIRECTORY, PURPOSES, ROOT, SNAPSHOT, SCOPED_PROVIDER_EXAMPLES, load_copy, pages, prose from generate_llms_index import page_paths @@ -12,6 +12,41 @@ INDEX = ROOT / "essentials/v2/connector-providers.mdx" TITLE_LOGOS = ROOT / "connector-logos.css" DASHBOARD_NAMES = json.loads((ROOT / "scripts/dashboard_provider_names.json").read_text()) +FILTER_KEYS = json.loads((ROOT / "scripts/production_filter_keys.json").read_text())["filter_keys"] +PILOT = ("slack", "bigquery", "github", "notion", "stripe", "hubspot") +COPY_SECTIONS = ["Before you connect", "What gets synced", "How it fits into the graph", "Permissions", "Keeping in sync", "Not synced", "Questions this lets you answer", "Good to know"] +# How a connector is built is not a customer's concern. No connector page or the overview may name it. +INTERNAL_TERMS = ( + "moveit", "classic", "native", "golang", "go-native", "python", "tap", "taps", "singer", "lance", "lancedb", + "normalizer", "normaliser", "renderer", "worker", "workers", "temporal", "kafka", "milvus", "falkordb", "turbolay", + "dynamodb", "mongodb", "engine", "engines", "appkind", "app_kind", "connector_type", "app source", "app-source", + "stream", "streams", "pipeline", "pipelines", "webhook", "webhooks", "feature flag", "environment variable", + "kill switch", "claim check", "drain", "tombstone", "tombstones", "lake", "resolver", "fetcher", "adapter", + "enricher", "linkref", +) +INTERNAL_PATTERNS = ( + r"\b[A-Z][A-Z0-9]*_[A-Z0-9_]*[A-Z0-9]\b", + r"\b[\w/-]+\.(?:go|py)\b", + r"\b(?:AppKind|AppFields|AppProvider|AppExternalID|AppRelations|AppKnowledge\w*|AppMetadata|ACLOrigin\w*)\b", +) +# Words the provider itself shows the customer, each confirmed in that provider's reviewed fact file. +PROVIDER_VOCABULARY = { + "airtable": {"LAST_MODIFIED_TIME"}, # Airtable's own formula function, named in the setup step the customer follows. + "github": {"classic"}, # GitHub's "classic" personal access tokens, which the customer creates. + "hubspot": {"pipeline", "pipelines"}, # HubSpot's deal pipeline, a field the customer sees on every deal. + "supabase": {"webhook", "webhooks"}, # Supabase's Database Webhooks integration, which the customer installs. +} +OLD_TEMPLATE = ( + "to bring the following content into HydraDB", "The provider description lists these indexed object types", + "does not enumerate fixed indexed object types", "## What syncs", "## Connect\n", "## Common mistakes", "## Related", + "A provider page describes indexed content", "Synced content is not automatically private to each person", + "supplies the credential fields for your deployment", "using that account's credentials where required", + "Shared destinations are allowed", +) + + +def copy_pages(): + return {path.stem: (DIRECTORY / f"{path.stem.replace('_', '-')}.mdx").read_text() for path in sorted(COPY.glob("*.json"))} def body(text): @@ -48,7 +83,7 @@ def test_scoped_provider_examples_are_distinct_and_match_the_guide(self): for value in pair: self.assertIn(f"`{value}`", text) self.assertIn("caller-provided example identifiers", text) - self.assertIn("not validated native account-ID formats", text) + self.assertIn("own account ids", text) def test_all_provider_pages_keep_one_account_per_connector_and_human_enforcement(self): paths = list(DIRECTORY.glob("*.mdx")) @@ -73,7 +108,7 @@ def test_provider_pages_match_the_source_snapshot(self): for path, content in generated.items(): with self.subTest(page=str(path.relative_to(ROOT))): self.assertEqual(content, path.read_text()) - self.assertEqual(set(DIRECTORY.glob("*.mdx")), set(generated) - {INDEX, ROOT / "docs.json", TITLE_LOGOS}) + self.assertEqual(set(DIRECTORY.glob("*.mdx")), {path for path in generated if path.parent == DIRECTORY}) def test_every_provider_page_is_registered_and_linked_from_the_catalog(self): config = json.loads((ROOT / "docs.json").read_text()) @@ -105,7 +140,7 @@ def test_provider_pages_list_only_the_exact_indexed_object_types(self): snapshot = json.loads(SNAPSHOT.read_text()) for provider in snapshot["providers"]: slug = provider["provider"].replace("_", "-") - if slug not in PRODUCTION_SLUGS: + if slug not in PRODUCTION_SLUGS or load_copy(provider["provider"]): continue text = (DIRECTORY / f"{slug}.mdx").read_text() section = text.split("## What syncs\n", 1)[1].split("## Connect", 1)[0] @@ -169,12 +204,13 @@ def test_every_page_names_its_production_provider_slug(self): def test_display_names_match_the_dashboard(self): names = DASHBOARD_NAMES["names"] - overrides = DASHBOARD_NAMES["docs_overrides"] + self.assertNotIn("docs_overrides", DASHBOARD_NAMES) + self.assertEqual({"coda": "Coda"}, DASHBOARD_NAMES["formerly"]) + self.assertEqual("Superhuman", names["coda"]) + self.assertIn('description: "What HydraDB syncs from Superhuman (formerly Coda), and how to connect it."', (DIRECTORY / "coda.mdx").read_text()) self.assertEqual({provider["provider"] for provider in PRODUCTION}, set(names)) - self.assertEqual({"coda": "Coda"}, overrides) index = INDEX.read_text() - for provider, dashboard_name in names.items(): - name = overrides.get(provider, dashboard_name) + for provider, name in names.items(): slug = provider.replace("_", "-") with self.subTest(provider=provider): self.assertIn(f'title: "{name}"\n', (DIRECTORY / f"{slug}.mdx").read_text()) @@ -220,5 +256,121 @@ def test_navigation_groups_connectors_into_collapsed_categories(self): self.assertEqual([f"/{page}" for page in category["pages"]], re.findall(r'href="([^"]+)"', section)) self.assertEqual(len(PRODUCTION_SLUGS), sum(len(category["pages"]) for category in categories)) + +class PageOpeningAndOrderTest(unittest.TestCase): + def test_no_page_opens_with_filler(self): + setup_steps = {step for provider in json.loads(SNAPSHOT.read_text())["providers"] for step in provider.get("setup_guide", [])} + for path in sorted(DIRECTORY.glob("*.mdx")): + text = body(path.read_text()) + with self.subTest(page=path.stem): + for phrase in ("connector to bring", "the following content", "provider description lists"): + self.assertNotIn(phrase, text) + for line in text.splitlines(): + if "Use the" in line: + self.assertIn(re.sub(r"^\d+\. ", "", line), {prose(step) for step in setup_steps}, "only a production setup step may say 'Use the'") + self.assertRegex(text, r"^\n*\S", "no blank gap under the title block") + self.assertNotRegex(text, r"(?im)^(this section|the following|below are)") + + def test_groups_follow_the_order_customers_connect_most(self): + order = ["Messaging & email", "Tickets & project management", "Docs & cloud storage", "Meetings & calendar", "Engineering", "Marketing & analytics", "HR & finance", "CRM & support"] + config = json.loads((ROOT / "docs.json").read_text()) + group = next(item for item in config["navigation"]["versions"][0]["tabs"][0]["groups"] if item["group"] == "Connector providers") + self.assertEqual(order, [category["group"] for category in group["pages"][1:]]) + self.assertEqual(order, [title for title in re.findall(r"^## (.+)$", INDEX.read_text(), re.M) if title in order]) + + +class ConnectorCopyPagesTest(unittest.TestCase): + def test_every_pilot_provider_has_a_valid_copy_file(self): + for provider in PILOT: + with self.subTest(provider=provider): + copy = load_copy(provider) + self.assertIsNotNone(copy, f"scripts/connector_pages/{provider}.json is missing") + for document in copy["documents"]: + self.assertTrue(document["attributes"], document["name"]) + for path in COPY.glob("*.json"): + with self.subTest(copy=path.name): + self.assertIn(path.stem, {row["provider"] for row in PRODUCTION}) + self.assertIsNotNone(load_copy(path.stem)) + + def test_a_copy_file_missing_a_section_or_label_is_rejected(self): + broken = json.loads((COPY / "slack.json").read_text()) + del broken["not_synced"] + broken["documents"][0]["attributes"][0]["purposes"] = ["Indexed"] + path = COPY / "zz_broken_copy_probe.json" + path.write_text(json.dumps(broken)) + try: + with self.assertRaisesRegex(ValueError, r"missing not_synced.*purposes \['Indexed'\]"): + load_copy("zz_broken_copy_probe") + finally: + path.unlink() + + def test_copy_pages_have_every_section_in_order(self): + pages_by_provider = copy_pages() + self.assertLessEqual(set(PILOT), set(pages_by_provider)) + for provider, text in pages_by_provider.items(): + with self.subTest(provider=provider): + self.assertEqual(COPY_SECTIONS, re.findall(r"^## (.+)$", text, re.M)) + intro = body(text).split("\n## ", 1)[0].strip() + self.assertTrue(intro, "the page opens with what the connector brings in") + + def test_no_page_names_how_a_connector_is_built(self): + pages_to_check = {path.stem: body(path.read_text()) for path in DIRECTORY.glob("*.mdx")} + pages_to_check["connector-providers"] = body(INDEX.read_text()) + for page, text in sorted(pages_to_check.items()): + allowed = PROVIDER_VOCABULARY.get(page.replace("-", "_"), set()) + prose_only = re.sub(r"\]\([^)]*\)", "]", text) + with self.subTest(page=page): + found = [term for term in INTERNAL_TERMS if term not in allowed and re.search(rf"(?i)(? Date: Mon, 16 Nov 2026 22:41:20 +0530 Subject: [PATCH 26/33] feat(connectors): give every connector a logo, with a monogram placeholder (ENG-1618) Copper, Klaviyo, Lever, Pardot and Recurly have no dashboard artwork, so their title line, sidebar entry and overview card showed nothing. The generator now writes a neutral placeholder for any production provider without artwork: the display name's initial in a plain sans-serif on the same square, in dark ink for light mode and white ink for dark mode, like the other monochrome marks. It draws nothing from the brand. placeholder_logos() is the one place that decides which providers get one. Adding real artwork removes the placeholder on the next run, and --check flags a leftover placeholder file. Co-Authored-By: Claude Opus 5.5 Signed-off-by: SohamRatnaparkhi --- connector-logos.css | 10 +++++ essentials/v2/connector-providers.mdx | 10 ++--- essentials/v2/connectors/copper.mdx | 1 + essentials/v2/connectors/klaviyo.mdx | 1 + essentials/v2/connectors/lever.mdx | 1 + essentials/v2/connectors/pardot.mdx | 1 + essentials/v2/connectors/recurly.mdx | 1 + images/connectors/copper-dark.svg | 3 ++ images/connectors/copper-light.svg | 3 ++ images/connectors/klaviyo-dark.svg | 3 ++ images/connectors/klaviyo-light.svg | 3 ++ images/connectors/lever-dark.svg | 3 ++ images/connectors/lever-light.svg | 3 ++ images/connectors/pardot-dark.svg | 3 ++ images/connectors/pardot-light.svg | 3 ++ images/connectors/recurly-dark.svg | 3 ++ images/connectors/recurly-light.svg | 3 ++ scripts/generate_connector_pages.py | 60 +++++++++++++++++++++------ scripts/test_connector_pages.py | 47 +++++++++++++++++++-- 19 files changed, 141 insertions(+), 21 deletions(-) create mode 100644 images/connectors/copper-dark.svg create mode 100644 images/connectors/copper-light.svg create mode 100644 images/connectors/klaviyo-dark.svg create mode 100644 images/connectors/klaviyo-light.svg create mode 100644 images/connectors/lever-dark.svg create mode 100644 images/connectors/lever-light.svg create mode 100644 images/connectors/pardot-dark.svg create mode 100644 images/connectors/pardot-light.svg create mode 100644 images/connectors/recurly-dark.svg create mode 100644 images/connectors/recurly-light.svg diff --git a/connector-logos.css b/connector-logos.css index 34371f06..5092bcbe 100644 --- a/connector-logos.css +++ b/connector-logos.css @@ -28,6 +28,8 @@ html[data-current-path$="/essentials/v2/connectors/calendly"] #page-title::befor html[data-current-path$="/essentials/v2/connectors/clickup"] #page-title::before { content: ""; background-image: url("/images/connectors/clickup.svg"); } html[data-current-path$="/essentials/v2/connectors/confluence"] #page-title::before { content: ""; background-image: url("/images/connectors/confluence.svg"); } html[data-current-path$="/essentials/v2/connectors/contentful"] #page-title::before { content: ""; background-image: url("/images/connectors/contentful.svg"); } +html[data-current-path$="/essentials/v2/connectors/copper"] #page-title::before { content: ""; background-image: url("/images/connectors/copper-light.svg"); } +html.dark[data-current-path$="/essentials/v2/connectors/copper"] #page-title::before { background-image: url("/images/connectors/copper-dark.svg"); } html[data-current-path$="/essentials/v2/connectors/datadog"] #page-title::before { content: ""; background-image: url("/images/connectors/datadog-light.svg"); } html.dark[data-current-path$="/essentials/v2/connectors/datadog"] #page-title::before { background-image: url("/images/connectors/datadog-dark.svg"); } html[data-current-path$="/essentials/v2/connectors/discord"] #page-title::before { content: ""; background-image: url("/images/connectors/discord.svg"); } @@ -53,8 +55,12 @@ html[data-current-path$="/essentials/v2/connectors/helpscout"] #page-title::befo html[data-current-path$="/essentials/v2/connectors/hubspot"] #page-title::before { content: ""; background-image: url("/images/connectors/hubspot.svg"); } html[data-current-path$="/essentials/v2/connectors/intercom"] #page-title::before { content: ""; background-image: url("/images/connectors/intercom.svg"); } html[data-current-path$="/essentials/v2/connectors/jira"] #page-title::before { content: ""; background-image: url("/images/connectors/jira.svg"); } +html[data-current-path$="/essentials/v2/connectors/klaviyo"] #page-title::before { content: ""; background-image: url("/images/connectors/klaviyo-light.svg"); } +html.dark[data-current-path$="/essentials/v2/connectors/klaviyo"] #page-title::before { background-image: url("/images/connectors/klaviyo-dark.svg"); } html[data-current-path$="/essentials/v2/connectors/launchdarkly"] #page-title::before { content: ""; background-image: url("/images/connectors/launchdarkly-light.svg"); } html.dark[data-current-path$="/essentials/v2/connectors/launchdarkly"] #page-title::before { background-image: url("/images/connectors/launchdarkly-dark.svg"); } +html[data-current-path$="/essentials/v2/connectors/lever"] #page-title::before { content: ""; background-image: url("/images/connectors/lever-light.svg"); } +html.dark[data-current-path$="/essentials/v2/connectors/lever"] #page-title::before { background-image: url("/images/connectors/lever-dark.svg"); } html[data-current-path$="/essentials/v2/connectors/linear"] #page-title::before { content: ""; background-image: url("/images/connectors/linear.svg"); } html[data-current-path$="/essentials/v2/connectors/loom"] #page-title::before { content: ""; background-image: url("/images/connectors/loom.svg"); } html[data-current-path$="/essentials/v2/connectors/mailchimp"] #page-title::before { content: ""; background-image: url("/images/connectors/mailchimp.svg"); } @@ -66,10 +72,14 @@ html.dark[data-current-path$="/essentials/v2/connectors/notion"] #page-title::be html[data-current-path$="/essentials/v2/connectors/okta"] #page-title::before { content: ""; background-image: url("/images/connectors/okta.svg"); } html[data-current-path$="/essentials/v2/connectors/outlook"] #page-title::before { content: ""; background-image: url("/images/connectors/outlook.svg"); } html[data-current-path$="/essentials/v2/connectors/pagerduty"] #page-title::before { content: ""; background-image: url("/images/connectors/pagerduty.svg"); } +html[data-current-path$="/essentials/v2/connectors/pardot"] #page-title::before { content: ""; background-image: url("/images/connectors/pardot-light.svg"); } +html.dark[data-current-path$="/essentials/v2/connectors/pardot"] #page-title::before { background-image: url("/images/connectors/pardot-dark.svg"); } html[data-current-path$="/essentials/v2/connectors/pipedrive"] #page-title::before { content: ""; background-image: url("/images/connectors/pipedrive-light.svg"); } html.dark[data-current-path$="/essentials/v2/connectors/pipedrive"] #page-title::before { background-image: url("/images/connectors/pipedrive-dark.svg"); } html[data-current-path$="/essentials/v2/connectors/posthog"] #page-title::before { content: ""; background-image: url("/images/connectors/posthog.svg"); } html[data-current-path$="/essentials/v2/connectors/quickbooks"] #page-title::before { content: ""; background-image: url("/images/connectors/quickbooks.svg"); } +html[data-current-path$="/essentials/v2/connectors/recurly"] #page-title::before { content: ""; background-image: url("/images/connectors/recurly-light.svg"); } +html.dark[data-current-path$="/essentials/v2/connectors/recurly"] #page-title::before { background-image: url("/images/connectors/recurly-dark.svg"); } html[data-current-path$="/essentials/v2/connectors/sendgrid"] #page-title::before { content: ""; background-image: url("/images/connectors/sendgrid.svg"); } html[data-current-path$="/essentials/v2/connectors/sentry"] #page-title::before { content: ""; background-image: url("/images/connectors/sentry-light.svg"); } html.dark[data-current-path$="/essentials/v2/connectors/sentry"] #page-title::before { background-image: url("/images/connectors/sentry-dark.svg"); } diff --git a/essentials/v2/connector-providers.mdx b/essentials/v2/connector-providers.mdx index 8eac2490..afb30a2c 100644 --- a/essentials/v2/connector-providers.mdx +++ b/essentials/v2/connector-providers.mdx @@ -90,10 +90,10 @@ These pages follow that layout: [BigQuery](/essentials/v2/connectors/bigquery), - + } href="/essentials/v2/connectors/klaviyo" horizontal /> - + } href="/essentials/v2/connectors/pardot" horizontal /> } href="/essentials/v2/connectors/typeform" horizontal /> @@ -104,9 +104,9 @@ These pages follow that layout: [BigQuery](/essentials/v2/connectors/bigquery), - + } href="/essentials/v2/connectors/lever" horizontal /> - + } href="/essentials/v2/connectors/recurly" horizontal /> @@ -115,7 +115,7 @@ These pages follow that layout: [BigQuery](/essentials/v2/connectors/bigquery), } href="/essentials/v2/connectors/attio" horizontal /> - + } href="/essentials/v2/connectors/copper" horizontal /> } href="/essentials/v2/connectors/gong" horizontal /> diff --git a/essentials/v2/connectors/copper.mdx b/essentials/v2/connectors/copper.mdx index 32354478..2f1aa812 100644 --- a/essentials/v2/connectors/copper.mdx +++ b/essentials/v2/connectors/copper.mdx @@ -1,6 +1,7 @@ --- title: "Copper" description: "What HydraDB syncs from Copper, and how to connect it." +icon: "/images/connectors/copper-light.svg" --- ## What syncs diff --git a/essentials/v2/connectors/klaviyo.mdx b/essentials/v2/connectors/klaviyo.mdx index b48283e3..06660179 100644 --- a/essentials/v2/connectors/klaviyo.mdx +++ b/essentials/v2/connectors/klaviyo.mdx @@ -1,6 +1,7 @@ --- title: "Klaviyo" description: "What HydraDB syncs from Klaviyo, and how to connect it." +icon: "/images/connectors/klaviyo-light.svg" --- ## What syncs diff --git a/essentials/v2/connectors/lever.mdx b/essentials/v2/connectors/lever.mdx index f060cb91..171d4362 100644 --- a/essentials/v2/connectors/lever.mdx +++ b/essentials/v2/connectors/lever.mdx @@ -1,6 +1,7 @@ --- title: "Lever" description: "What HydraDB syncs from Lever, and how to connect it." +icon: "/images/connectors/lever-light.svg" --- ## What syncs diff --git a/essentials/v2/connectors/pardot.mdx b/essentials/v2/connectors/pardot.mdx index 527fe051..f624cbb9 100644 --- a/essentials/v2/connectors/pardot.mdx +++ b/essentials/v2/connectors/pardot.mdx @@ -1,6 +1,7 @@ --- title: "Pardot" description: "What HydraDB syncs from Pardot, and how to connect it." +icon: "/images/connectors/pardot-light.svg" --- ## What syncs diff --git a/essentials/v2/connectors/recurly.mdx b/essentials/v2/connectors/recurly.mdx index 83c0c3bb..c627cac4 100644 --- a/essentials/v2/connectors/recurly.mdx +++ b/essentials/v2/connectors/recurly.mdx @@ -1,6 +1,7 @@ --- title: "Recurly" description: "What HydraDB syncs from Recurly, and how to connect it." +icon: "/images/connectors/recurly-light.svg" --- ## What syncs diff --git a/images/connectors/copper-dark.svg b/images/connectors/copper-dark.svg new file mode 100644 index 00000000..ed3eae24 --- /dev/null +++ b/images/connectors/copper-dark.svg @@ -0,0 +1,3 @@ + +C + diff --git a/images/connectors/copper-light.svg b/images/connectors/copper-light.svg new file mode 100644 index 00000000..ff88fb15 --- /dev/null +++ b/images/connectors/copper-light.svg @@ -0,0 +1,3 @@ + +C + diff --git a/images/connectors/klaviyo-dark.svg b/images/connectors/klaviyo-dark.svg new file mode 100644 index 00000000..53b34fa2 --- /dev/null +++ b/images/connectors/klaviyo-dark.svg @@ -0,0 +1,3 @@ + +K + diff --git a/images/connectors/klaviyo-light.svg b/images/connectors/klaviyo-light.svg new file mode 100644 index 00000000..19e52711 --- /dev/null +++ b/images/connectors/klaviyo-light.svg @@ -0,0 +1,3 @@ + +K + diff --git a/images/connectors/lever-dark.svg b/images/connectors/lever-dark.svg new file mode 100644 index 00000000..37edf606 --- /dev/null +++ b/images/connectors/lever-dark.svg @@ -0,0 +1,3 @@ + +L + diff --git a/images/connectors/lever-light.svg b/images/connectors/lever-light.svg new file mode 100644 index 00000000..6ad1d306 --- /dev/null +++ b/images/connectors/lever-light.svg @@ -0,0 +1,3 @@ + +L + diff --git a/images/connectors/pardot-dark.svg b/images/connectors/pardot-dark.svg new file mode 100644 index 00000000..e2ab6454 --- /dev/null +++ b/images/connectors/pardot-dark.svg @@ -0,0 +1,3 @@ + +P + diff --git a/images/connectors/pardot-light.svg b/images/connectors/pardot-light.svg new file mode 100644 index 00000000..c1c8cb1a --- /dev/null +++ b/images/connectors/pardot-light.svg @@ -0,0 +1,3 @@ + +P + diff --git a/images/connectors/recurly-dark.svg b/images/connectors/recurly-dark.svg new file mode 100644 index 00000000..b8b47bed --- /dev/null +++ b/images/connectors/recurly-dark.svg @@ -0,0 +1,3 @@ + +R + diff --git a/images/connectors/recurly-light.svg b/images/connectors/recurly-light.svg new file mode 100644 index 00000000..62800bca --- /dev/null +++ b/images/connectors/recurly-light.svg @@ -0,0 +1,3 @@ + +R + diff --git a/scripts/generate_connector_pages.py b/scripts/generate_connector_pages.py index 9c509023..47720361 100644 --- a/scripts/generate_connector_pages.py +++ b/scripts/generate_connector_pages.py @@ -72,15 +72,47 @@ def group(row): return next(title for title, categories in GROUPS.items() if row["category"] in categories) -def logo(identifier): - """Monochrome marks ship a light-mode and a dark-mode file; multi-colour marks ship one file for both.""" - url = lambda path: f"/{path.relative_to(ROOT)}" +PLACEHOLDER_MARK = 'data-placeholder="monogram"' +INKS = {"light": "#363636", "dark": "#cccccc"} + + +def url(path): + return f"/{path.relative_to(ROOT)}" + + +def is_placeholder(path): + return PLACEHOLDER_MARK in path.read_text() + + +def artwork(identifier): + """The dashboard's own mark. Monochrome marks ship a light-mode and a dark-mode file; multi-colour marks ship one file for both.""" single, light, dark = (LOGOS / f"{slug(identifier)}{suffix}.svg" for suffix in ("", "-light", "-dark")) - if light.is_file() and dark.is_file(): + if light.is_file() and dark.is_file() and not is_placeholder(light): return Logo(url(light), url(dark)) return Logo(url(single), None) if single.is_file() else None +def logo(identifier): + return artwork(identifier) or Logo(*(url(LOGOS / f"{slug(identifier)}-{theme}.svg") for theme in INKS)) + + +def monogram(name, ink): + return "\n".join([ + f'', + f'{html.escape(name[0].upper())}', + "", "", + ]) + + +def placeholder_logos(providers): + """The one place that decides which providers show a placeholder: those with no dashboard artwork. Adding real artwork drops the placeholder on the next run.""" + return { + LOGOS / f"{slug(provider['provider'])}-{theme}.svg": monogram(provider["display_name"], ink) + for provider in providers if artwork(provider["provider"]) is None + for theme, ink in INKS.items() + } + + def images(found, alt, class_name): if found.dark is None: return [f'{alt}'] @@ -104,8 +136,6 @@ def title_logos(providers): ] for provider in providers: found = logo(provider["provider"]) - if found is None: - continue lines.append(f'{page(provider["provider"])} {{ content: ""; background-image: url("{found.light}"); }}') if found.dark: lines.append(f'{page(provider["provider"], "html.dark")} {{ background-image: url("{found.dark}"); }}') @@ -114,9 +144,7 @@ def title_logos(providers): def card(provider, found): href = f"/essentials/v2/connectors/{slug(provider['provider'])}" - if found is None: - icon = "" - elif found.dark is None: + if found.dark is None: icon = f' icon="{found.light}"' else: icon = f" icon={{<>{''.join(images(found, '', 'connector-card-logo'))}}}" @@ -436,7 +464,7 @@ def pages(): lines = [ "---", f"title: {json.dumps(name)}", f"description: {json.dumps(description)}", - *([f"icon: {json.dumps(found.light)}"] if found else []), + f"icon: {json.dumps(found.light)}", "---", "", ] if copy: @@ -467,9 +495,14 @@ def pages(): output[INDEX] = "\n".join(lines) output[NAVIGATION] = navigation(by_group) output[TITLE_LOGOS] = title_logos(providers) + output.update(placeholder_logos(providers)) return output +def stale_placeholders(generated): + return {path for path in LOGOS.glob("*.svg") if is_placeholder(path)} - generated.keys() + + if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--check", action="store_true") @@ -478,13 +511,14 @@ def pages(): if args.check: stale = [str(path.relative_to(ROOT)) for path, content in generated.items() if not path.exists() or path.read_text() != content] - extra = set(DIRECTORY.glob("*.mdx")) - generated.keys() + extra = set(DIRECTORY.glob("*.mdx")) - generated.keys() | stale_placeholders(generated) if stale or extra: raise SystemExit(f"Connector pages are stale: {stale + sorted(str(path.relative_to(ROOT)) for path in extra)}") - print(f"{len(generated) - 3} connector pages, the overview, the navigation group and the title logos match the snapshot") + placeholders = sum(1 for path in generated if path.parent == LOGOS) // 2 + print(f"{len(generated) - 3 - 2 * placeholders} connector pages, the overview, the navigation group, the title logos and {placeholders} placeholder logos match the snapshot") else: DIRECTORY.mkdir(parents=True, exist_ok=True) - for path in set(DIRECTORY.glob("*.mdx")) - generated.keys(): + for path in set(DIRECTORY.glob("*.mdx")) - generated.keys() | stale_placeholders(generated): path.unlink() for path, content in generated.items(): if not path.exists() or path.read_text() != content: diff --git a/scripts/test_connector_pages.py b/scripts/test_connector_pages.py index bedca602..b869ae39 100644 --- a/scripts/test_connector_pages.py +++ b/scripts/test_connector_pages.py @@ -2,7 +2,7 @@ import re import unittest -from generate_connector_pages import COPY, DIRECTORY, PURPOSES, ROOT, SNAPSHOT, SCOPED_PROVIDER_EXAMPLES, load_copy, pages, prose +from generate_connector_pages import COPY, DIRECTORY, LOGOS as LOGO_DIRECTORY, PLACEHOLDER_MARK, PURPOSES, ROOT, SNAPSHOT, SCOPED_PROVIDER_EXAMPLES, artwork, load_copy, logo, pages, placeholder_logos, prose from generate_llms_index import page_paths @@ -161,7 +161,7 @@ def test_every_logo_is_shown_and_every_shown_logo_exists(self): shown = set() for slug in PRODUCTION_SLUGS: pair = {f"{slug}-light.svg", f"{slug}-dark.svg"} - expected = sorted(pair) if pair <= files else [f"{slug}.svg"] if f"{slug}.svg" in files else [] + expected = sorted(pair) if pair <= files else [f"{slug}.svg"] page = (DIRECTORY / f"{slug}.mdx").read_text() card = re.search(rf'', index) with self.subTest(provider=slug): @@ -219,7 +219,8 @@ def test_display_names_match_the_dashboard(self): def test_monochrome_marks_change_only_their_ink_between_themes(self): pairs = sorted(path.name[: -len("-light.svg")] for path in LOGOS.glob("*-light.svg")) - self.assertEqual(["attio", "datadog", "github", "gong", "guru", "launchdarkly", "notion", "pipedrive", "sentry", "smartsheet", "twitter", "typeform", "zendesk"], pairs) + placeholders = ["copper", "klaviyo", "lever", "pardot", "recurly"] + self.assertEqual(sorted(["attio", "datadog", "github", "gong", "guru", "launchdarkly", "notion", "pipedrive", "sentry", "smartsheet", "twitter", "typeform", "zendesk", *placeholders]), pairs) for slug in pairs: light, dark = ((LOGOS / f"{slug}-{theme}.svg").read_text() for theme in ("light", "dark")) inks = lambda text: set(re.findall(r'(?:fill|stroke)="(#[0-9a-fA-F]+)"', text)) @@ -279,6 +280,46 @@ def test_groups_follow_the_order_customers_connect_most(self): self.assertEqual(order, [title for title in re.findall(r"^## (.+)$", INDEX.read_text(), re.M) if title in order]) +class PlaceholderLogoTest(unittest.TestCase): + def test_every_production_provider_has_a_logo_file(self): + for row in PRODUCTION: + found = logo(row["provider"]) + with self.subTest(provider=row["provider"]): + for path in filter(None, found): + self.assertTrue((ROOT / path.lstrip("/")).is_file(), path) + text = (DIRECTORY / f"{row['provider'].replace('_', '-')}.mdx").read_text() + self.assertIn(f'icon: "{found.light}"', text) + self.assertIn(f'url("{found.light}")', TITLE_LOGOS.read_text()) + self.assertIn(found.light, INDEX.read_text()) + + def test_placeholders_are_neutral_monograms_for_providers_without_artwork(self): + names = DASHBOARD_NAMES["names"] + placeholder_files = {path.name for path in LOGO_DIRECTORY.glob("*.svg") if PLACEHOLDER_MARK in path.read_text()} + missing = sorted(row["provider"] for row in PRODUCTION if artwork(row["provider"]) is None) + self.assertEqual(["copper", "klaviyo", "lever", "pardot", "recurly"], missing) + self.assertEqual({f"{slug}-{theme}.svg" for slug in missing for theme in ("light", "dark")}, placeholder_files) + for provider in missing: + light = (LOGO_DIRECTORY / f"{provider}-light.svg").read_text() + with self.subTest(provider=provider): + self.assertEqual([names[provider][0].upper()], re.findall(r">([^<]+)", light)) + self.assertNotRegex(light, r"') + try: + self.assertEqual({}, placeholder_logos(providers)) + self.assertEqual("/images/connectors/copper.svg", logo("copper").light) + generated = pages() + self.assertNotIn(LOGO_DIRECTORY / "copper-light.svg", generated) + self.assertIn('url("/images/connectors/copper.svg")', generated[TITLE_LOGOS]) + finally: + real.unlink() + + class ConnectorCopyPagesTest(unittest.TestCase): def test_every_pilot_provider_has_a_valid_copy_file(self): for provider in PILOT: From cdd1e48f20299f775382b5a8a05d6ae24133d47f Mon Sep 17 00:00:00 2001 From: SohamRatnaparkhi Date: Mon, 16 Nov 2026 23:09:58 +0530 Subject: [PATCH 27/33] docs(connectors): revise the connector page design from a customer read (ENG-1618) A customer engineer now sees, in this order: what comes across and the limits that decide fit, permissions with Enforce ACL first and the HydraDB Cloud outcome when permissions cannot be read, setup with Credentials and Set it up subheadings, sync, every attribute with all of its uses as badges, each item's graph class, and a visible Not synced list. The badge legend and the graph classes are defined once on the providers overview. Good to know and the required questions are gone; their facts moved to the section each one explains. Stored-only fields fold per record type, and JSON examples are pretty-printed by the generator. The six pilot pages carry the cold read's 34 fixes, each checked against its reviewed fact file. Co-Authored-By: Claude Opus 5.5 Signed-off-by: SohamRatnaparkhi --- essentials/v2/connector-providers.mdx | 43 ++- essentials/v2/connectors/bigquery.mdx | 241 ++++++------ essentials/v2/connectors/github.mdx | 199 ++++------ essentials/v2/connectors/hubspot.mdx | 386 +++++++----------- essentials/v2/connectors/notion.mdx | 173 +++------ essentials/v2/connectors/slack.mdx | 213 ++++------ essentials/v2/connectors/stripe.mdx | 216 ++++------- scripts/connector_pages/bigquery.json | 282 +++++++------- scripts/connector_pages/github.json | 200 +++++----- scripts/connector_pages/hubspot.json | 537 ++++++++++++++++++++------ scripts/connector_pages/notion.json | 159 +++----- scripts/connector_pages/slack.json | 218 +++++------ scripts/connector_pages/stripe.json | 190 ++++++--- scripts/generate_connector_pages.py | 318 ++++++++------- scripts/test_connector_pages.py | 156 +++++++- 15 files changed, 1863 insertions(+), 1668 deletions(-) diff --git a/essentials/v2/connector-providers.mdx b/essentials/v2/connector-providers.mdx index afb30a2c..c18c94ae 100644 --- a/essentials/v2/connector-providers.mdx +++ b/essentials/v2/connector-providers.mdx @@ -8,13 +8,46 @@ Choose a provider to see what to set up and what it syncs. Availability and cred ## How to read a connector page -1. **Before you connect:** the credentials, permissions and steps the provider needs. -2. **What gets synced:** what one document is, and what HydraDB does with each attribute it keeps. -3. **How it fits into the graph:** what kind of item each document becomes and what it connects to. -4. **Permissions:** whether the provider's permissions decide who can read an item. -5. **Keeping in sync:** how history, edits and deletions arrive. +Each page opens with what the connector brings in and the limits that decide whether it fits. Then: + +1. **Permissions:** whether the provider's permissions decide who can read an item. +2. **Before you connect:** the credentials, permissions and steps the provider needs. +3. **Keeping in sync:** how history, edits and deletions arrive. +4. **What gets synced:** what one document is, and what HydraDB does with each attribute it keeps. +5. **How it fits into the graph:** the class of each item and the connections the connector creates. 6. **Not synced:** what does not come across. +### Attribute labels + +Each attribute on a connector page carries one label for every use it has. + +- **Searchable text:** part of the text a query matches. +- **Query filter:** a key you can filter a query on, typed exactly as shown. +- **Result date:** the date HydraDB uses when it ranks results by date. +- **Graph connection:** links the item to another item in the knowledge graph. +- **Graph identity:** names a person or group, and the graph attaches the item to them. +- **Access rule:** decides who can read the item. +- **Stored only:** kept on the item and shown when you inspect it. A query does not match it and cannot filter on it. + +An attribute without the Searchable text label says so in its description. + +### Graph classes + +Every synced item belongs to one class, so similar items from different tools are grouped the same way. A class names the kind of item. It does not promise that every detail below is filled: each connector page says what its items carry and which connections it creates. + +- **Email:** an email message, with its sender, recipients, subject and thread. +- **Message:** a chat or conversation message, with its author and thread. +- **Ticket:** an issue, task or support ticket, with its workflow and ownership details. +- **Page:** a page, article or other document-style content. +- **Contact:** a person or organization record. +- **Comment:** a comment that belongs to another item or thread. +- **Meeting:** a meeting or calendar event. +- **Record:** a record that fits none of the other classes. +- **Container:** a project, channel, folder or space that holds other items. +- **Iteration:** a sprint, cycle or release with dates, a state and a goal. + +HydraDB also identifies people, organizations, projects and other named things in the searchable text of every item, whichever tool it came from. To steer what it looks for, use [custom instructions](/essentials/v2/connectors#4-custom-ingestion-instructions). + These pages follow that layout: [BigQuery](/essentials/v2/connectors/bigquery), [GitHub](/essentials/v2/connectors/github), [HubSpot](/essentials/v2/connectors/hubspot), [Notion](/essentials/v2/connectors/notion), [Slack](/essentials/v2/connectors/slack), [Stripe](/essentials/v2/connectors/stripe). The others list the indexed object types and setup notes while they move to it. ## Messaging & email diff --git a/essentials/v2/connectors/bigquery.mdx b/essentials/v2/connectors/bigquery.mdx index a67a1288..14d95041 100644 --- a/essentials/v2/connectors/bigquery.mdx +++ b/essentials/v2/connectors/bigquery.mdx @@ -4,49 +4,65 @@ description: "Sync rows from the BigQuery tables you choose, one searchable docu icon: "/images/connectors/bigquery.svg" --- -The BigQuery connector reads the tables you select in one Google Cloud project. Each row becomes one document. Its text lists every non-empty column as a label and a value, and the document is grouped under its table. +Sync rows from the BigQuery tables you select in one Google Cloud project. Each row is one document. Every non-empty column of the row becomes searchable text, including sensitive columns. -You decide, table by table, how HydraDB finds new and changed rows: a timestamp column, BigQuery's change history, or a full read of the table on every sync. +BigQuery access controls are not imported, so every synced row is visible to everyone who can query the collection unless you set an access rule. Rows deleted in BigQuery stay in HydraDB. You choose, table by table, how new and changed rows are found: a timestamp column, BigQuery's change history, or a full read of the table on every sync. BigQuery is in beta. +## Permissions + + +BigQuery permissions are not imported, so **Enforce ACL** is unavailable for this connector. Every synced item is visible to everyone who can query the collection, unless you [set an access rule on the resource](/essentials/v2/connectors#set-your-own-rule-on-a-resource). + + +- BigQuery dataset, table, row-level and column-level access controls are not reproduced. + +API-key requests must omit `enforce_acl`, including `false`. See [ACL on synced content](/essentials/v2/connectors#5-acl-native-rbac-awareness). + ## Before you connect Set a primary key for every table you select. HydraDB updates a row's document by its key. If a table has no real unique key, different rows can be treated as the same document and replace each other. -BigQuery uses a Google Cloud service account. There is no sign-in flow: you paste credentials. Supply one complete set: a service-account key file, a service-account email with its private key, or an OAuth client id, client secret and refresh token. +### Credentials -**Credentials** +Use a service-account JSON key, a service-account email and private key, or a pre-issued OAuth client id, client secret and refresh token. Paste one complete credential set. HydraDB does not offer an interactive sign-in flow. The JSON key is the recommended option. -The service account's JSON key file, pasted whole. This is the recommended option. +The service account's JSON key file, pasted whole. + + +**Service-account email and private key** + -The service account's email. Use it together with `private_key` instead of the key file. +The service account's email. -The service account's private key. Use it together with `client_email`. +The service account's private key. +**OAuth client and refresh token** + -An OAuth client id. Valid only together with `client_secret` and `refresh_token`. +An OAuth client id. -An OAuth client secret. Valid only together with `client_id` and `refresh_token`. +An OAuth client secret. -An OAuth refresh token you issued beforehand. It is required in the OAuth option, because a client id and secret alone cannot reach BigQuery. +An OAuth refresh token you issued beforehand. A client id and secret alone cannot reach BigQuery, so this option needs all three fields. -Each credential field is optional on its own, but one of the three options must be complete. + **Connector settings** @@ -62,192 +78,197 @@ The BigQuery location to run query jobs in. Limits discovery and sync to these datasets. + + -A timestamp column to use as the sync cursor for every selected table that has it. A table's own setting overrides it. +A timestamp column used to find changed rows, called the sync cursor, for every selected table that has it. A table's own settings override it. -`appends` or `changes`, used for tables that still have no cursor column. A table's own setting overrides it. +`appends` or `changes`, used for tables that have no cursor column. A table's own settings override it. Off by default. When on, column-partitioned tables sync incrementally on their partition column. + + **What the service account needs** - `BigQuery Data Viewer`: role on the project. - `BigQuery Job User`: role on the project. - `https://www.googleapis.com/auth/bigquery`: scope, in the OAuth option. Google rejects query jobs under the read-only BigQuery scope. -**Set it up** +### Set it up In Google Cloud, create a service account. Give it the BigQuery Data Viewer and BigQuery Job User roles on the project, and download its JSON key. - Paste the key as `credentials_json`. Add `project_id` only if the key file does not name a project. To narrow what discovery shows, list `datasets`. + Paste the key as `credentials_json`. Add `project_id` only if the key file does not name a project. To narrow which tables HydraDB lists, set `datasets`. - Discover lists the tables in the project, narrowed by `datasets` when you set it. Select the tables to sync. Each selected table becomes its own set of documents, one per row. + HydraDB lists the tables in the project, narrowed by `datasets` when you set it. Select the tables to sync. Each selected table becomes its own set of documents, one per row. - - If the table has a timestamp column that changes on every insert and update, such as `updated_at`, make it the table's `replication_key`. If rows are only ever inserted, set `change_history` to `appends`. If rows are also updated and there is no such column, set `change_history` to `changes`. A table with none of these is read in full on every sync. If a table has both a cursor and change history, change history wins. + + If the table has a timestamp column that changes on every insert and update, such as `updated_at`, make it the table's `replication_key`. This column is the table's sync cursor. If rows are only ever inserted, set `change_history` to `appends`. If rows are also updated and there is no such column, set `change_history` to `changes`. A table with none of these is read in full on every sync, which is expensive on large tables. Run `ALTER TABLE dataset.table SET OPTIONS(enable_change_history=true)` once in BigQuery for that table. It changes no data. - Add `primary_keys` with the column or columns that identify one row, unless the table already declares a primary key. + Add `primary_keys` with the column or columns that identify one row, unless the table already has a primary key defined in BigQuery. Through the API or SDK, send the per-table settings as `table_configs` on the same Configure Connector request that selects the tables. The dashboard collects them on the table-selection screen. -One `table_configs` entry per table, for each sync mode: +One `table_configs` entry per table, for each way of finding changes. A table's own `change_history` overrides its cursor setting. Otherwise, a usable table or connector-wide cursor takes priority over the connector-wide `change_history` fallback. ```json Timestamp cursor -{"table": "sales.orders", "replication_key": "updated_at", "primary_keys": ["order_id"]} +{ + "table": "sales.orders", + "replication_key": "updated_at", + "primary_keys": [ + "order_id" + ] +} ``` ```json Inserts only -{"table": "web.page_views", "change_history": "appends", "primary_keys": ["event_id"]} +{ + "table": "web.page_views", + "change_history": "appends", + "primary_keys": [ + "event_id" + ] +} ``` ```json Inserts and updates -{"table": "crm.accounts", "change_history": "changes", "primary_keys": ["account_id"]} +{ + "table": "crm.accounts", + "change_history": "changes", + "primary_keys": [ + "account_id" + ] +} ``` -```json Changes only, no backfill -{"table": "crm.accounts", "change_history": "changes", "snapshot": "none", "primary_keys": ["account_id"]} +```json Changes only, skip existing rows +{ + "table": "crm.accounts", + "change_history": "changes", + "snapshot": "none", + "primary_keys": [ + "account_id" + ] +} ``` ```json Full read -{"table": "ref.countries", "primary_keys": ["code"]} +{ + "table": "ref.countries", + "primary_keys": [ + "code" + ] +} ``` +One connector reads one Google Cloud project. + + + Use provider `bigquery` with [Create Connector](/api-reference/v2/endpoint/create-connector). Then call [Discover Connector Resources](/api-reference/v2/endpoint/discover-connector-resources) to list what the credentials can reach, and [Configure Connector](/api-reference/v2/endpoint/configure-connector) to choose what to sync. -Create one connector per account, each with that account's own credentials. One connector reads one Google Cloud project. + -## What gets synced +## Keeping in sync -**What the labels mean** +- **First sync:** A table with a cursor column reads back the window set by `lookback_days`, 30 days by default. A change-history table starts capturing changes at its first sync, not when you create the connector, and then loads its existing rows in slices of 1,000 per sync. Set `snapshot` to `none` to skip existing rows, or to a number to load at most that many rows, in no particular order. With `none`, changes between creating the connector and its first sync are not recovered. While existing rows are loading, deleting rows in BigQuery can cause other rows to be missed. +- **New and changed items:** A cursor table picks up rows whose cursor value moved past the last sync. A `changes` table reads BigQuery's change history, about 11 minutes behind the current time. An `appends` table sees new rows only. A table with neither is read in full on every sync, and rows whose content did not change are skipped. +- **Edits:** An edited row updates the same document, as long as its key is unique. In `appends` mode, edits to existing rows are never seen. +- **Deletions:** Deleted rows are not removed. A row deleted in BigQuery stays searchable in HydraDB. +- BigQuery keeps change history for its time-travel window, 2 to 7 days. If a change-history table is not synced within that window, for example while the connector is paused, the table is skipped with an error on each sync until it is loaded again from the start. +- A dataset name containing `__` can display incorrectly as a table label. Which table a row belongs to is not affected. -- **Title:** names the item in results. -- **Searchable:** part of the text a query matches. -- **Date:** the time HydraDB uses for recency. -- **Filter:** a key a query can filter on, typed exactly as shown. -- **Link:** connects this item to another item. -- **Person or group in the graph:** a person or group the knowledge graph attaches the item to. -- **Access:** decides who can read the item. -- **Stored with results:** kept on the document, and shown when you open or inspect it. A search does not match it. -- **Not kept:** the provider has it, and HydraDB does not keep it. +After the first sync, HydraDB syncs every hour by default. Set `sync_interval_seconds` on the connector to change it. + +## What gets synced ### Table rows - **One document:** One row of a selected table, as long as the table's key is unique. Rows that share a key replace one another. -- **Title:** The first non-empty column named `name`, `title`, `subject`, `summary` or `email`. Otherwise the first non-empty column that is not a number, in alphabetical column order, then the first number column. A row with none of these is titled with its table and row key. -- **Text:** The title on the first line. Then every non-empty column in alphabetical order, as `Column Name: value`: underscores become spaces and words are capitalised. Lists of values are joined with commas. Nested records are written as compact JSON. -- **Date:** The first of `updated_at`, `modified_at`, `last_modified`, `updated`, `created_at`, `created`, `timestamp`, `event_time` and `inserted_at` that holds a TIMESTAMP or epoch-seconds value. A row with none has no date. DATETIME columns carry no time zone and are not used. +- **Title:** The first non-empty column named `name`, `title`, `subject`, `summary` or `email`. Otherwise, the first non-empty, non-numeric scalar column in alphabetical column order is used. If there is none, the first numeric column is used. A row with none of these is titled with its table and row key. +- **Text:** The title on the first line. Then every non-empty column in alphabetical order, as `Column Name: value`: underscores become spaces and words are capitalised. Lists of scalar values are joined with commas. Nested records and lists of records are written as compact JSON. In change-history mode, each row also has `_change_type` and `_change_timestamp` columns, and both appear in the text. +- **Date:** The first recognised time column with an RFC3339 timestamp or epoch-seconds value sets the result date. The columns are checked in this order: `updated_at`, `modified_at`, `last_modified`, `updated`, `created_at`, `created`, `timestamp`, `event_time` and `inserted_at`. BigQuery DATETIME values have no time zone and do not set it. A row with none has no date. - **Link back:** None. - **Files:** None. Column values are kept as text only. -**Title** - - -Names the row in results. It is also the first line of the row text, so a query matches it. + +Every non-empty column is searchable as text. Columns are not individual query filters. A table name in a text query does not reliably select that table. Use `additional_metadata.container_name` or `additional_metadata.container_id`. -**Searchable** - - -Every non-empty column of the row, written as described above. This is what a query matches. - - -**Date** - - -The value of the first recognised time column. It is the document date used for recency. A sync cursor with another name does not set it. + +The value of the first recognised time column, used as the result date. A sync cursor with another name does not set it. This attribute is not searchable, but a source column of the same name is part of the row text like any other column. -**Filter** - - -The table as `dataset.table`. Limits a query to one table. + +The table as `dataset.table`. Limits a query to one table. Not searchable. - -The table as `dataset__table`, with two underscores. Another way to limit a query to one table. + +The table as `dataset__table`, with two underscores. Another way to limit a query to one table. Not searchable. - -Always `table`. + +Always `table`. Not searchable. - -Limits a query to this connector's documents. + +Limits a query to this connector's rows. Not searchable. - -Always `bigquery`. Limits a query to BigQuery documents. + +Always `bigquery`. Limits a query to BigQuery rows. Not searchable. - + - + The table as `dataset.table`, so you can see where a result came from. - + The key the row was matched on. Together with the table, it decides which document a later sync updates. -## How it fits into the graph - -**What each item becomes** - -- Table rows: a record, an item that does not fit one of the specialised kinds, searched through its text. - -**Connections BigQuery creates** - -None. Rows are not linked to each other or to items in other tools, even when a column holds another table's key. - -**People and groups it names** +**Example searches** -- None are declared. Each row is grouped under its table. -- A column such as `email` or `user_id` is part of the row text only. It does not make the row a person in the graph. - -**What HydraDB reads from the text** +- What does the `sales.orders` table say about order 10432? +- Which rows in `crm.accounts` mention Acme Corp? +- Which rows in `support.tickets` were updated most recently? -Everything else. Customers, people, products and references between rows are found only by HydraDB reading the row text. +## How it fits into the graph -There is no per-connector setup for this. Every connector maps its items onto the same shared model, and HydraDB finds people, organizations, projects, products and other entities in the text the same way for every source. To steer what it looks for, use [custom instructions](/essentials/v2/connectors#4-custom-ingestion-instructions). +- Table rows use the Record class. -## Permissions +[Graph classes](/essentials/v2/connector-providers#graph-classes) explains each class. - -This connector does not carry BigQuery permissions into search. Every synced item is visible to everyone who can query the collection, unless you [set an access rule on the resource](/essentials/v2/connectors#set-your-own-rule-on-a-resource). - - -- BigQuery dataset, table, row-level and column-level access controls are not reproduced. -- Every column of a selected table becomes searchable text, including sensitive ones. Select tables with that in mind. +**Connections BigQuery creates** -**Enforce ACL** cannot be turned on for BigQuery, because it needs a provider that reports `acl_supported: true`. API-key requests must omit `enforce_acl`, including `false`. See [ACL on synced content](/essentials/v2/connectors#5-acl-native-rbac-awareness). +The connector creates no explicit links between rows or to other tools. A column containing another row's key does not create a link. Each row is grouped under its table. -Database and collection names decide where content lands; collection names do not authorize access. +**People and groups** -## Keeping in sync +The connector does not explicitly attach rows to people. A column such as `email` or `user_id` is part of the row text only. It does not make the row a person in the graph. -- **First sync:** A table with a cursor column reads back the window set by `lookback_days`, 30 days by default. A change-history table starts capturing changes at its first sync, not when you create the connector, and then loads its existing rows in slices of 1,000 per sync. Set `snapshot` to `none` to skip existing rows, or to a number to load at most that many rows, in no particular order. With `none`, changes between creating the connector and its first sync are not recovered. -- **New and changed items:** A cursor table picks up rows whose cursor value moved past the last sync. A `changes` table reads BigQuery's change history, about 11 minutes behind the current time. An `appends` table sees new rows only. A table with neither is read in full on every sync, and rows whose content did not change are skipped. -- **Edits:** An edited row updates the same document, as long as its key is unique. In `appends` mode, edits to existing rows are never seen. -- **Deletions:** Deleted rows are not removed. A row deleted in BigQuery stays searchable in HydraDB. -- BigQuery keeps change history for its time-travel window, 2 to 7 days. If a change-history table is not synced within that window, for example while the connector is paused, the table is skipped with an error on each sync until it is loaded again from the start. +**Found in the text** -After the first sync, HydraDB syncs every hour by default. Set `sync_interval_seconds` to change it. +The row text. Anything found there comes from reading the text, not from joining table keys. HydraDB identifies people, organizations, projects and other named things in this text. To steer what it looks for, use [custom instructions](/essentials/v2/connectors#4-custom-ingestion-instructions). ## Not synced @@ -256,17 +277,3 @@ After the first sync, HydraDB syncs every hour by default. Set `sync_interval_se - Updates to existing rows in tables set to `appends`. - BigQuery dataset, table, row-level and column-level access controls. - Table and column descriptions and other schema details. Only row values are kept. - -## Questions this lets you answer - -- What does the `sales.orders` table say about order 10432? -- Which rows in `crm.accounts` mention Acme Corp? -- Which rows in `support.tickets` were updated most recently? -- What plan and region are recorded for jane@example.com in `billing.customers`? - -## Good to know - -- **Large tables need a sync mode.** A table with no cursor column and no change history is read in full on every sync, which is expensive on large tables. -- **Change-history rows carry two extra lines.** In change-history mode, each row also has `_change_type` and `_change_timestamp` columns, and both appear in the row text. -- **A cursor column does not always set the date.** Recency uses only the time column names listed above. A cursor with another name drives sync without setting the document date. -- **Backfill is best effort.** Deleting rows while existing rows are still loading can make other rows be missed. diff --git a/essentials/v2/connectors/github.mdx b/essentials/v2/connectors/github.mdx index f248801c..22f03c08 100644 --- a/essentials/v2/connectors/github.mdx +++ b/essentials/v2/connectors/github.mdx @@ -4,15 +4,29 @@ description: "Sync issues and pull requests, each with its whole discussion, fro icon: "/images/connectors/github-light.svg" --- -The GitHub connector reads the repositories you select. Each issue and each pull request becomes one document that carries its body and its whole discussion: conversation comments and, for a pull request, review comments and review summaries. +The GitHub connector syncs issues and pull requests from selected repositories. Code, commits and diffs are not synced. Each issue and each pull request is one document that carries its body and its whole discussion: conversation comments and, for a pull request, review comments and review summaries. -Issues and pull requests are linked to the issues they reference or close, to their parent issue, and to the Linear issues, Slack messages and Notion pages they link to. +Issues and pull requests link to the issues they reference or close, to their parent issue, and to the Linear issues, Slack messages and Notion pages they link to. + +A private repository's items are limited to its collaborators and teams only when Enforce ACL is on and HydraDB can read its collaborators. Deleted issues and pull requests stay in HydraDB. + +## Permissions + +Turn on **Enforce ACL** for this connector to make search follow GitHub permissions. With Enforce ACL off, HydraDB does not enforce them. Only a workspace owner or writer signed in to HydraDB can turn it on. API-key requests must omit `enforce_acl`, including `false`. See [Enforce ACL](/essentials/v2/connectors#enforce-acl). + +- **Who can read an item:** Access follows the repository, not the single issue. A public or internal repository can be read by everyone who can query the collection unless you set an access rule. A private repository can be read by its collaborators and by the organization teams that have access to it. +- **How a person is identified:** The email address on a collaborator's public GitHub profile. Teams are added as groups. +- **When permissions cannot be read:** If a collaborator hides their profile email, the collaborator list is incomplete, there are too many people to express, or GitHub refuses a request, the connector reports a permission warning. On HydraDB Cloud, with Enforce ACL on, such an item follows the access rule you set on its resource. With no rule, it is hidden from search. Self-hosted deployments can be configured differently. Permission warnings appear in [Get Connector Status](/api-reference/v2/endpoint/get-connector-status). +- One collaborator with a hidden public email stops HydraDB from capturing a private repository's audience. Set an access rule on such a repository. +- Internal repositories are open to everyone who can query the collection. Check that this matches who should see them. + +You can also [set your own rule on a resource](/essentials/v2/connectors#set-your-own-rule-on-a-resource). ## Before you connect -GitHub uses a personal access token. A classic token needs `repo`, or `public_repo` for public repositories only. A fine-grained token works with the access GitHub grants it. +### Credentials -**Credentials** +GitHub uses a personal access token. The setup steps below use a classic token, which needs `repo`, or `public_repo` for public repositories only. A fine-grained token works if GitHub grants it read access to the repositories you want and to their issues. A GitHub personal access token with read access to repositories and issues. @@ -22,11 +36,11 @@ A GitHub personal access token with read access to repositories and issues. - `public_repo`: public repositories only. Use this or `repo`. - `repo`: private and public repositories. Reading a private repository's collaborators for permissions also needs it. -- `read:org`: reads which organization teams can access a repository, for permissions. If GitHub refuses it, the connector raises a permission warning. +- `read:org`: reads which organization teams can access a repository, for permissions. If GitHub refuses it, the connector reports a permission warning. -HydraDB checks for `repo` or `public_repo` only when GitHub reports the token's scopes. Fine-grained tokens may not report them. +A successful token check does not guarantee access to every repository. Confirm that the repositories you need are listed when you select them. -**Set it up** +### Set it up @@ -36,142 +50,136 @@ HydraDB checks for `repo` or `public_repo` only when GitHub reports the token's Paste the token as `access_token`. - Discover lists every repository the token's user owns, collaborates on, or can see as an organization member. Select the repositories to sync. + HydraDB lists every repository the token's user owns, collaborates on, or can see as an organization member. Select the repositories to sync. +One connector reads the repositories one token's user can see. + +To connect more than one GitHub account, give each connector its own `provider_account_scope`, such as `github-account-a` and `github-account-b`. These are labels you choose, not GitHub's own account ids, and HydraDB does not check them. Two connectors that share a scope and write to the same collection can overwrite each other's items. See [several accounts from one provider](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). + + + Use provider `github` with [Create Connector](/api-reference/v2/endpoint/create-connector). Then call [Discover Connector Resources](/api-reference/v2/endpoint/discover-connector-resources) to list what the credentials can reach, and [Configure Connector](/api-reference/v2/endpoint/configure-connector) to choose what to sync. -Create one connector per account, each with that account's own credentials. GitHub rate limits apply per token, so a large first sync can use up the hourly quota. That is why the first sync is bounded. + -To connect several GitHub accounts, give each connector its own `provider_account_scope`, for example `github-account-a` and `github-account-b`. Both are caller-provided example identifiers. HydraDB stores the value as given and does not check it against GitHub's own account ids. Two connectors that share a scope and write to the same collection can overwrite each other's items. See [several accounts from one provider](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). +## Keeping in sync -## What gets synced +- **First sync:** Reaches back 30 days by default, set by `lookback_days`. The window is measured from the repository's most recent activity, not from today, so a quiet repository still brings in its last stretch of work. +- **New and changed items:** Each sync asks GitHub for items updated since the last sync. A changed item is sent again with its whole discussion. +- **Edits:** Editing an issue or pull request, or adding a comment, moves its updated time, so the whole item is sent again. +- **Deletions:** Deleted issues and pull requests are not removed. An item that disappears from GitHub can stay searchable in HydraDB. +- GitHub rate limits apply per token. A large first sync can use its hourly quota. -**What the labels mean** +After the first sync, HydraDB syncs every hour by default. Set `sync_interval_seconds` on the connector to change it. -- **Title:** names the item in results. -- **Searchable:** part of the text a query matches. -- **Date:** the time HydraDB uses for recency. -- **Filter:** a key a query can filter on, typed exactly as shown. -- **Link:** connects this item to another item. -- **Person or group in the graph:** a person or group the knowledge graph attaches the item to. -- **Access:** decides who can read the item. -- **Stored with results:** kept on the document, and shown when you open or inspect it. A search does not match it. -- **Not kept:** the provider has it, and HydraDB does not keep it. +## What gets synced ### Issues and pull requests -- **One document:** One issue or one pull request, with its whole discussion inside it. +- **One document:** One issue or one pull request, with its whole discussion inside it. A search result is the issue or pull request, not an individual comment. - **Title:** The issue or pull request title. -- **Text:** The body. Each comment, review comment and review summary is added as its own searchable part of the item, with its author and time, and for a review comment the file, line and the comment it replies to. Empty comments are skipped. Labels are written as a `Labels` line, the creation time as a `Created` line, and a sub-issue's parent as a `Parent` line. +- **Text:** The issue or pull request body and its discussion are searchable together. Comments and reviews include their author and time. Review comments also include the file, line and reply context. Empty comments are skipped. Labels are written as a `Labels` line, the creation time as a `Created` line, and a sub-issue's parent as a `Parent` line. The title is searchable too. - **Date:** When the issue or pull request was last updated. - **Link back:** The issue or pull request page on GitHub. - **Files:** Images and files in bodies and comments are not downloaded. -**Title** - - -Names the result. HydraDB also scans it for Linear issue keys and links. + +HydraDB also scans the title for Linear issue keys and links, and links the item to those issues. -**Searchable** - - + The main text. References in it become links: `#123`, `owner/repo#123`, closing keywords, and Linear, Slack and Notion links. - + Each comment, review comment and review summary is searchable with the item. Its author is recorded as a commenter, and references inside it become links of the item. - + Written as the `Labels` line, so a query can match a label. - + Written as the `Created` line. - + The id `owner/repo#number`. It keeps later syncs on the same document, and it is what items in other tools, such as Linear issues, link to. -**Date** - - -When the item was last updated. It is the document date, and it moves with every edit or new comment. + +When the item was last updated. It moves with every edit or new comment. Not searchable. -**Filter** - - -The repository as `owner/name`. Limits a query to one repository. + +The repository as `owner/name`. Limits a query to one repository. Not searchable. - -The issue or pull request number. Targets one item. + +The issue or pull request number within a repository. Combine it with `additional_metadata.github_repo` to select one item. Not searchable. - -Limits a query to this connector. + +Limits a query to this connector's items. Not searchable. - -Always `github`. + +Always `github`. Not searchable. -**Link** - - + A sub-issue's parent issue, as `owner/repo#number`. Links the sub-issue to its parent, and is written as the `Parent` line. - -Marks a pull request, so closing keywords in its body link it to the issues it closes. + +Marks a pull request, so closing keywords in its body link it to the issues it closes. Not searchable. -**Person or group in the graph** - - -Each `@username` in the body, recorded as a person the item mentions. + +Each `@username` in the body, recorded as a person the item mentions. The field itself is not searchable, but the body it comes from is. -**Access** - - -The selected repository. Its audience decides who can read every issue and pull request in it. + +The selected repository. Its audience decides who can read every issue and pull request in it. Not searchable. - + - -The login of the person who opened the item. It is not searchable and not added to the graph as a person. + +The login of the person who opened the item. It is not added to the graph as a person. - -Assignee logins. Not searchable, and not added to the graph. + +Assignee logins. Not added to the graph. - -`open` or `closed`. Not searchable. + +`open` or `closed`. - + When the item was closed. - + The milestone title and its due date. +**Example searches** + +- Which pull request fixed issue `acme/api#412`? +- Which issues in `acme/api` are labelled bug and mention the login timeout? +- Which Linear issue does this pull request close? + ## How it fits into the graph -**What each item becomes** +- Issues and pull requests use the Ticket class. -- Issues and pull requests: a ticket, an issue, task or support ticket, with its workflow and ownership details. +[Graph classes](/essentials/v2/connector-providers#graph-classes) explains each class. **Connections GitHub creates** @@ -183,41 +191,15 @@ The milestone title and its due date. - In the other direction, Linear issues link to the GitHub pull requests attached to them. - References inside code blocks, inline code and HTML comments are ignored. -**People and groups it names** +**People and groups** - The author of each comment, as a commenter. - Each `@username` mentioned in the body. -- The person who opened the item and its assignees are not declared as people. - -**What HydraDB reads from the text** - -The body and discussion text: topics, decisions, and people and projects named in prose. - -There is no per-connector setup for this. Every connector maps its items onto the same shared model, and HydraDB finds people, organizations, projects, products and other entities in the text the same way for every source. To steer what it looks for, use [custom instructions](/essentials/v2/connectors#4-custom-ingestion-instructions). - -## Permissions - -This connector can carry GitHub permissions into search. - -- **Who can read an item:** Access follows the repository, not the single issue. A public or internal repository can be read by everyone in your HydraDB tenant unless you set an access rule. A private repository can be read by its collaborators and by the organization teams that have access to it. -- **How a person is identified:** The email address on a collaborator's public GitHub profile. Teams are added as groups. -- **When permissions cannot be read:** If a collaborator hides their profile email, the collaborator list is incomplete, there are too many people to express, or GitHub refuses a request, the connector raises a permission warning. An access rule you set on the repository stays in force. Without a rule, depending on your deployment's setting, the repository's items are either readable by everyone or hidden until permissions can be read. - -- One collaborator with a hidden public email stops HydraDB from capturing a private repository's audience. Set an access rule on such a repository. -- Internal repositories are open to everyone in your HydraDB tenant. Check that this matches who should see them. - -Captured permissions filter search only when **Enforce ACL** is on for the connector. Only a signed-in human workspace owner or writer can turn it on, in the dashboard connector settings. API-key requests must omit `enforce_acl`, including `false`. See [Enforce ACL](/essentials/v2/connectors#enforce-acl). You can also [set your own rule on a resource](/essentials/v2/connectors#set-your-own-rule-on-a-resource). +- The opener and assignees are not attached to the item as people in the graph. -Database and collection names decide where content lands; collection names do not authorize access. +**Found in the text** -## Keeping in sync - -- **First sync:** Reaches back 30 days by default, set by `lookback_days`. The window is measured from the repository's most recent activity, not from today, so a quiet repository still brings in its last stretch of work. -- **New and changed items:** Each sync asks GitHub for items updated since the last sync. A changed item is sent again with its whole discussion. -- **Edits:** Editing an issue or pull request, or adding a comment, moves its updated time, so the whole item is sent again. -- **Deletions:** Deleted issues and pull requests are not removed. An item that disappears from GitHub can stay searchable in HydraDB. - -After the first sync, HydraDB syncs every hour by default. Set `sync_interval_seconds` to change it. +The body and discussion text of each issue and pull request. HydraDB identifies people, organizations, projects and other named things in this text. To steer what it looks for, use [custom instructions](/essentials/v2/connectors#4-custom-ingestion-instructions). ## Not synced @@ -225,16 +207,3 @@ After the first sync, HydraDB syncs every hour by default. Set `sync_interval_se - Releases, wikis, projects and GitHub Discussions. - Images and files attached in bodies and comments. - Repositories the token's user cannot see. - -## Questions this lets you answer - -- What was decided in the discussion on the pull request that added rate limiting? -- Which pull request fixed issue `acme/api#412`? -- Which issues in `acme/api` are labelled bug and mention the login timeout? -- Which Linear issue does this pull request close? -- What did reviewers say about the caching change in `acme/web`? - -## Good to know - -- **Who opened or owns an item is not searchable.** The opener, the assignees and whether the item is open are stored on it, but a query does not match them. -- **Comments arrive inside their issue or pull request.** Each comment is part of its issue or pull request, so a result is the whole item, not a single comment. diff --git a/essentials/v2/connectors/hubspot.mdx b/essentials/v2/connectors/hubspot.mdx index 0c63fa03..0212044e 100644 --- a/essentials/v2/connectors/hubspot.mdx +++ b/essentials/v2/connectors/hubspot.mdx @@ -1,18 +1,36 @@ --- title: "HubSpot" -description: "Sync HubSpot CRM records and logged activities, with record-level permissions worked out from owners and teams." +description: "Sync HubSpot CRM records and logged activities. Owner and team restrictions carry over for deals, contacts and companies, not tickets." icon: "/images/connectors/hubspot.svg" --- -The HubSpot connector reads the CRM object types you select: deals, tickets, contacts and companies, and the notes, emails, calls, meetings and tasks logged on them. Each record or activity becomes one document. +Sync the HubSpot CRM object types you select: deals, tickets, contacts and companies, and the notes, emails, calls, meetings and tasks logged on them. Each record or activity is one document. -Activities are linked to the deal, contact or company they are logged on. Records carry a list of who can read them, worked out from HubSpot owners and teams. +An activity links to one associated deal, contact or company only when everyone who can read the activity can also read that record. Owner and team restrictions can be captured for deals, contacts and companies, but not tickets. Search applies captured restrictions only with Enforce ACL enabled. + +Custom CRM properties and files attached to activities are not synced. Deleted and archived records stay in HydraDB. + +## Permissions + +Turn on **Enforce ACL** for this connector to make search follow HubSpot permissions. With Enforce ACL off, HydraDB does not enforce them. Only a workspace owner or writer signed in to HydraDB can turn it on. API-key requests must omit `enforce_acl`, including `false`. See [Enforce ACL](/essentials/v2/connectors#enforce-acl). + +- **Who can read an item:** Each deal, contact and company carries HubSpot's owners and the teams that can access it, including parent teams. Its readers are the owners, every member of those teams, every super admin, and the members of the roles you list in `full_visibility_roles`. An activity can be read by everyone who can read any record it is logged on. An activity logged on nothing uses its own owner and teams. +- **How a person is identified:** A HubSpot user's or owner's email address. +- **When permissions cannot be read:** If a record names owners or teams but their readers cannot be worked out, the record gets an access warning, which you can find with `additional_metadata.rbac_warning`. A warning does not by itself mean the record is public. On HydraDB Cloud, with Enforce ACL on, such an item follows the access rule you set on its resource. With no rule, it is hidden from search. Self-hosted deployments can be configured differently. Permission warnings appear in [Get Connector Status](/api-reference/v2/endpoint/get-connector-status). +- Tickets do not carry HubSpot's owner and team access lists, so owners and teams do not restrict them. Set an access rule on the tickets resource if tickets must be private. +- If a record carries no owner or team access information, HydraDB does not restrict it based on the owner it shows, and does not raise a warning. An access rule you set on its resource still applies. +- Queues and archived owners give access to no one. +- If an activity's parent record is not synced, the activity can be readable by everyone. Sync the deals, contacts and companies your activities are logged on. +- If HydraDB cannot read which records an activity is logged on, those activities are not synced until a later sync can read them. +- This is HydraDB's reading of HubSpot owners, teams and roles. It is not a guarantee that HydraDB matches HubSpot's visibility in every case. + +You can also [set your own rule on a resource](/essentials/v2/connectors#set-your-own-rule-on-a-resource). ## Before you connect -HubSpot uses an access token from a private app, or an OAuth access token. +### Credentials -**Credentials** +HubSpot uses an access token from a private app, or an OAuth access token. A HubSpot private-app or OAuth access token. HydraDB does not refresh it, so a short-lived token must be replaced when it expires. @@ -34,7 +52,7 @@ A HubSpot private-app or OAuth access token. HydraDB does not refresh it, so a s - `settings.users.read`: users, their teams and super-admin status, used for permissions. - `settings.users.teams.read`: teams, used for permissions. -**Set it up** +### Set it up @@ -44,123 +62,100 @@ A HubSpot private-app or OAuth access token. HydraDB does not refresh it, so a s Paste the token as `access_token`. - Discover lists the CRM object types the token can read. Select the ones to sync. Notes, emails, calls, meetings and tasks are offered only when the token can also read contacts, companies, deals and tickets. + HydraDB lists the CRM object types the token can read. Select the ones to sync. Notes, emails, calls, meetings and tasks are offered only when the token can also read contacts, companies, deals and tickets. - When you configure the connector, list in `full_visibility_roles` the names of HubSpot roles whose members can see every record. HubSpot does not report what a role can see, so a member of such a role is otherwise not given access. Leaving the setting out keeps the current list; an empty list clears it. + When you configure the connector, list in `full_visibility_roles` the names of HubSpot roles whose members can see every record. HubSpot does not report what a role can see, so a member of such a role is otherwise not given access. Leaving the setting out keeps the current list. An empty list clears it. -Use provider `hubspot` with [Create Connector](/api-reference/v2/endpoint/create-connector). Then call [Discover Connector Resources](/api-reference/v2/endpoint/discover-connector-resources) to list what the credentials can reach, and [Configure Connector](/api-reference/v2/endpoint/configure-connector) to choose what to sync. - -Create one connector per account, each with that account's own credentials. +One connector reads the object types one access token can read. -## What gets synced + -**What the labels mean** +Use provider `hubspot` with [Create Connector](/api-reference/v2/endpoint/create-connector). Then call [Discover Connector Resources](/api-reference/v2/endpoint/discover-connector-resources) to list what the credentials can reach, and [Configure Connector](/api-reference/v2/endpoint/configure-connector) to choose what to sync. -- **Title:** names the item in results. -- **Searchable:** part of the text a query matches. -- **Date:** the time HydraDB uses for recency. -- **Filter:** a key a query can filter on, typed exactly as shown. -- **Link:** connects this item to another item. -- **Person or group in the graph:** a person or group the knowledge graph attaches the item to. -- **Access:** decides who can read the item. -- **Stored with results:** kept on the document, and shown when you open or inspect it. A search does not match it. -- **Not kept:** the provider has it, and HydraDB does not keep it. + -### On every HubSpot document +## Keeping in sync -**Date** +- **First sync:** Each selected object type reaches back the window set by `lookback_days`, 30 days by default. +- **New and changed items:** Each sync reads records modified since the last sync, and reads owners, users and teams again in full. +- **Edits:** An edited record is read again and replaces its document. A change to users or teams can also update who can read records already in HydraDB. A large change can take several syncs, so do not rely on a membership change to remove access right away. +- **Deletions:** Deleted and archived HubSpot records are not removed. They stay in HydraDB. +- If the token lacks the scope for one object type, that type can be skipped while the others sync. +- A connector set up before object types could be selected keeps syncing all of them until you configure it again. - -When the record was last modified. It is the document date, unless the activity has its own time. It is also in the text of notes and emails. - +After the first sync, HydraDB syncs every hour by default. Set `sync_interval_seconds` on the connector to change it. - -Used as the date only when there is no activity time and no modification time. It is also in the text of deals, tickets, notes, emails and calls. - +## What gets synced -**Filter** +### On every HubSpot item - -The HubSpot record id. Targets one record, and keeps later syncs on the same document. + +The record's modification time. Used for ranking by date when no activity time is available. Searchable on notes and emails. Not searchable on other record types. - -The object type, such as `deals` or `notes`. Limits a query to one type. + +The record's creation time. Used for ranking by date only when activity and modification times are missing. Searchable on deals, tickets, notes, emails and calls. Not searchable on contacts, companies, meetings and tasks. - -Set when there was a problem working out who can read the record, such as readers that could not be resolved or a removed team. A warning does not by itself mean the record is public. + +The source object type. Searchable in email details. On other record types it is stored and not searchable. Filter by `additional_metadata.hubspot_object`. - -Limits a query to this connector. + +The HubSpot record id. Targets one record, and keeps later syncs on the same document. Not searchable. No HubSpot link is stored, so use this id to find the record in HubSpot. - -Always `hubspot`. + +The object type, such as `deals` or `notes`. Limits a query to one type. Not searchable. -**Access** - - -The people who can read the record, worked out as described under Permissions. + +Set when there was a problem working out who can read the record, such as readers that could not be resolved or a removed team. A warning does not by itself mean the record is public. Not searchable. - - - -The object type the record came from. To filter on it, use `additional_metadata.hubspot_object`. + +Limits a query to this connector's records. Not searchable. - -Properties beyond the ones listed on this page are not kept. + +Always `hubspot`. Not searchable. - + +The people who can read the record, worked out as described under Permissions. Not searchable. + ### Deals - **One document:** One deal. - **Title:** The deal name. -- **Text:** The deal description, then `Deal`, `Amount`, `Stage`, `Close date` and `Owner` lines. +- **Text:** The deal description, then `Deal`, `Amount`, `Stage`, `Close date` and `Owner` lines. The deal name is searchable too. - **Date:** When the deal was last modified, else when it was created. - **Link back:** None. -**Title** - - -Names the deal in results. - - -**Searchable** - - -The description and the lines described above. - - - + Written as the `Amount` line. - + Written as the `Close date` line. - + Written as the `Stage` line, as HubSpot's internal stage id, not its display name. - -The owner's email, written as the `Owner` line. HydraDB can find the rep from that text. The owner is not declared as the deal's assignee. + +The owner's email, written as the `Owner` line, where HydraDB can identify the person. It does not create an assignee relationship. - + - -HubSpot's pipeline id. It is not turned into a name and is not searchable. + +HubSpot's pipeline id. It is not turned into a name. @@ -169,34 +164,22 @@ HubSpot's pipeline id. It is not turned into a name and is not searchable. - **One document:** One ticket. - **Title:** The ticket subject. -- **Text:** The ticket content. When the content is empty, the subject with `Priority` and `Stage` lines. +- **Text:** The ticket content. When the content is empty, the subject with `Priority` and `Stage` lines. The subject is searchable either way. - **Date:** When the ticket was last modified, else when it was created. - **Link back:** None. -**Title** - - -Names the ticket in results. - - -**Searchable** - - -The content, or the fallback described above. + +When the ticket has no content, written as a `Priority` line. - -Written as a `Priority` line. - - - + Written as a `Stage` line only when the ticket has no content. Otherwise it is stored and not searchable. - + - -The owner's email. It is not part of the text. + +The owner's email. It is not part of the text, and it does not restrict who can read the ticket. @@ -205,51 +188,37 @@ The owner's email. It is not part of the text. - **One document:** One contact, or one company. - **Title:** A contact's first and last name, else their email. A company's name. -- **Text:** A contact: `Name`, `Email`, `Company`, `Phone` and `Job title` lines. A company: its description, then `Company`, `Domain` and `Industry` lines. +- **Text:** For a contact, `Name`, `Email`, `Company`, `Phone` and `Job title` lines. For a company, its description, then `Company`, `Domain` and `Industry` lines. The title is searchable too. - **Date:** When the record was last modified, else when it was created. - **Link back:** None. -**Title** - - -Names the contact or company in results. - - -**Searchable** - - -The lines described above. - - - + A contact's email, so a query can find the person by email. - + A contact's company name. - + A contact's job title. - + A company's website domain, written as the `Domain` line. - + A company's industry, written as the `Industry` line. -**Link** - - -Links a contact to its company's document. + +Links a contact to its company's document. Not searchable. - + - + The owner's email. It is not part of the text. @@ -264,21 +233,13 @@ The owner's email. It is not part of the text. - **Link back:** None. - **Files:** Files attached to the note are not synced. -**Searchable** - - -The note body. + +When the note was logged as happening. Not searchable. -**Date** - - -When the note was logged as happening. It is the document date. - + - - - + The owner's email. It is not part of the text. @@ -288,43 +249,29 @@ The owner's email. It is not part of the text. - **One document:** One logged email. - **Title:** The email subject. -- **Text:** The plain-text body, else the HTML body converted to text, else the subject. The email's details, such as its direction, sender, recipient, owner and times, are written into the text as a list of fields. +- **Text:** The plain-text body, else the HTML body converted to text, else the subject. The email's details, such as its direction, sender, recipient, owner and times, are written into the text as a list of fields. The subject is searchable too. - **Date:** When the email happened, else when it was last modified, else when it was created. - **Link back:** None. - **Files:** Files attached to the email are not synced. -**Title** - - -The subject. Names the email in results. - - -**Searchable** - - -The body and details described above. - - - -The sender. Part of the text, and attached to the email in the graph. + +The sender. Part of the email details, and can be attached to the email in the graph. - -The recipient. Part of the text, and attached to the email in the graph. + +The recipient. Part of the email details, and can be attached to the email in the graph. - + Whether the email was inbound or outbound, written into the details. - + The owner's email, written into the details. -**Date** - - -When the email happened. It is the document date, and it is written into the details. + +When the email happened, written into the details. ### Calls @@ -335,29 +282,21 @@ When the email happened. It is the document date, and it is written into the det - **Date:** When the call happened, else when it was last modified, else when it was created. - **Link back:** None. -**Searchable** - - -The notes and lines described above. - - - + Written as the `Direction` line, so a query can match inbound or outbound calls. - -Written as the `Owner` line. HydraDB can find the rep from that text. + +The owner's email, written as the `Owner` line, where HydraDB can identify the person. -**Date** - - -When the call happened. It is the document date. + +When the call happened. Not searchable. - + - + The call length in milliseconds. It is not searchable. @@ -367,67 +306,59 @@ The call length in milliseconds. It is not searchable. - **One document:** One logged meeting, or one task. - **Title:** The meeting title, or the task subject. -- **Text:** A meeting: its notes converted from HTML, then `Meeting`, `Location`, `Start` and `Owner` lines. A task: its body converted from HTML, then `Task`, `Status`, `Priority` and `Owner` lines. +- **Text:** For a meeting, its notes converted from HTML, then `Meeting`, `Location`, `Start` and `Owner` lines. For a task, its body converted from HTML, then `Task`, `Status`, `Priority` and `Owner` lines. The title is searchable too. - **Date:** When the meeting or task happened, else when it was last modified, else when it was created. - **Link back:** None. -**Title** - - -Names the meeting or task in results. - - -**Searchable** - - -The notes or body and the lines described above. - - - + Where the meeting was held, written as the `Location` line. - -When the meeting started, written as the `Start` line. The document date is the activity time. + +When the meeting started, written as the `Start` line. The result date is the activity time instead. - + A task's status, written as the `Status` line. - + A task's priority, written as the `Priority` line. - -Written as the `Owner` line. HydraDB can find the rep from that text. + +The owner's email, written as the `Owner` line, where HydraDB can identify the person. -**Date** - - -When the meeting or task happened. It is the document date. + +When the meeting or task happened. Not searchable. - + - -When the meeting ended. It is not searchable and is not the document date. + +When the meeting ended. It is not the result date. +**Example searches** + +- What was said on the last call with this contact? +- Which notes and emails are logged on the Acme deal? +- What did the customer write in their last email? + ## How it fits into the graph -**What each item becomes** +- Deals use the Ticket class. +- Tickets use the Ticket class. +- Contacts and companies use the Record class. +- Notes use the Comment class. +- Emails use the Email class. +- Calls use the Message class. +- Meetings and tasks use the Record class. -- Deals: a ticket, an issue, task or support ticket, with its workflow and ownership details. -- Tickets: a ticket, an issue, task or support ticket, with its workflow and ownership details. -- Contacts and companies: a record, an item that does not fit one of the specialised kinds, searched through its text. -- Notes: a comment, a note or comment that belongs to another item. -- Emails: an email, an email message, with its sender, recipients and subject. -- Calls: a message, a chat or conversation message, kept with its author and its thread. -- Meetings and tasks: a record, an item that does not fit one of the specialised kinds, searched through its text. +[Graph classes](/essentials/v2/connector-providers#graph-classes) explains each class. **Connections HubSpot creates** @@ -436,44 +367,16 @@ When the meeting ended. It is not searchable and is not the document date. - An activity is linked to that record only if everyone who can read the activity can also read the record. - No links to other tools. -**People and groups it names** +**People and groups** -- The record owner, as an email. -- The sender and recipient of each email. +- Deal, call, meeting and task owner emails appear in searchable text, where HydraDB can identify the person. +- Email senders and recipients can also be attached to email records in the graph. +- Owners stored only on other record types are not identified from that field. - A contact's company name. -**What HydraDB reads from the text** - -Everything in deal descriptions, ticket content, and the text of notes, emails, calls, meetings and tasks. - -There is no per-connector setup for this. Every connector maps its items onto the same shared model, and HydraDB finds people, organizations, projects, products and other entities in the text the same way for every source. To steer what it looks for, use [custom instructions](/essentials/v2/connectors#4-custom-ingestion-instructions). +**Found in the text** -## Permissions - -This connector can carry HubSpot permissions into search. - -- **Who can read an item:** Each deal, contact and company carries HubSpot's owners and the teams that can access it, including parent teams. Its readers are the owners, every member of those teams, every super admin, and the members of the roles you list in `full_visibility_roles`. An activity can be read by everyone who can read any record it is logged on. An activity logged on nothing uses its own owner and teams. -- **How a person is identified:** A HubSpot user's or owner's email address. -- **When permissions cannot be read:** If a record names owners or teams but their readers cannot be worked out, the record gets an access warning, which you can find with `additional_metadata.rbac_warning`. An access rule you set stays in force. Without one, depending on your deployment's setting, the record is either readable by everyone or hidden until its readers can be worked out. A record with no owner or team information is not restricted and gets no warning. - -- Tickets do not carry HubSpot's owner and team access lists, so owners and teams do not restrict them. Set an access rule on the tickets resource if tickets must be private. -- Queues and archived owners give access to no one. -- If an activity's parent record is not synced, the activity can be readable by everyone. Sync the deals, contacts and companies your activities are logged on. -- This is HydraDB's reading of HubSpot owners, teams and roles. It is not a guarantee that HydraDB matches HubSpot's visibility in every case. - -Captured permissions filter search only when **Enforce ACL** is on for the connector. Only a signed-in human workspace owner or writer can turn it on, in the dashboard connector settings. API-key requests must omit `enforce_acl`, including `false`. See [Enforce ACL](/essentials/v2/connectors#enforce-acl). You can also [set your own rule on a resource](/essentials/v2/connectors#set-your-own-rule-on-a-resource). - -Database and collection names decide where content lands; collection names do not authorize access. - -## Keeping in sync - -- **First sync:** Each selected object type reaches back the window set by `lookback_days`, 30 days by default. -- **New and changed items:** Each sync reads records modified since the last sync. Owners, users and teams are read in full on every sync. -- **Edits:** An edited record is read again and replaces its document. -- **Deletions:** Deleted and archived HubSpot records are not removed. They stay in HydraDB. -- If the token lacks the scope for one object type, that type can be skipped while the others sync. - -After the first sync, HydraDB syncs every hour by default. Set `sync_interval_seconds` to change it. +Deal descriptions, ticket content, and the text of notes, emails, calls, meetings and tasks. HydraDB identifies people, organizations, projects and other named things in this text. To steer what it looks for, use [custom instructions](/essentials/v2/connectors#4-custom-ingestion-instructions). ## Not synced @@ -483,16 +386,3 @@ After the first sync, HydraDB syncs every hour by default. Set `sync_interval_se - Files attached to activities. - Custom CRM properties. - Deletions and archived records. - -## Questions this lets you answer - -- What was said on the last call with this contact? -- What amounts and close dates are recorded on the synced deals? -- Which notes and emails are logged on the Acme deal? -- What did the customer write in their last email? - -## Good to know - -- **Stages and pipelines are ids.** Deal stages appear in the text as HubSpot's internal ids, not their display names. Pipelines are not searchable. -- **Results do not link back to HubSpot.** No HubSpot URL is stored. Use `additional_metadata.hubspot_id` to find the record. -- **Older connectors sync every object type.** A connector set up before object types could be selected keeps syncing all of them until you configure it again. diff --git a/essentials/v2/connectors/notion.mdx b/essentials/v2/connectors/notion.mdx index bbb9af31..dddba7cb 100644 --- a/essentials/v2/connectors/notion.mdx +++ b/essentials/v2/connectors/notion.mdx @@ -1,18 +1,26 @@ --- title: "Notion" -description: "Sync the Notion pages and databases you share with HydraDB, one searchable document per page." +description: "Sync page text from selected Notion pages and databases, one document per page. Database properties other than titles are not synced." icon: "/images/connectors/notion-light.svg" --- -The Notion connector reads the databases and top-level pages you share with its integration. Each page becomes one document: a database row, a selected page, and every sub-page under them. +Sync the Notion databases and top-level pages you share with the connector's integration. Each page is one document: a database row, a selected page, and every sub-page under them. Each sub-page links to the page it sits under. -Each sub-page is linked to the page it sits under, so a page tree stays connected. +A database row brings in its title and page text only. Status, owner, dates, tags and other properties are not read. Notion page sharing is not imported, so every synced page is visible to everyone who can query the collection unless you set an access rule. Pages deleted or unshared in Notion stay in HydraDB. + +## Permissions + + +Notion permissions are not imported, so **Enforce ACL** is unavailable for this connector. Every synced item is visible to everyone who can query the collection, unless you [set an access rule on the resource](/essentials/v2/connectors#set-your-own-rule-on-a-resource). + + +API-key requests must omit `enforce_acl`, including `false`. See [ACL on synced content](/essentials/v2/connectors#5-acl-native-rbac-awareness). ## Before you connect -Notion uses an internal integration token. +### Credentials -**Credentials** +Notion uses an internal integration token. A Notion internal integration token. It starts with `secret_` or `ntn_`. @@ -23,42 +31,45 @@ A Notion internal integration token. It starts with `secret_` or `ntn_`. - `Read content`: required. Lets HydraDB search, read pages and blocks, and query databases. - `Read user information without email`: optional. Lets HydraDB check the token and show who created a page. -**Set it up** +### Set it up In Notion, create an internal integration with the Read content capability, and copy its token. - Share each database and page you want synced with the integration. Discovery lists only what the integration can see. + Share each database and page you want synced with the integration. HydraDB can list only what the integration can see. Paste the token as `access_token`. - Discover lists every database the integration can see, and every page that sits at the top of the workspace. Select at least one: a sync needs a selected resource. + HydraDB lists every database the integration can see, and every page that sits at the top of the workspace. Select at least one database or top-level page. +One connector reads what one integration can see. + +To connect more than one Notion workspace, give each connector its own `provider_account_scope`, such as `notion-account-a` and `notion-account-b`. These are labels you choose, not Notion's own account ids, and HydraDB does not check them. Two connectors that share a scope and write to the same collection can overwrite each other's items. See [several accounts from one provider](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). + + + Use provider `notion` with [Create Connector](/api-reference/v2/endpoint/create-connector). Then call [Discover Connector Resources](/api-reference/v2/endpoint/discover-connector-resources) to list what the credentials can reach, and [Configure Connector](/api-reference/v2/endpoint/configure-connector) to choose what to sync. -Create one connector per account, each with that account's own credentials. + -To connect several Notion accounts, give each connector its own `provider_account_scope`, for example `notion-account-a` and `notion-account-b`. Both are caller-provided example identifiers. HydraDB stores the value as given and does not check it against Notion's own account ids. Two connectors that share a scope and write to the same collection can overwrite each other's items. See [several accounts from one provider](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). +## Keeping in sync -## What gets synced +- **First sync:** A database reaches back 30 days by last edited time by default, set by `lookback_days`. A selected page and its sub-pages are read again on every sync. +- **New and changed items:** For a database, rows edited since the last sync are read again in full, with their sub-pages. For a selected page, the whole page tree is read on every sync, and the pages edited since the last sync are sent. +- **Edits:** For a directly selected page tree, edited pages replace their existing documents on the next sync. For a sub-page under a database row, the change is picked up only when the database row is also edited. +- **Deletions:** Pages deleted or unshared in Notion are not removed. They stay searchable in HydraDB. +- Sub-pages are followed up to 10 levels deep, and blocks up to 20 levels deep. +- If a sub-page or block is unavailable, its content is omitted. Other accessible content on the page can still sync. -**What the labels mean** +After the first sync, HydraDB syncs every hour by default. Set `sync_interval_seconds` on the connector to change it. -- **Title:** names the item in results. -- **Searchable:** part of the text a query matches. -- **Date:** the time HydraDB uses for recency. -- **Filter:** a key a query can filter on, typed exactly as shown. -- **Link:** connects this item to another item. -- **Person or group in the graph:** a person or group the knowledge graph attaches the item to. -- **Access:** decides who can read the item. -- **Stored with results:** kept on the document, and shown when you open or inspect it. A search does not match it. -- **Not kept:** the provider has it, and HydraDB does not keep it. +## What gets synced ### Pages @@ -67,142 +78,82 @@ To connect several Notion accounts, give each connector its own `provider_accoun - **Text:** The page title at the top, the creator as an `Author` line, and the plain text of the page's blocks in order, one block per line: paragraphs, headings, bulleted and numbered lists, to-dos, toggles, quotes, callouts and code. Text inside toggles and callouts is included. - **Date:** When the page was last edited. - **Link back:** The page in Notion. -- **Files:** Images and files are kept as links to the original. Text in images can be added when HydraDB's image reading is available. The text of PDF and Word files is not guaranteed to be read. - -**Title** - - -Names the page in results, and is written at the top of its text. - - -**Searchable** +- **Files:** Images and files remain links to the originals. Image text is searchable only when image reading is available in your deployment. Do not rely on PDF or Word attachment text being searchable. - -The block text described above. This is what a query matches. - - - + The creator's display name, or their Notion id if the name cannot be read. It is the `Author` line of the text, and the graph records the page as written by that person. -**Date** - - -When the page was last edited. It is the document date, and it is not part of the text. + +When the page was last edited. Not searchable. -**Filter** - - -The page's Notion id. Limits a query to one page. + +The page's Notion id. Limits a query to one page. Not searchable. - -Limits a query to this connector. + +Limits a query to this connector's pages. Not searchable. - -Always `notion`. + +Always `notion`. Not searchable. -**Link** - - -For a sub-page, the page it sits under. Links the two, so a page tree is connected in the graph. + +For a sub-page, the page it sits under. Links the two, so a page tree is connected in the graph. Not searchable. -**Person or group in the graph** - - -The creator's email, when Notion returns one. It lets the graph recognise the same person across tools. + +The creator's email, when Notion returns one. It lets the graph recognise the same person across tools. Not searchable. - -People @mentioned in the page. The graph records each as mentioned by the page. + +People @mentioned in the page. The graph records each as mentioned by the page. The field itself is not searchable, but the page text it comes from is. - + - + When the page was created. - + The Notion user id of the last editor. It is not turned into a name or a person. - -Property values other than the title, such as status, owner, dates and tags, are not read. - + - -Comments on pages are not read. - +**Example searches** - +- What does our onboarding page say about laptop setup? +- Which Notion pages did Priya create? +- What sub-pages sit under the Engineering Handbook page? ## How it fits into the graph -**What each item becomes** +- Pages use the Page class. -- Pages: a page, a page, article or other document-style content. +[Graph classes](/essentials/v2/connector-providers#graph-classes) explains each class. **Connections Notion creates** - A sub-page to the page it sits under. - No links from Notion pages to other tools. In the other direction, GitHub issues, pull requests and comments that link to a Notion page are linked to it. -**People and groups it names** +**People and groups** - The page's creator, with an email when Notion returns one. - People @mentioned in the page. -**What HydraDB reads from the text** - -Everything in the page text: topics, and people or projects named in plain text rather than @mentioned. Database properties are not read, so structure kept only in database columns is not available. - -There is no per-connector setup for this. Every connector maps its items onto the same shared model, and HydraDB finds people, organizations, projects, products and other entities in the text the same way for every source. To steer what it looks for, use [custom instructions](/essentials/v2/connectors#4-custom-ingestion-instructions). - -## Permissions - - -This connector does not carry Notion permissions into search. Every synced item is visible to everyone who can query the collection, unless you [set an access rule on the resource](/essentials/v2/connectors#set-your-own-rule-on-a-resource). - - -- Notion's page sharing is not read. +**Found in the text** -**Enforce ACL** cannot be turned on for Notion, because it needs a provider that reports `acl_supported: true`. API-key requests must omit `enforce_acl`, including `false`. See [ACL on synced content](/essentials/v2/connectors#5-acl-native-rbac-awareness). - -Database and collection names decide where content lands; collection names do not authorize access. - -## Keeping in sync - -- **First sync:** A database reaches back 30 days by last edited time by default, set by `lookback_days`. A selected page and its sub-pages are walked on every sync. -- **New and changed items:** For a database, rows edited since the last sync are read again in full, with their sub-pages. For a selected page, the whole tree is walked on every sync and pages edited since the last sync are sent. -- **Edits:** An edited page is sent again and replaces its document. A sub-page under a database row is picked up only when the row itself is edited. -- **Deletions:** Pages deleted or unshared in Notion are not removed. They stay searchable in HydraDB. -- Sub-pages are followed up to 10 levels deep, and blocks up to 20 levels deep. -- A sub-page or block that Notion now refuses or cannot find is skipped instead of failing its page. - -After the first sync, HydraDB syncs every hour by default. Set `sync_interval_seconds` to change it. +The page text, including people and projects named in plain text rather than @mentioned. Database properties are not read, so anything kept only in database columns cannot be found. HydraDB identifies people, organizations, projects and other named things in this text. To steer what it looks for, use [custom instructions](/essentials/v2/connectors#4-custom-ingestion-instructions). ## Not synced -- Database property values other than the title. +- Property values other than the title, such as status, owner, dates and tags, are not read. - Comments on pages. - Pages and databases not shared with the integration. - Text in unsupported blocks, such as table rows, equations, embeds and bookmarks. - Deletions: deleted pages stay in HydraDB. - -## Questions this lets you answer - -- What does our onboarding page say about laptop setup? -- Which Notion pages did Priya create? -- Which pages mention Alex? -- What sub-pages sit under the Engineering Handbook page? - -## Good to know - -- **Database columns are not synced.** A database row brings in its title and page text only. Status, owner, dates and tags are not read. -- **Edits to a sub-page under a database row can be missed.** They are picked up when the row itself is edited. Pages you select directly do not have this problem, because they are walked on every sync. -- **Only the last 30 days of a database come in first.** Set `lookback_days` to reach further back. diff --git a/essentials/v2/connectors/slack.mdx b/essentials/v2/connectors/slack.mdx index b59bca9e..ea49c236 100644 --- a/essentials/v2/connectors/slack.mdx +++ b/essentials/v2/connectors/slack.mdx @@ -1,18 +1,30 @@ --- title: "Slack" -description: "Sync messages and thread replies from the Slack channels you choose, with private channels limited to their members." +description: "Sync messages and replies from selected Slack channels. Private-channel restrictions require Enforce ACL and a successful permission read." icon: "/images/connectors/slack.svg" --- -The Slack connector reads the public and private channels you select in one Slack workspace. Each message becomes one document, and each thread reply is its own document linked to the message that started the thread. +Sync messages and replies from the public and private Slack channels you select in one workspace. Each message and each thread reply is one document, and a reply links to the message that started its thread. Shared files are downloaded and their text is searchable with the message when the download and text reading succeed. -Files shared in a message are downloaded and read with it. A private channel's messages can be limited to the channel's members. +Private-channel membership restricts search only when Enforce ACL is on and HydraDB can read the channel's members. Direct messages are not synced. Edits and deletions made in Slack after a message is synced are not picked up. + +## Permissions + +Turn on **Enforce ACL** for this connector to make search follow Slack permissions. With Enforce ACL off, HydraDB does not enforce them. Only a workspace owner or writer signed in to HydraDB can turn it on. API-key requests must omit `enforce_acl`, including `false`. See [Enforce ACL](/essentials/v2/connectors#enforce-acl). + +- **Who can read an item:** A public channel's messages can be read by everyone who can query the collection. A private channel's messages can be read by its members. HydraDB reads this once per channel on each sync. There is no per-message permission. +- **How a person is identified:** A member's email address, in lower case. Bots and deactivated users have no email and are left out. +- **When permissions cannot be read:** If HydraDB cannot read a channel's privacy, members or member emails, the connector reports a permission warning. On HydraDB Cloud, with Enforce ACL on, such an item follows the access rule you set on its resource. With no rule, it is hidden from search. Self-hosted deployments can be configured differently. Permission warnings appear in [Get Connector Status](/api-reference/v2/endpoint/get-connector-status). +- A private channel with more than 1,000 members who have emails, or more than 3,000 members in all, cannot be captured. Set an access rule on such a channel. +- Without `users:read.email`, permissions cannot be captured for any private channel. + +You can also [set your own rule on a resource](/essentials/v2/connectors#set-your-own-rule-on-a-resource). ## Before you connect -Slack uses a token from a Slack app installed in your workspace. A bot token or a user token works. +### Credentials -**Credentials** +Slack uses a token from a Slack app installed in your workspace. A bot token or a user token works. A Slack bot token, which starts with `xoxb-`, or a user token, which starts with `xoxp-`. @@ -20,9 +32,9 @@ A Slack bot token, which starts with `xoxb-`, or a user token, which starts with **Scopes to add to the Slack app** -- `channels:read`: lists public channels in the channel picker. +- `channels:read`: lists public channels for you to select. - `channels:history` -- `groups:read`: lists private channels in the channel picker. +- `groups:read`: lists private channels for you to select. - `groups:history` - `users:read` - `users:read.email`: without it, permissions cannot be captured for any private channel. @@ -30,7 +42,7 @@ A Slack bot token, which starts with `xoxb-`, or a user token, which starts with If neither `channels:read` nor `groups:read` is granted, connecting fails with a message that names the missing scope. -**Set it up** +### Set it up @@ -43,154 +55,135 @@ If neither `channels:read` nor `groups:read` is granted, connecting fails with a Paste the token as `access_token`. - Discover lists every public and private channel that is not archived and that the token can see, with whether it is private, whether the app is a member, and its member count. Select the channels to sync. + HydraDB lists the non-archived channels the token can see. For each channel, it shows privacy, app membership and member count. Select the channels to sync. +One token covers one Slack workspace. + +To connect more than one Slack workspace, give each connector its own `provider_account_scope`, such as `slack-account-a` and `slack-account-b`. These are labels you choose, not Slack's own account ids, and HydraDB does not check them. Two connectors that share a scope and write to the same collection can overwrite each other's items. See [several accounts from one provider](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). + + + Use provider `slack` with [Create Connector](/api-reference/v2/endpoint/create-connector). Then call [Discover Connector Resources](/api-reference/v2/endpoint/discover-connector-resources) to list what the credentials can reach, and [Configure Connector](/api-reference/v2/endpoint/configure-connector) to choose what to sync. -Create one connector per account, each with that account's own credentials. One token covers one Slack workspace. + -To connect several Slack accounts, give each connector its own `provider_account_scope`, for example `slack-account-a` and `slack-account-b`. Both are caller-provided example identifiers. HydraDB stores the value as given and does not check it against Slack's own account ids. Two connectors that share a scope and write to the same collection can overwrite each other's items. See [several accounts from one provider](/essentials/v2/connectors#6-connect-several-accounts-from-one-provider). +## Keeping in sync -## What gets synced +- **First sync:** A newly selected channel reads back the window set by `lookback_days`, 30 days by default. +- **New and changed items:** New messages and replies are synced from recent history. New replies on older threads are checked every 6 hours by default. That check covers channel history over multiple syncs, so older replies may arrive later. +- **Edits:** A routine sync does not pick up an edit to a message that is already synced. +- **Deletions:** Deleted messages are not removed. A message deleted in Slack stays searchable in HydraDB. -**What the labels mean** +After the first sync, HydraDB syncs every hour by default. Set `sync_interval_seconds` on the connector to change it. -- **Title:** names the item in results. -- **Searchable:** part of the text a query matches. -- **Date:** the time HydraDB uses for recency. -- **Filter:** a key a query can filter on, typed exactly as shown. -- **Link:** connects this item to another item. -- **Person or group in the graph:** a person or group the knowledge graph attaches the item to. -- **Access:** decides who can read the item. -- **Stored with results:** kept on the document, and shown when you open or inspect it. A search does not match it. -- **Not kept:** the provider has it, and HydraDB does not keep it. +## What gets synced ### Messages - **One document:** One Slack message: a message posted in a channel, or a single reply in a thread. -- **Title:** The channel name with `#`, a colon and the message's first line, cut to about 80 characters, for example `#general: Deploy is done`. A reply reads `#general thread: ...`. A message with no text is titled `Slack message`. +- **Title:** The channel name with `#`, a colon and the message's first line, cut to about 80 characters, for example `#general: Deploy is done`. A reply reads `#general thread: ...`. A message with no text is titled `Slack message`. When a message has text, search matches the message, not this title, so a channel name in a query does not reliably limit results to that channel. - **Text:** The message text, with mentions turned into display names. Then the pretext, title and text of any legacy attachments, and one `[file: name]` line per shared file. The sender is written as a `From` line and the time as a `Sent` line. - **Date:** The message's Slack timestamp. - **Link back:** A Slack permalink to the message. A reply links to itself inside its thread. Empty if the workspace address could not be read. - **Files:** Each shared file is downloaded and read, and its text becomes searchable with the message. A file is skipped if Slack gave no download address, the download fails, or the file is too large. -**Title** - - -Labels the message with its channel and opening words in results. When the message has text, search matches the message itself, so the channel name in the title is not guaranteed to match a query. + +The display name of the person or bot that posted, written as the `From` line. The graph records the message as sent by that person. If the name could not be read, the raw Slack id is kept, and later syncs do not go back to fix it. -**Searchable** - - -The text described above. This is what a query matches, and what HydraDB reads for people and topics. - - - -The display name of the person or bot that posted, or the raw Slack id if the name could not be read. It is the `From` line, and the graph records the message as sent by that person. - - - + The text read from each shared file, searchable with the message. -**Date** - - -The message time. It is the document date used for recency, and the `Sent` line of the text. + +The message time, written as the `Sent` line. -**Filter** - - -The message's Slack timestamp. Picks out one exact message. + +Display names of people mentioned in the message. The graph records each as mentioned. - -The timestamp of the thread's first message, empty outside a thread. Limits a query to one thread. + +The message's Slack timestamp. Picks out one exact message. Not searchable. - -Slack's message subtype, such as `bot_message` or `file_share`. Includes or excludes bot posts and file shares. + +The timestamp of the thread's first message, empty outside a thread. Limits a query to one thread. Not searchable. - -The bot id when a bot posted the message. Includes or excludes one bot's messages. + +Slack's message subtype, such as `bot_message` or `file_share`. Includes or excludes bot posts and file shares. Not searchable. - -How many replies the thread has. Finds thread starters by how many replies they drew. + +The bot id when a bot posted the message. Includes or excludes one bot's messages. Not searchable. - -Limits a query to this connector. Access rules you set on a channel are matched to messages through it. + +How many replies the thread has. Finds thread starters by how many replies they drew. Not searchable. - -Always `slack`. + +Limits a query to this connector's messages. Not searchable. -**Link** - - -For a reply, the message that started its thread. Joins the reply to that message, so the whole conversation can be returned together. + +Always `slack`. Not searchable. - -The thread a message belongs to. Groups every message of one thread together in the graph. + +For a reply, the message that started its thread. Joins the reply to that message, so the whole conversation can be returned together. Not searchable. -**Person or group in the graph** - - -Display names of people mentioned in the message. The graph records each as mentioned. The names are searchable as part of the message text. + +The thread a message belongs to. Groups every message of one thread together in the graph. Not searchable. -**Access** - - -The selected channel. For a private channel, its members decide who can read its messages. + +The selected channel. For a private channel, its members decide who can read its messages. Not searchable. - + - + How many legacy attachments the message had. - + How many shared files Slack listed, including any that could not be downloaded. - + Whether Slack marked the message as edited when it was read. Later edits are not picked up automatically. - + The display name of the editor, when edited. The editor is not added to the graph as a person. - -The edit time, when edited. The document date stays the original message time. + +The edit time, when edited. The result date stays the original message time. - + The details Slack supplied for each shared file, kept even when a file's text could not be read. - -Reactions are not read. - - +**Example searches** + +- What did the team decide about the release last week? +- What did Priya say in the thread about the pricing change? +- Which messages were posted by the alerts bot? + ## How it fits into the graph -**What each item becomes** +- Messages use the Message class. -- Messages: a message, a chat or conversation message, kept with its author and its thread. +[Graph classes](/essentials/v2/connector-providers#graph-classes) explains each class. **Connections Slack creates** @@ -198,58 +191,20 @@ Reactions are not read. - Every message to its thread, including a message nobody replied to. - No links to items in other tools. -**People and groups it names** +**People and groups** - The sender of each message. - People mentioned in a message. - An editor is kept with the message but not added to the graph. -**What HydraDB reads from the text** - -Topics, decisions, people and organisations named in prose, in the message text, legacy attachment text and shared file text. Each reply is read together with the text of its thread's first message. - -There is no per-connector setup for this. Every connector maps its items onto the same shared model, and HydraDB finds people, organizations, projects, products and other entities in the text the same way for every source. To steer what it looks for, use [custom instructions](/essentials/v2/connectors#4-custom-ingestion-instructions). - -## Permissions - -This connector can carry Slack permissions into search. - -- **Who can read an item:** A public channel's messages can be read by the whole workspace. A private channel's messages can be read by its members. HydraDB reads this once per channel on each sync; there is no per-message permission. -- **How a person is identified:** A member's email address, in lower case. Bots and deactivated users have no email and are left out. -- **When permissions cannot be read:** If HydraDB cannot read a channel's privacy, members or member emails, an access rule you set on that channel stays in force. Without a rule, the connector status shows a permission warning, and depending on your deployment's setting the messages either stay readable or are hidden until permissions can be read. - -- A private channel with more than 1,000 members who have emails, or more than 3,000 members in all, cannot be captured. Set an access rule on such a channel. -- Without `users:read.email`, permissions cannot be captured for any private channel. - -Captured permissions filter search only when **Enforce ACL** is on for the connector. Only a signed-in human workspace owner or writer can turn it on, in the dashboard connector settings. API-key requests must omit `enforce_acl`, including `false`. See [Enforce ACL](/essentials/v2/connectors#enforce-acl). You can also [set your own rule on a resource](/essentials/v2/connectors#set-your-own-rule-on-a-resource). - -Database and collection names decide where content lands; collection names do not authorize access. - -## Keeping in sync - -- **First sync:** A newly selected channel reads back the window set by `lookback_days`, 30 days by default. -- **New and changed items:** Each sync reads recent history for new messages, and new replies on threads whose latest reply moved. A second pass, every 6 hours by default, walks the channel's whole history in steps to find new replies on older threads. -- **Edits:** A routine sync does not pick up an edit to a message that is already indexed. -- **Deletions:** Deleted messages are not removed. A message deleted in Slack stays searchable in HydraDB. +**Found in the text** -After the first sync, HydraDB syncs every hour by default. Set `sync_interval_seconds` to change it. +The message text, legacy attachment text and shared file text. Each reply is read together with the text of its thread's first message. HydraDB identifies people, organizations, projects and other named things in this text. To steer what it looks for, use [custom instructions](/essentials/v2/connectors#4-custom-ingestion-instructions). ## Not synced -- Archived channels: discovery does not offer them. +- Archived channels: HydraDB does not list them for selection. - Direct messages and group direct messages. - System messages: joins, leaves, renames, topic and purpose changes, pins, bots being added or removed, and thread broadcasts. -- Edits and deletions made after a message was indexed. +- Edits and deletions made after a message was synced. - Reactions. - -## Questions this lets you answer - -- What did the team decide about the release last week? -- What did Priya say in the thread about the pricing change? -- Which messages were posted by the alerts bot? -- What does the PDF shared in the design channel say about the new layout? - -## Good to know - -- **Naming a channel does not filter to it.** When a message has text, search matches the message, not its `#channel` title. A channel name in a query does not reliably limit results to that channel. -- **A name that could not be read stays an id.** If HydraDB could not read a person's name, the message keeps the raw Slack id, and later syncs do not go back to fix it. diff --git a/essentials/v2/connectors/stripe.mdx b/essentials/v2/connectors/stripe.mdx index 6f874c62..90a2c468 100644 --- a/essentials/v2/connectors/stripe.mdx +++ b/essentials/v2/connectors/stripe.mdx @@ -1,18 +1,30 @@ --- title: "Stripe" -description: "Sync customers, invoices, subscriptions and charges from a Stripe account, each linked to its customer." +description: "Sync customers, invoices, subscriptions and charges from one Stripe account. Invoices, subscriptions and charges link to their customer." icon: "/images/connectors/stripe.svg" --- -The Stripe connector reads one Stripe account. Customers, invoices, subscriptions and charges each become one document with a readable summary, and an invoice carries its line items. +Sync customers, invoices, subscriptions and charges from one Stripe account. Each record is one document with a readable summary, and an invoice carries its line items. Invoices, subscriptions and charges link to their customer. -Invoices, subscriptions and charges are linked to the customer they belong to. +Stripe permissions are not imported, so every synced record is visible to everyone who can query the collection unless you set an access rule. Other Stripe objects, such as products, refunds and payouts, are not synced. Deletions in Stripe are not detected. + + +Searchable amounts assume two decimal places. For a currency such as JPY, an amount of 100 is shown as 1.00, so the searchable text understates it by a factor of 100. Original stored amounts are unchanged. + + +## Permissions + + +Stripe permissions are not imported, so **Enforce ACL** is unavailable for this connector. Every synced item is visible to everyone who can query the collection, unless you [set an access rule on the resource](/essentials/v2/connectors#set-your-own-rule-on-a-resource). + + +API-key requests must omit `enforce_acl`, including `false`. See [ACL on synced content](/essentials/v2/connectors#5-acl-native-rbac-awareness). ## Before you connect -Stripe uses a secret key together with the account id. +### Credentials -**Credentials** +Stripe uses a secret key together with the account id. A Stripe secret key, `sk_live_...` or `sk_test_...`, with read access to the account's resources. @@ -22,69 +34,63 @@ A Stripe secret key, `sk_live_...` or `sk_test_...`, with read access to the acc The Stripe account id, `acct_...`. -**Set it up** +### Set it up Paste the secret key as `client_secret` and the account id as `account_id`. - Discover offers one `All data` resource for the account. There are no smaller parts to pick. Select it. + Select the account's `All data` resource. It syncs customers, invoices, subscriptions and charges together. You cannot select these record types separately. -Use provider `stripe` with [Create Connector](/api-reference/v2/endpoint/create-connector). Then call [Discover Connector Resources](/api-reference/v2/endpoint/discover-connector-resources) to list what the credentials can reach, and [Configure Connector](/api-reference/v2/endpoint/configure-connector) to choose what to sync. +One connector reads one Stripe account. A test-mode key reads test data and a live-mode key reads live data. -Create one connector per account, each with that account's own credentials. One connector reads one Stripe account. A test-mode key reads test data and a live-mode key reads live data. + -## What gets synced +Use provider `stripe` with [Create Connector](/api-reference/v2/endpoint/create-connector). Then call [Discover Connector Resources](/api-reference/v2/endpoint/discover-connector-resources) to list what the credentials can reach, and [Configure Connector](/api-reference/v2/endpoint/configure-connector) to choose what to sync. - -Amounts in the text are shown in major units, assuming two decimal places. For a zero-decimal currency, the amounts read 100 times too small. The stored numbers are unchanged. - + -**What the labels mean** +## Keeping in sync -- **Title:** names the item in results. -- **Searchable:** part of the text a query matches. -- **Date:** the time HydraDB uses for recency. -- **Filter:** a key a query can filter on, typed exactly as shown. -- **Link:** connects this item to another item. -- **Person or group in the graph:** a person or group the knowledge graph attaches the item to. -- **Access:** decides who can read the item. -- **Stored with results:** kept on the document, and shown when you open or inspect it. A search does not match it. -- **Not kept:** the provider has it, and HydraDB does not keep it. +- **First sync:** Reaches back the window set by `lookback_days`, 30 days by default. +- **New and changed items:** Each sync lists records created in the sync window, and reads Stripe's events for updates in the same window. +- **Edits:** An update, such as an invoice being paid, arrives as an event and replaces the record's document. +- **Deletions:** Deletions in Stripe are not detected. A deleted record stays in HydraDB. +- Updates are read from events that reach back 30 days. After a long pause, updates to older records can be missed. -### On every Stripe document +After the first sync, HydraDB syncs every hour by default. Set `sync_interval_seconds` on the connector to change it. -**Date** +## What gets synced - -When the record was created. It is the document date, and it stays the creation time after the record is updated. - +### On every Stripe item -**Filter** + +When the record was created. It stays the result date after the record is updated, so ranking by date follows creation time. Not searchable. + - -The Stripe id: `cus_...`, `in_...`, `sub_...` or `ch_...`. Targets one record. A customer's id is also what its invoices, subscriptions and charges link to. + +The Stripe id: `cus_...`, `in_...`, `sub_...` or `ch_...`. Targets one record. Not searchable. - -Limits a query to this connector. + +Limits a query to this connector's records. Not searchable. - -Always `stripe`. + +Always `stripe`. Not searchable. - + - + The record type: `customers`, `invoices`, `subscriptions` or `charges`. - -Every other field Stripe returns for the record, such as an address, metadata or invoice settings. A search does not match them, and they are not filters. + +Every other field Stripe returns for the record, such as a customer's address, metadata or invoice settings. Kept for inspection only. A query does not match them and cannot filter on them. @@ -93,25 +99,11 @@ Every other field Stripe returns for the record, such as an address, metadata or - **One document:** One customer. - **Title:** The customer's name, or their email when there is no name. -- **Text:** The customer's description, then `Name`, `Email`, `Phone` and `Balance` lines, with the balance in its currency. +- **Text:** The customer's description, then `Name`, `Email`, `Phone` and `Balance` lines, with the balance in its currency. The title is searchable too. - **Date:** When the customer was created. - **Link back:** None. -**Title** - - -Names the customer in results. - - -**Searchable** - - -The description, name, email, phone and balance, as described above. - - -**Person or group in the graph** - - + The customer's email. It identifies the customer as a person in the graph, appears in the `Email` line, and is the title when there is no name. @@ -119,93 +111,61 @@ The customer's email. It identifies the customer as a person in the graph, appea - **One document:** One invoice, with its line items. - **Title:** `Invoice - `, using the customer's name or email. -- **Text:** The invoice description, then `Customer`, `Email`, `Status`, `Total`, `Amount due`, `Amount paid`, `Due date` and `Line items` lines. Each line item shows its description and amount. +- **Text:** The invoice description, then `Customer`, `Email`, `Status`, `Total`, `Amount due`, `Amount paid`, `Due date` and `Line items` lines. Each line item shows its description and amount. The title is searchable too. - **Date:** When the invoice was created. - **Link back:** None. - **Files:** Invoice PDFs are not downloaded. -**Title** - - -Names the invoice in results. - - -**Searchable** - - -The description, customer, status, amounts, due date and line items, as described above. - - - + Each line's description and amount, written into the `Line items` line. -**Link** - - -The customer id. Links the invoice to its customer's document. + +The customer id. Links the invoice to its customer. The id itself is not searchable. The customer's name or email is part of the text. ### Subscriptions - **One document:** One subscription. - **Title:** The plan's nickname or name, or the plan id, followed by `subscription`. -- **Text:** `Plan`, `Status`, `Amount`, `Quantity`, `Customer`, `Started` and `Current period end` lines. `Amount` is the plan price with its currency and interval, for example `49.00 USD/month`. `Customer` is the customer's name, or the id when the name is not known. +- **Text:** `Plan`, `Status`, `Amount`, `Quantity`, `Customer`, `Started` and `Current period end` lines. `Amount` is the plan price with its currency and interval, for example `49.00 USD/month`. The title is searchable too. - **Date:** When the subscription was created. - **Link back:** None. -**Title** - - -The subscription's plan. Its nickname or name is the title, and its price and interval form the `Amount` line. - - -**Searchable** - - -The plan, status, price, quantity, customer and period dates, as described above. + +The plan nickname or name, or the plan id when neither is available, forms the title followed by `subscription`. Its price and billing interval form the searchable `Amount` line. Product or price details that live only in other fields are not searchable. -**Link** - - -The customer id. Links the subscription to its customer's document. The customer's name appears in the text. + +The customer id links the subscription to its customer. The searchable `Customer` line uses the customer's name when known, or the id otherwise. ### Charges - **One document:** One charge. - **Title:** The charge description, or `Charge - ` when there is none. -- **Text:** The charge description, then `Customer`, `Amount`, `Status`, `Receipt email` and `Failure message` lines. `Customer` is the first of the billing name, billing email, receipt email, customer name and customer id that is present. +- **Text:** The charge description, then `Customer`, `Amount`, `Status`, `Receipt email` and `Failure message` lines. `Customer` is the first of the billing name, billing email, receipt email, customer name and customer id that is present. The title is searchable too. - **Date:** When the charge was created. - **Link back:** None. -**Title** - - -Names the charge in results. - - -**Searchable** - - -The description, payer, amount, status and failure reason, as described above. + +The customer id. Links the charge to its customer. The id itself is not searchable unless it is the only customer detail, in which case it fills the `Customer` line. -**Link** +**Example searches** - -The customer id. Links the charge to its customer's document. - +- What status, amount due and amount paid are recorded for Acme Corp's invoice INV-0042? +- What plan is jane@example.com subscribed to, and when does the current period end? +- Why did the charge for jane@example.com fail? ## How it fits into the graph -**What each item becomes** +- Customers use the Record class. +- Invoices use the Record class. +- Subscriptions use the Record class. +- Charges use the Record class. -- Customers: a record, an item that does not fit one of the specialised kinds, searched through its text. -- Invoices: a record, an item that does not fit one of the specialised kinds, searched through its text. -- Subscriptions: a record, an item that does not fit one of the specialised kinds, searched through its text. -- Charges: a record, an item that does not fit one of the specialised kinds, searched through its text. +[Graph classes](/essentials/v2/connector-providers#graph-classes) explains each class. **Connections Stripe creates** @@ -215,35 +175,13 @@ The customer id. Links the charge to its customer's document. - Charges are not linked to their invoice, and invoices are not linked to their subscription. - No links to other tools. -**People and groups it names** +**People and groups** - Each customer, identified by their email. -**What HydraDB reads from the text** - -Products and plans as entities, and anything written in descriptions. - -There is no per-connector setup for this. Every connector maps its items onto the same shared model, and HydraDB finds people, organizations, projects, products and other entities in the text the same way for every source. To steer what it looks for, use [custom instructions](/essentials/v2/connectors#4-custom-ingestion-instructions). - -## Permissions - - -This connector does not carry Stripe permissions into search. Every synced item is visible to everyone who can query the collection, unless you [set an access rule on the resource](/essentials/v2/connectors#set-your-own-rule-on-a-resource). - - -**Enforce ACL** cannot be turned on for Stripe, because it needs a provider that reports `acl_supported: true`. API-key requests must omit `enforce_acl`, including `false`. See [ACL on synced content](/essentials/v2/connectors#5-acl-native-rbac-awareness). +**Found in the text** -Database and collection names decide where content lands; collection names do not authorize access. - -## Keeping in sync - -- **First sync:** Reaches back the window set by `lookback_days`, 30 days by default. -- **New and changed items:** Each sync lists records created in the sync window, and reads Stripe's events for updates in the same window. -- **Edits:** An update, such as an invoice being paid, arrives as an event and replaces the record's document. -- **Deletions:** Deletions in Stripe are not detected. A deleted record stays in HydraDB. -- Updates are read from events that reach back 30 days. After a long pause, updates to older records can be missed. - -After the first sync, HydraDB syncs every hour by default. Set `sync_interval_seconds` to change it. +Descriptions, plan names and the rest of each record's summary. HydraDB identifies people, organizations, projects and other named things in this text. To steer what it looks for, use [custom instructions](/essentials/v2/connectors#4-custom-ingestion-instructions). ## Not synced @@ -251,15 +189,3 @@ After the first sync, HydraDB syncs every hour by default. Set `sync_interval_se - Events, payouts, refunds, disputes, balance transactions and other Stripe objects. - Deletions in Stripe. - Invoice PDFs and hosted invoice pages. - -## Questions this lets you answer - -- What status, amount due and amount paid are recorded for Acme Corp's invoice INV-0042? -- What plan is jane@example.com subscribed to, and when does the current period end? -- Why did the charge for jane@example.com fail? -- What line items were on Acme Corp's last invoice? - -## Good to know - -- **Recency follows creation time.** A record's date stays its creation time after it is updated, so recency ranks records by when they were created. -- **Plan details come from the plan only.** Product or price details that live only in other fields are not searchable. diff --git a/scripts/connector_pages/bigquery.json b/scripts/connector_pages/bigquery.json index 86eebbdd..d7abc001 100644 --- a/scripts/connector_pages/bigquery.json +++ b/scripts/connector_pages/bigquery.json @@ -1,8 +1,8 @@ { "description": "Sync rows from the BigQuery tables you choose, one searchable document per row.", - "intro": [ - "The BigQuery connector reads the tables you select in one Google Cloud project. Each row becomes one document. Its text lists every non-empty column as a label and a value, and the document is grouped under its table.", - "You decide, table by table, how HydraDB finds new and changed rows: a timestamp column, BigQuery's change history, or a full read of the table on every sync." + "opening": [ + "Sync rows from the BigQuery tables you select in one Google Cloud project. Each row is one document. Every non-empty column of the row becomes searchable text, including sensitive columns.", + "BigQuery access controls are not imported, so every synced row is visible to everyone who can query the collection unless you set an access rule. Rows deleted in BigQuery stay in HydraDB. You choose, table by table, how new and changed rows are found: a timestamp column, BigQuery's change history, or a full read of the table on every sync." ], "callouts": { "connect": { @@ -10,82 +10,89 @@ "text": "Set a primary key for every table you select. HydraDB updates a row's document by its key. If a table has no real unique key, different rows can be treated as the same document and replace each other." } }, + "permissions": { + "carried": false, + "notes": [ + "BigQuery dataset, table, row-level and column-level access controls are not reproduced." + ] + }, "connect": { - "auth": "BigQuery uses a Google Cloud service account. There is no sign-in flow: you paste credentials. Supply one complete set: a service-account key file, a service-account email with its private key, or an OAuth client id, client secret and refresh token.", + "auth": "Use a service-account JSON key, a service-account email and private key, or a pre-issued OAuth client id, client secret and refresh token. Paste one complete credential set. HydraDB does not offer an interactive sign-in flow. The JSON key is the recommended option.", "credentials": [ { "name": "credentials_json", "type": "secret string", - "required": false, - "text": "The service account's JSON key file, pasted whole. This is the recommended option." - }, - { - "name": "client_email", - "type": "secret string", - "required": false, - "text": "The service account's email. Use it together with `private_key` instead of the key file." - }, - { - "name": "private_key", - "type": "secret string", - "required": false, - "text": "The service account's private key. Use it together with `client_email`." - }, - { - "name": "client_id", - "type": "secret string", - "required": false, - "text": "An OAuth client id. Valid only together with `client_secret` and `refresh_token`." - }, + "text": "The service account's JSON key file, pasted whole." + } + ], + "alternatives": [ { - "name": "client_secret", - "type": "secret string", - "required": false, - "text": "An OAuth client secret. Valid only together with `client_id` and `refresh_token`." + "title": "Service-account email and private key", + "credentials": [ + { + "name": "client_email", + "type": "secret string", + "text": "The service account's email." + }, + { + "name": "private_key", + "type": "secret string", + "text": "The service account's private key." + } + ] }, { - "name": "refresh_token", - "type": "secret string", - "required": false, - "text": "An OAuth refresh token you issued beforehand. It is required in the OAuth option, because a client id and secret alone cannot reach BigQuery." + "title": "OAuth client and refresh token", + "credentials": [ + { + "name": "client_id", + "type": "secret string", + "text": "An OAuth client id." + }, + { + "name": "client_secret", + "type": "secret string", + "text": "An OAuth client secret." + }, + { + "name": "refresh_token", + "type": "secret string", + "text": "An OAuth refresh token you issued beforehand. A client id and secret alone cannot reach BigQuery, so this option needs all three fields." + } + ] } ], - "credentials_note": "Each credential field is optional on its own, but one of the three options must be complete.", "settings": [ { "name": "project_id", "type": "string", - "required": false, "text": "The Google Cloud project to read. Required unless the key file already names a project." }, { "name": "location", "type": "string", - "required": false, "text": "The BigQuery location to run query jobs in." }, { "name": "datasets", "type": "string list", - "required": false, "text": "Limits discovery and sync to these datasets." - }, + } + ], + "advanced_settings": [ { "name": "replication_key", "type": "string", - "required": false, - "text": "A timestamp column to use as the sync cursor for every selected table that has it. A table's own setting overrides it." + "text": "A timestamp column used to find changed rows, called the sync cursor, for every selected table that has it. A table's own settings override it." }, { "name": "change_history", "type": "string", - "required": false, - "text": "`appends` or `changes`, used for tables that still have no cursor column. A table's own setting overrides it." + "text": "`appends` or `changes`, used for tables that have no cursor column. A table's own settings override it." }, { "name": "detect_replication_from_partitioning", "type": "boolean", - "required": false, "text": "Off by default. When on, column-partitioned tables sync incrementally on their partition column." } ], @@ -111,15 +118,15 @@ }, { "title": "Create the connector", - "text": "Paste the key as `credentials_json`. Add `project_id` only if the key file does not name a project. To narrow what discovery shows, list `datasets`." + "text": "Paste the key as `credentials_json`. Add `project_id` only if the key file does not name a project. To narrow which tables HydraDB lists, set `datasets`." }, { "title": "Select tables", - "text": "Discover lists the tables in the project, narrowed by `datasets` when you set it. Select the tables to sync. Each selected table becomes its own set of documents, one per row." + "text": "HydraDB lists the tables in the project, narrowed by `datasets` when you set it. Select the tables to sync. Each selected table becomes its own set of documents, one per row." }, { - "title": "Choose a sync mode for each table", - "text": "If the table has a timestamp column that changes on every insert and update, such as `updated_at`, make it the table's `replication_key`. If rows are only ever inserted, set `change_history` to `appends`. If rows are also updated and there is no such column, set `change_history` to `changes`. A table with none of these is read in full on every sync. If a table has both a cursor and change history, change history wins." + "title": "Choose how each table finds changes", + "text": "If the table has a timestamp column that changes on every insert and update, such as `updated_at`, make it the table's `replication_key`. This column is the table's sync cursor. If rows are only ever inserted, set `change_history` to `appends`. If rows are also updated and there is no such column, set `change_history` to `changes`. A table with none of these is read in full on every sync, which is expensive on large tables." }, { "title": "Turn on change history for tables set to changes", @@ -127,7 +134,7 @@ }, { "title": "Set each table's primary key", - "text": "Add `primary_keys` with the column or columns that identify one row, unless the table already declares a primary key." + "text": "Add `primary_keys` with the column or columns that identify one row, unless the table already has a primary key defined in BigQuery." }, { "title": "Send the settings when you configure", @@ -136,146 +143,159 @@ ], "examples": [ { - "intro": "One `table_configs` entry per table, for each sync mode:", + "intro": "One `table_configs` entry per table, for each way of finding changes. A table's own `change_history` overrides its cursor setting. Otherwise, a usable table or connector-wide cursor takes priority over the connector-wide `change_history` fallback.", "tabs": [ { "title": "Timestamp cursor", - "language": "json", - "code": "{\"table\": \"sales.orders\", \"replication_key\": \"updated_at\", \"primary_keys\": [\"order_id\"]}" + "json": { + "table": "sales.orders", + "replication_key": "updated_at", + "primary_keys": [ + "order_id" + ] + } }, { "title": "Inserts only", - "language": "json", - "code": "{\"table\": \"web.page_views\", \"change_history\": \"appends\", \"primary_keys\": [\"event_id\"]}" + "json": { + "table": "web.page_views", + "change_history": "appends", + "primary_keys": [ + "event_id" + ] + } }, { "title": "Inserts and updates", - "language": "json", - "code": "{\"table\": \"crm.accounts\", \"change_history\": \"changes\", \"primary_keys\": [\"account_id\"]}" + "json": { + "table": "crm.accounts", + "change_history": "changes", + "primary_keys": [ + "account_id" + ] + } }, { - "title": "Changes only, no backfill", - "language": "json", - "code": "{\"table\": \"crm.accounts\", \"change_history\": \"changes\", \"snapshot\": \"none\", \"primary_keys\": [\"account_id\"]}" + "title": "Changes only, skip existing rows", + "json": { + "table": "crm.accounts", + "change_history": "changes", + "snapshot": "none", + "primary_keys": [ + "account_id" + ] + } }, { "title": "Full read", - "language": "json", - "code": "{\"table\": \"ref.countries\", \"primary_keys\": [\"code\"]}" + "json": { + "table": "ref.countries", + "primary_keys": [ + "code" + ] + } } ] } ], "account": "One connector reads one Google Cloud project." }, + "sync": { + "first_sync": "A table with a cursor column reads back the window set by `lookback_days`, 30 days by default. A change-history table starts capturing changes at its first sync, not when you create the connector, and then loads its existing rows in slices of 1,000 per sync. Set `snapshot` to `none` to skip existing rows, or to a number to load at most that many rows, in no particular order. With `none`, changes between creating the connector and its first sync are not recovered. While existing rows are loading, deleting rows in BigQuery can cause other rows to be missed.", + "changes": "A cursor table picks up rows whose cursor value moved past the last sync. A `changes` table reads BigQuery's change history, about 11 minutes behind the current time. An `appends` table sees new rows only. A table with neither is read in full on every sync, and rows whose content did not change are skipped.", + "edits": "An edited row updates the same document, as long as its key is unique. In `appends` mode, edits to existing rows are never seen.", + "deletes": "Deleted rows are not removed. A row deleted in BigQuery stays searchable in HydraDB.", + "notes": [ + "BigQuery keeps change history for its time-travel window, 2 to 7 days. If a change-history table is not synced within that window, for example while the connector is paused, the table is skipped with an error on each sync until it is loaded again from the start.", + "A dataset name containing `__` can display incorrectly as a table label. Which table a row belongs to is not affected." + ] + }, "documents": [ { "name": "Table rows", "kind": "custom", "one_document": "One row of a selected table, as long as the table's key is unique. Rows that share a key replace one another.", - "title": "The first non-empty column named `name`, `title`, `subject`, `summary` or `email`. Otherwise the first non-empty column that is not a number, in alphabetical column order, then the first number column. A row with none of these is titled with its table and row key.", - "text": "The title on the first line. Then every non-empty column in alphabetical order, as `Column Name: value`: underscores become spaces and words are capitalised. Lists of values are joined with commas. Nested records are written as compact JSON.", - "date": "The first of `updated_at`, `modified_at`, `last_modified`, `updated`, `created_at`, `created`, `timestamp`, `event_time` and `inserted_at` that holds a TIMESTAMP or epoch-seconds value. A row with none has no date. DATETIME columns carry no time zone and are not used.", + "title": "The first non-empty column named `name`, `title`, `subject`, `summary` or `email`. Otherwise, the first non-empty, non-numeric scalar column in alphabetical column order is used. If there is none, the first numeric column is used. A row with none of these is titled with its table and row key.", + "text": "The title on the first line. Then every non-empty column in alphabetical order, as `Column Name: value`: underscores become spaces and words are capitalised. Lists of scalar values are joined with commas. Nested records and lists of records are written as compact JSON. In change-history mode, each row also has `_change_type` and `_change_timestamp` columns, and both appear in the text.", + "date": "The first recognised time column with an RFC3339 timestamp or epoch-seconds value sets the result date. The columns are checked in this order: `updated_at`, `modified_at`, `last_modified`, `updated`, `created_at`, `created`, `timestamp`, `event_time` and `inserted_at`. BigQuery DATETIME values have no time zone and do not set it. A row with none has no date.", "link_back": "None.", "files": "None. Column values are kept as text only.", "attributes": [ { - "name": "Row text", - "purposes": [ - "Searchable" - ], - "text": "Every non-empty column of the row, written as described above. This is what a query matches." - }, - { - "name": "title", - "purposes": [ - "Title", - "Searchable" + "name": "Row columns", + "uses": [ + "Searchable text" ], - "text": "Names the row in results. It is also the first line of the row text, so a query matches it." + "text": "Every non-empty column is searchable as text. Columns are not individual query filters. A table name in a text query does not reliably select that table. Use `additional_metadata.container_name` or `additional_metadata.container_id`." }, { "name": "updated_at", - "purposes": [ - "Date" + "uses": [ + "Result date" ], - "text": "The value of the first recognised time column. It is the document date used for recency. A sync cursor with another name does not set it." + "text": "The value of the first recognised time column, used as the result date. A sync cursor with another name does not set it. This attribute is not searchable, but a source column of the same name is part of the row text like any other column." }, { "name": "additional_metadata.container_name", - "purposes": [ - "Filter" + "uses": [ + "Query filter" ], - "text": "The table as `dataset.table`. Limits a query to one table." + "text": "The table as `dataset.table`. Limits a query to one table. Not searchable." }, { "name": "additional_metadata.container_id", - "purposes": [ - "Filter" + "uses": [ + "Query filter" ], - "text": "The table as `dataset__table`, with two underscores. Another way to limit a query to one table." + "text": "The table as `dataset__table`, with two underscores. Another way to limit a query to one table. Not searchable." }, { "name": "additional_metadata.container_type", - "purposes": [ - "Filter" + "uses": [ + "Query filter" ], - "text": "Always `table`." + "text": "Always `table`. Not searchable." }, { "name": "connector_id", - "purposes": [ - "Filter" + "uses": [ + "Query filter" ], - "text": "Limits a query to this connector's documents." + "text": "Limits a query to this connector's rows. Not searchable." }, { "name": "provider", - "purposes": [ - "Filter" + "uses": [ + "Query filter" ], - "text": "Always `bigquery`. Limits a query to BigQuery documents." + "text": "Always `bigquery`. Limits a query to BigQuery rows. Not searchable." }, { "name": "table", - "purposes": [ - "Stored with results" + "uses": [ + "Stored only" ], "text": "The table as `dataset.table`, so you can see where a result came from." }, { "name": "row_key", - "purposes": [ - "Stored with results" + "uses": [ + "Stored only" ], "text": "The key the row was matched on. Together with the table, it decides which document a later sync updates." } ] } ], + "example_searches": [ + "What does the `sales.orders` table say about order 10432?", + "Which rows in `crm.accounts` mention Acme Corp?", + "Which rows in `support.tickets` were updated most recently?" + ], "graph": { - "connections": "None. Rows are not linked to each other or to items in other tools, even when a column holds another table's key.", - "people": [ - "None are declared. Each row is grouped under its table.", - "A column such as `email` or `user_id` is part of the row text only. It does not make the row a person in the graph." - ], - "from_text": "Everything else. Customers, people, products and references between rows are found only by HydraDB reading the row text." - }, - "permissions": { - "carried": false, - "notes": [ - "BigQuery dataset, table, row-level and column-level access controls are not reproduced.", - "Every column of a selected table becomes searchable text, including sensitive ones. Select tables with that in mind." - ] - }, - "sync": { - "first_sync": "A table with a cursor column reads back the window set by `lookback_days`, 30 days by default. A change-history table starts capturing changes at its first sync, not when you create the connector, and then loads its existing rows in slices of 1,000 per sync. Set `snapshot` to `none` to skip existing rows, or to a number to load at most that many rows, in no particular order. With `none`, changes between creating the connector and its first sync are not recovered.", - "changes": "A cursor table picks up rows whose cursor value moved past the last sync. A `changes` table reads BigQuery's change history, about 11 minutes behind the current time. An `appends` table sees new rows only. A table with neither is read in full on every sync, and rows whose content did not change are skipped.", - "edits": "An edited row updates the same document, as long as its key is unique. In `appends` mode, edits to existing rows are never seen.", - "deletes": "Deleted rows are not removed. A row deleted in BigQuery stays searchable in HydraDB.", - "notes": [ - "BigQuery keeps change history for its time-travel window, 2 to 7 days. If a change-history table is not synced within that window, for example while the connector is paused, the table is skipped with an error on each sync until it is loaded again from the start." - ] + "connections": "The connector creates no explicit links between rows or to other tools. A column containing another row's key does not create a link. Each row is grouped under its table.", + "people": "The connector does not explicitly attach rows to people. A column such as `email` or `user_id` is part of the row text only. It does not make the row a person in the graph.", + "from_text": "The row text. Anything found there comes from reading the text, not from joining table keys." }, "not_synced": [ "Tables you did not select.", @@ -283,29 +303,5 @@ "Updates to existing rows in tables set to `appends`.", "BigQuery dataset, table, row-level and column-level access controls.", "Table and column descriptions and other schema details. Only row values are kept." - ], - "questions": [ - "What does the `sales.orders` table say about order 10432?", - "Which rows in `crm.accounts` mention Acme Corp?", - "Which rows in `support.tickets` were updated most recently?", - "What plan and region are recorded for jane@example.com in `billing.customers`?" - ], - "good_to_know": [ - { - "title": "Large tables need a sync mode.", - "text": "A table with no cursor column and no change history is read in full on every sync, which is expensive on large tables." - }, - { - "title": "Change-history rows carry two extra lines.", - "text": "In change-history mode, each row also has `_change_type` and `_change_timestamp` columns, and both appear in the row text." - }, - { - "title": "A cursor column does not always set the date.", - "text": "Recency uses only the time column names listed above. A cursor with another name drives sync without setting the document date." - }, - { - "title": "Backfill is best effort.", - "text": "Deleting rows while existing rows are still loading can make other rows be missed." - } ] } diff --git a/scripts/connector_pages/github.json b/scripts/connector_pages/github.json index 29fc78fa..2a548c77 100644 --- a/scripts/connector_pages/github.json +++ b/scripts/connector_pages/github.json @@ -1,11 +1,22 @@ { "description": "Sync issues and pull requests, each with its whole discussion, from the GitHub repositories you choose.", - "intro": [ - "The GitHub connector reads the repositories you select. Each issue and each pull request becomes one document that carries its body and its whole discussion: conversation comments and, for a pull request, review comments and review summaries.", - "Issues and pull requests are linked to the issues they reference or close, to their parent issue, and to the Linear issues, Slack messages and Notion pages they link to." + "opening": [ + "The GitHub connector syncs issues and pull requests from selected repositories. Code, commits and diffs are not synced. Each issue and each pull request is one document that carries its body and its whole discussion: conversation comments and, for a pull request, review comments and review summaries.", + "Issues and pull requests link to the issues they reference or close, to their parent issue, and to the Linear issues, Slack messages and Notion pages they link to.", + "A private repository's items are limited to its collaborators and teams only when Enforce ACL is on and HydraDB can read its collaborators. Deleted issues and pull requests stay in HydraDB." ], + "permissions": { + "carried": true, + "who_can_read": "Access follows the repository, not the single issue. A public or internal repository can be read by everyone who can query the collection unless you set an access rule. A private repository can be read by its collaborators and by the organization teams that have access to it.", + "identity": "The email address on a collaborator's public GitHub profile. Teams are added as groups.", + "when_unreadable": "If a collaborator hides their profile email, the collaborator list is incomplete, there are too many people to express, or GitHub refuses a request, the connector reports a permission warning.", + "notes": [ + "One collaborator with a hidden public email stops HydraDB from capturing a private repository's audience. Set an access rule on such a repository.", + "Internal repositories are open to everyone who can query the collection. Check that this matches who should see them." + ] + }, "connect": { - "auth": "GitHub uses a personal access token. A classic token needs `repo`, or `public_repo` for public repositories only. A fine-grained token works with the access GitHub grants it.", + "auth": "GitHub uses a personal access token. The setup steps below use a classic token, which needs `repo`, or `public_repo` for public repositories only. A fine-grained token works if GitHub grants it read access to the repositories you want and to their issues.", "credentials": [ { "name": "access_token", @@ -26,10 +37,10 @@ }, { "name": "read:org", - "text": "reads which organization teams can access a repository, for permissions. If GitHub refuses it, the connector raises a permission warning." + "text": "reads which organization teams can access a repository, for permissions. If GitHub refuses it, the connector reports a permission warning." } ], - "permissions_note": "HydraDB checks for `repo` or `public_repo` only when GitHub reports the token's scopes. Fine-grained tokens may not report them.", + "permissions_note": "A successful token check does not guarantee access to every repository. Confirm that the repositories you need are listed when you select them.", "steps": [ { "title": "Create a token", @@ -41,172 +52,186 @@ }, { "title": "Select repositories", - "text": "Discover lists every repository the token's user owns, collaborates on, or can see as an organization member. Select the repositories to sync." + "text": "HydraDB lists every repository the token's user owns, collaborates on, or can see as an organization member. Select the repositories to sync." } ], - "account": "GitHub rate limits apply per token, so a large first sync can use up the hourly quota. That is why the first sync is bounded." + "account": "One connector reads the repositories one token's user can see.", + "scope_unit": "GitHub account" + }, + "sync": { + "first_sync": "Reaches back 30 days by default, set by `lookback_days`. The window is measured from the repository's most recent activity, not from today, so a quiet repository still brings in its last stretch of work.", + "changes": "Each sync asks GitHub for items updated since the last sync. A changed item is sent again with its whole discussion.", + "edits": "Editing an issue or pull request, or adding a comment, moves its updated time, so the whole item is sent again.", + "deletes": "Deleted issues and pull requests are not removed. An item that disappears from GitHub can stay searchable in HydraDB.", + "notes": [ + "GitHub rate limits apply per token. A large first sync can use its hourly quota." + ] }, "documents": [ { "name": "Issues and pull requests", "kind": "ticket", - "one_document": "One issue or one pull request, with its whole discussion inside it.", + "one_document": "One issue or one pull request, with its whole discussion inside it. A search result is the issue or pull request, not an individual comment.", "title": "The issue or pull request title.", - "text": "The body. Each comment, review comment and review summary is added as its own searchable part of the item, with its author and time, and for a review comment the file, line and the comment it replies to. Empty comments are skipped. Labels are written as a `Labels` line, the creation time as a `Created` line, and a sub-issue's parent as a `Parent` line.", + "text": "The issue or pull request body and its discussion are searchable together. Comments and reviews include their author and time. Review comments also include the file, line and reply context. Empty comments are skipped. Labels are written as a `Labels` line, the creation time as a `Created` line, and a sub-issue's parent as a `Parent` line. The title is searchable too.", "date": "When the issue or pull request was last updated.", "link_back": "The issue or pull request page on GitHub.", "files": "Images and files in bodies and comments are not downloaded.", "attributes": [ { "name": "title", - "purposes": [ - "Title", - "Searchable", - "Link" + "uses": [ + "Searchable text", + "Graph connection" ], - "text": "Names the result. HydraDB also scans it for Linear issue keys and links." + "text": "HydraDB also scans the title for Linear issue keys and links, and links the item to those issues." }, { "name": "body", - "purposes": [ - "Searchable", - "Link" + "uses": [ + "Searchable text", + "Graph connection" ], "text": "The main text. References in it become links: `#123`, `owner/repo#123`, closing keywords, and Linear, Slack and Notion links." }, { "name": "Comments", - "purposes": [ - "Searchable", - "Person or group in the graph", - "Link" + "uses": [ + "Searchable text", + "Graph identity", + "Graph connection" ], "text": "Each comment, review comment and review summary is searchable with the item. Its author is recorded as a commenter, and references inside it become links of the item." }, { "name": "labels", - "purposes": [ - "Searchable" + "uses": [ + "Searchable text" ], "text": "Written as the `Labels` line, so a query can match a label." }, { "name": "created_at", - "purposes": [ - "Searchable" + "uses": [ + "Searchable text" ], "text": "Written as the `Created` line." }, { "name": "Item id", - "purposes": [ - "Searchable", - "Link" + "uses": [ + "Searchable text", + "Graph connection" ], "text": "The id `owner/repo#number`. It keeps later syncs on the same document, and it is what items in other tools, such as Linear issues, link to." }, { "name": "updated_at", - "purposes": [ - "Date" + "uses": [ + "Result date" ], - "text": "When the item was last updated. It is the document date, and it moves with every edit or new comment." + "text": "When the item was last updated. It moves with every edit or new comment. Not searchable." }, { "name": "additional_metadata.github_repo", - "purposes": [ - "Filter" + "uses": [ + "Query filter" ], - "text": "The repository as `owner/name`. Limits a query to one repository." + "text": "The repository as `owner/name`. Limits a query to one repository. Not searchable." }, { "name": "additional_metadata.github_issue_number", - "purposes": [ - "Filter" + "uses": [ + "Query filter" ], - "text": "The issue or pull request number. Targets one item." + "text": "The issue or pull request number within a repository. Combine it with `additional_metadata.github_repo` to select one item. Not searchable." }, { "name": "connector_id", - "purposes": [ - "Filter" + "uses": [ + "Query filter" ], - "text": "Limits a query to this connector." + "text": "Limits a query to this connector's items. Not searchable." }, { "name": "provider", - "purposes": [ - "Filter" + "uses": [ + "Query filter" ], - "text": "Always `github`." + "text": "Always `github`. Not searchable." }, { "name": "parent_id", - "purposes": [ - "Link", - "Searchable" + "uses": [ + "Searchable text", + "Graph connection" ], "text": "A sub-issue's parent issue, as `owner/repo#number`. Links the sub-issue to its parent, and is written as the `Parent` line." }, { "name": "is_pr", - "purposes": [ - "Link" + "uses": [ + "Graph connection" ], - "text": "Marks a pull request, so closing keywords in its body link it to the issues it closes." + "text": "Marks a pull request, so closing keywords in its body link it to the issues it closes. Not searchable." }, { "name": "mentions", - "purposes": [ - "Person or group in the graph" + "uses": [ + "Graph identity" ], - "text": "Each `@username` in the body, recorded as a person the item mentions." + "text": "Each `@username` in the body, recorded as a person the item mentions. The field itself is not searchable, but the body it comes from is." }, { "name": "Repository", - "purposes": [ - "Access" + "uses": [ + "Access rule" ], - "text": "The selected repository. Its audience decides who can read every issue and pull request in it." + "text": "The selected repository. Its audience decides who can read every issue and pull request in it. Not searchable." }, { "name": "author", - "purposes": [ - "Stored with results" + "uses": [ + "Stored only" ], - "text": "The login of the person who opened the item. It is not searchable and not added to the graph as a person." + "text": "The login of the person who opened the item. It is not added to the graph as a person." }, { "name": "assignees", - "purposes": [ - "Stored with results" + "uses": [ + "Stored only" ], - "text": "Assignee logins. Not searchable, and not added to the graph." + "text": "Assignee logins. Not added to the graph." }, { "name": "state", - "purposes": [ - "Stored with results" + "uses": [ + "Stored only" ], - "text": "`open` or `closed`. Not searchable." + "text": "`open` or `closed`." }, { "name": "closed_at", - "purposes": [ - "Stored with results" + "uses": [ + "Stored only" ], "text": "When the item was closed." }, { "name": "milestone, milestone_due", - "purposes": [ - "Stored with results" + "uses": [ + "Stored only" ], "text": "The milestone title and its due date." } ] } ], + "example_searches": [ + "Which pull request fixed issue `acme/api#412`?", + "Which issues in `acme/api` are labelled bug and mention the login timeout?", + "Which Linear issue does this pull request close?" + ], "graph": { "connections": [ "A sub-issue to its parent issue.", @@ -220,47 +245,14 @@ "people": [ "The author of each comment, as a commenter.", "Each `@username` mentioned in the body.", - "The person who opened the item and its assignees are not declared as people." + "The opener and assignees are not attached to the item as people in the graph." ], - "from_text": "The body and discussion text: topics, decisions, and people and projects named in prose." - }, - "permissions": { - "carried": true, - "who_can_read": "Access follows the repository, not the single issue. A public or internal repository can be read by everyone in your HydraDB tenant unless you set an access rule. A private repository can be read by its collaborators and by the organization teams that have access to it.", - "identity": "The email address on a collaborator's public GitHub profile. Teams are added as groups.", - "when_unreadable": "If a collaborator hides their profile email, the collaborator list is incomplete, there are too many people to express, or GitHub refuses a request, the connector raises a permission warning. An access rule you set on the repository stays in force. Without a rule, depending on your deployment's setting, the repository's items are either readable by everyone or hidden until permissions can be read.", - "notes": [ - "One collaborator with a hidden public email stops HydraDB from capturing a private repository's audience. Set an access rule on such a repository.", - "Internal repositories are open to everyone in your HydraDB tenant. Check that this matches who should see them." - ] - }, - "sync": { - "first_sync": "Reaches back 30 days by default, set by `lookback_days`. The window is measured from the repository's most recent activity, not from today, so a quiet repository still brings in its last stretch of work.", - "changes": "Each sync asks GitHub for items updated since the last sync. A changed item is sent again with its whole discussion.", - "edits": "Editing an issue or pull request, or adding a comment, moves its updated time, so the whole item is sent again.", - "deletes": "Deleted issues and pull requests are not removed. An item that disappears from GitHub can stay searchable in HydraDB." + "from_text": "The body and discussion text of each issue and pull request." }, "not_synced": [ "Code, commits and diffs.", "Releases, wikis, projects and GitHub Discussions.", "Images and files attached in bodies and comments.", "Repositories the token's user cannot see." - ], - "questions": [ - "What was decided in the discussion on the pull request that added rate limiting?", - "Which pull request fixed issue `acme/api#412`?", - "Which issues in `acme/api` are labelled bug and mention the login timeout?", - "Which Linear issue does this pull request close?", - "What did reviewers say about the caching change in `acme/web`?" - ], - "good_to_know": [ - { - "title": "Who opened or owns an item is not searchable.", - "text": "The opener, the assignees and whether the item is open are stored on it, but a query does not match them." - }, - { - "title": "Comments arrive inside their issue or pull request.", - "text": "Each comment is part of its issue or pull request, so a result is the whole item, not a single comment." - } ] } diff --git a/scripts/connector_pages/hubspot.json b/scripts/connector_pages/hubspot.json index 8c5455c9..8613f4b2 100644 --- a/scripts/connector_pages/hubspot.json +++ b/scripts/connector_pages/hubspot.json @@ -1,48 +1,185 @@ { - "description": "Sync HubSpot CRM records and logged activities, with record-level permissions worked out from owners and teams.", - "intro": [ - "The HubSpot connector reads the CRM object types you select: deals, tickets, contacts and companies, and the notes, emails, calls, meetings and tasks logged on them. Each record or activity becomes one document.", - "Activities are linked to the deal, contact or company they are logged on. Records carry a list of who can read them, worked out from HubSpot owners and teams." + "description": "Sync HubSpot CRM records and logged activities. Owner and team restrictions carry over for deals, contacts and companies, not tickets.", + "opening": [ + "Sync the HubSpot CRM object types you select: deals, tickets, contacts and companies, and the notes, emails, calls, meetings and tasks logged on them. Each record or activity is one document.", + "An activity links to one associated deal, contact or company only when everyone who can read the activity can also read that record. Owner and team restrictions can be captured for deals, contacts and companies, but not tickets. Search applies captured restrictions only with Enforce ACL enabled.", + "Custom CRM properties and files attached to activities are not synced. Deleted and archived records stay in HydraDB." ], + "permissions": { + "carried": true, + "who_can_read": "Each deal, contact and company carries HubSpot's owners and the teams that can access it, including parent teams. Its readers are the owners, every member of those teams, every super admin, and the members of the roles you list in `full_visibility_roles`. An activity can be read by everyone who can read any record it is logged on. An activity logged on nothing uses its own owner and teams.", + "identity": "A HubSpot user's or owner's email address.", + "when_unreadable": "If a record names owners or teams but their readers cannot be worked out, the record gets an access warning, which you can find with `additional_metadata.rbac_warning`. A warning does not by itself mean the record is public.", + "notes": [ + "Tickets do not carry HubSpot's owner and team access lists, so owners and teams do not restrict them. Set an access rule on the tickets resource if tickets must be private.", + "If a record carries no owner or team access information, HydraDB does not restrict it based on the owner it shows, and does not raise a warning. An access rule you set on its resource still applies.", + "Queues and archived owners give access to no one.", + "If an activity's parent record is not synced, the activity can be readable by everyone. Sync the deals, contacts and companies your activities are logged on.", + "If HydraDB cannot read which records an activity is logged on, those activities are not synced until a later sync can read them.", + "This is HydraDB's reading of HubSpot owners, teams and roles. It is not a guarantee that HydraDB matches HubSpot's visibility in every case." + ] + }, "connect": { "auth": "HubSpot uses an access token from a private app, or an OAuth access token.", "credentials": [ - {"name": "access_token", "type": "secret string", "required": true, "text": "A HubSpot private-app or OAuth access token. HydraDB does not refresh it, so a short-lived token must be replaced when it expires."} + { + "name": "access_token", + "type": "secret string", + "required": true, + "text": "A HubSpot private-app or OAuth access token. HydraDB does not refresh it, so a short-lived token must be replaced when it expires." + } ], "permissions_label": "Scopes for the app, all required", "permissions": [ - {"name": "crm.objects.contacts.read", "text": "contacts."}, - {"name": "crm.objects.companies.read", "text": "companies."}, - {"name": "crm.objects.deals.read", "text": "deals."}, - {"name": "tickets", "text": "tickets."}, - {"name": "crm.objects.notes.read", "text": "notes."}, - {"name": "crm.objects.calls.read", "text": "calls."}, - {"name": "crm.objects.emails.read", "text": "logged emails."}, - {"name": "sales-email-read", "text": "email bodies. Without it, emails sync with their subject only."}, - {"name": "crm.objects.meetings.read", "text": "meetings."}, - {"name": "crm.objects.tasks.read", "text": "tasks."}, - {"name": "crm.objects.owners.read", "text": "record owners, used to work out who can read a record."}, - {"name": "settings.users.read", "text": "users, their teams and super-admin status, used for permissions."}, - {"name": "settings.users.teams.read", "text": "teams, used for permissions."} + { + "name": "crm.objects.contacts.read", + "text": "contacts." + }, + { + "name": "crm.objects.companies.read", + "text": "companies." + }, + { + "name": "crm.objects.deals.read", + "text": "deals." + }, + { + "name": "tickets", + "text": "tickets." + }, + { + "name": "crm.objects.notes.read", + "text": "notes." + }, + { + "name": "crm.objects.calls.read", + "text": "calls." + }, + { + "name": "crm.objects.emails.read", + "text": "logged emails." + }, + { + "name": "sales-email-read", + "text": "email bodies. Without it, emails sync with their subject only." + }, + { + "name": "crm.objects.meetings.read", + "text": "meetings." + }, + { + "name": "crm.objects.tasks.read", + "text": "tasks." + }, + { + "name": "crm.objects.owners.read", + "text": "record owners, used to work out who can read a record." + }, + { + "name": "settings.users.read", + "text": "users, their teams and super-admin status, used for permissions." + }, + { + "name": "settings.users.teams.read", + "text": "teams, used for permissions." + } ], "steps": [ - {"title": "Create a private app", "text": "In HubSpot, create a private app or an OAuth app that requests every scope above, and copy its access token."}, - {"title": "Create the connector", "text": "Paste the token as `access_token`."}, - {"title": "Select object types", "text": "Discover lists the CRM object types the token can read. Select the ones to sync. Notes, emails, calls, meetings and tasks are offered only when the token can also read contacts, companies, deals and tickets."}, - {"title": "Name the roles that see everything", "text": "When you configure the connector, list in `full_visibility_roles` the names of HubSpot roles whose members can see every record. HubSpot does not report what a role can see, so a member of such a role is otherwise not given access. Leaving the setting out keeps the current list; an empty list clears it."} + { + "title": "Create a private app", + "text": "In HubSpot, create a private app or an OAuth app that requests every scope above, and copy its access token." + }, + { + "title": "Create the connector", + "text": "Paste the token as `access_token`." + }, + { + "title": "Select object types", + "text": "HydraDB lists the CRM object types the token can read. Select the ones to sync. Notes, emails, calls, meetings and tasks are offered only when the token can also read contacts, companies, deals and tickets." + }, + { + "title": "Name the roles that see everything", + "text": "When you configure the connector, list in `full_visibility_roles` the names of HubSpot roles whose members can see every record. HubSpot does not report what a role can see, so a member of such a role is otherwise not given access. Leaving the setting out keeps the current list. An empty list clears it." + } + ], + "account": "One connector reads the object types one access token can read." + }, + "sync": { + "first_sync": "Each selected object type reaches back the window set by `lookback_days`, 30 days by default.", + "changes": "Each sync reads records modified since the last sync, and reads owners, users and teams again in full.", + "edits": "An edited record is read again and replaces its document. A change to users or teams can also update who can read records already in HydraDB. A large change can take several syncs, so do not rely on a membership change to remove access right away.", + "deletes": "Deleted and archived HubSpot records are not removed. They stay in HydraDB.", + "notes": [ + "If the token lacks the scope for one object type, that type can be skipped while the others sync.", + "A connector set up before object types could be selected keeps syncing all of them until you configure it again." ] }, "shared_attributes": [ - {"name": "updated_at", "purposes": ["Date"], "text": "When the record was last modified. It is the document date, unless the activity has its own time. It is also in the text of notes and emails."}, - {"name": "created_at", "purposes": ["Date"], "text": "Used as the date only when there is no activity time and no modification time. It is also in the text of deals, tickets, notes, emails and calls."}, - {"name": "additional_metadata.hubspot_id", "purposes": ["Filter"], "text": "The HubSpot record id. Targets one record, and keeps later syncs on the same document."}, - {"name": "additional_metadata.hubspot_object", "purposes": ["Filter"], "text": "The object type, such as `deals` or `notes`. Limits a query to one type."}, - {"name": "additional_metadata.rbac_warning", "purposes": ["Filter"], "text": "Set when there was a problem working out who can read the record, such as readers that could not be resolved or a removed team. A warning does not by itself mean the record is public."}, - {"name": "connector_id", "purposes": ["Filter"], "text": "Limits a query to this connector."}, - {"name": "provider", "purposes": ["Filter"], "text": "Always `hubspot`."}, - {"name": "acl", "purposes": ["Access"], "text": "The people who can read the record, worked out as described under Permissions."}, - {"name": "object_type", "purposes": ["Stored with results"], "text": "The object type the record came from. To filter on it, use `additional_metadata.hubspot_object`."}, - {"name": "Custom CRM properties", "purposes": ["Not kept"], "text": "Properties beyond the ones listed on this page are not kept."} + { + "name": "updated_at", + "uses": [ + "Result date", + "Searchable text" + ], + "text": "The record's modification time. Used for ranking by date when no activity time is available. Searchable on notes and emails. Not searchable on other record types." + }, + { + "name": "created_at", + "uses": [ + "Result date", + "Searchable text" + ], + "text": "The record's creation time. Used for ranking by date only when activity and modification times are missing. Searchable on deals, tickets, notes, emails and calls. Not searchable on contacts, companies, meetings and tasks." + }, + { + "name": "object_type", + "uses": [ + "Searchable text" + ], + "text": "The source object type. Searchable in email details. On other record types it is stored and not searchable. Filter by `additional_metadata.hubspot_object`." + }, + { + "name": "additional_metadata.hubspot_id", + "uses": [ + "Query filter" + ], + "text": "The HubSpot record id. Targets one record, and keeps later syncs on the same document. Not searchable. No HubSpot link is stored, so use this id to find the record in HubSpot." + }, + { + "name": "additional_metadata.hubspot_object", + "uses": [ + "Query filter" + ], + "text": "The object type, such as `deals` or `notes`. Limits a query to one type. Not searchable." + }, + { + "name": "additional_metadata.rbac_warning", + "uses": [ + "Query filter" + ], + "text": "Set when there was a problem working out who can read the record, such as readers that could not be resolved or a removed team. A warning does not by itself mean the record is public. Not searchable." + }, + { + "name": "connector_id", + "uses": [ + "Query filter" + ], + "text": "Limits a query to this connector's records. Not searchable." + }, + { + "name": "provider", + "uses": [ + "Query filter" + ], + "text": "Always `hubspot`. Not searchable." + }, + { + "name": "acl", + "uses": [ + "Access rule" + ], + "text": "The people who can read the record, worked out as described under Permissions. Not searchable." + } ], "documents": [ { @@ -50,17 +187,46 @@ "kind": "ticket", "one_document": "One deal.", "title": "The deal name.", - "text": "The deal description, then `Deal`, `Amount`, `Stage`, `Close date` and `Owner` lines.", + "text": "The deal description, then `Deal`, `Amount`, `Stage`, `Close date` and `Owner` lines. The deal name is searchable too.", "date": "When the deal was last modified, else when it was created.", "link_back": "None.", "attributes": [ - {"name": "Deal text", "purposes": ["Searchable"], "text": "The description and the lines described above."}, - {"name": "title", "purposes": ["Title", "Searchable"], "text": "Names the deal in results."}, - {"name": "amount", "purposes": ["Searchable"], "text": "Written as the `Amount` line."}, - {"name": "close_date", "purposes": ["Searchable"], "text": "Written as the `Close date` line."}, - {"name": "stage", "purposes": ["Searchable"], "text": "Written as the `Stage` line, as HubSpot's internal stage id, not its display name."}, - {"name": "owner", "purposes": ["Searchable", "Person or group in the graph"], "text": "The owner's email, written as the `Owner` line. HydraDB can find the rep from that text. The owner is not declared as the deal's assignee."}, - {"name": "pipeline", "purposes": ["Stored with results"], "text": "HubSpot's pipeline id. It is not turned into a name and is not searchable."} + { + "name": "amount", + "uses": [ + "Searchable text" + ], + "text": "Written as the `Amount` line." + }, + { + "name": "close_date", + "uses": [ + "Searchable text" + ], + "text": "Written as the `Close date` line." + }, + { + "name": "stage", + "uses": [ + "Searchable text" + ], + "text": "Written as the `Stage` line, as HubSpot's internal stage id, not its display name." + }, + { + "name": "owner", + "uses": [ + "Searchable text", + "Graph identity" + ], + "text": "The owner's email, written as the `Owner` line, where HydraDB can identify the person. It does not create an assignee relationship." + }, + { + "name": "pipeline", + "uses": [ + "Stored only" + ], + "text": "HubSpot's pipeline id. It is not turned into a name." + } ] }, { @@ -68,15 +234,31 @@ "kind": "ticket", "one_document": "One ticket.", "title": "The ticket subject.", - "text": "The ticket content. When the content is empty, the subject with `Priority` and `Stage` lines.", + "text": "The ticket content. When the content is empty, the subject with `Priority` and `Stage` lines. The subject is searchable either way.", "date": "When the ticket was last modified, else when it was created.", "link_back": "None.", "attributes": [ - {"name": "Ticket text", "purposes": ["Searchable"], "text": "The content, or the fallback described above."}, - {"name": "title", "purposes": ["Title", "Searchable"], "text": "Names the ticket in results."}, - {"name": "priority", "purposes": ["Searchable"], "text": "Written as a `Priority` line."}, - {"name": "stage", "purposes": ["Searchable"], "text": "Written as a `Stage` line only when the ticket has no content. Otherwise it is stored and not searchable."}, - {"name": "owner", "purposes": ["Stored with results"], "text": "The owner's email. It is not part of the text."} + { + "name": "priority", + "uses": [ + "Searchable text" + ], + "text": "When the ticket has no content, written as a `Priority` line." + }, + { + "name": "stage", + "uses": [ + "Searchable text" + ], + "text": "Written as a `Stage` line only when the ticket has no content. Otherwise it is stored and not searchable." + }, + { + "name": "owner", + "uses": [ + "Stored only" + ], + "text": "The owner's email. It is not part of the text, and it does not restrict who can read the ticket." + } ] }, { @@ -84,19 +266,59 @@ "kind": "custom", "one_document": "One contact, or one company.", "title": "A contact's first and last name, else their email. A company's name.", - "text": "A contact: `Name`, `Email`, `Company`, `Phone` and `Job title` lines. A company: its description, then `Company`, `Domain` and `Industry` lines.", + "text": "For a contact, `Name`, `Email`, `Company`, `Phone` and `Job title` lines. For a company, its description, then `Company`, `Domain` and `Industry` lines. The title is searchable too.", "date": "When the record was last modified, else when it was created.", "link_back": "None.", "attributes": [ - {"name": "Contact or company text", "purposes": ["Searchable"], "text": "The lines described above."}, - {"name": "title", "purposes": ["Title", "Searchable"], "text": "Names the contact or company in results."}, - {"name": "email", "purposes": ["Searchable"], "text": "A contact's email, so a query can find the person by email."}, - {"name": "company", "purposes": ["Searchable"], "text": "A contact's company name."}, - {"name": "job_title", "purposes": ["Searchable"], "text": "A contact's job title."}, - {"name": "domain", "purposes": ["Searchable"], "text": "A company's website domain, written as the `Domain` line."}, - {"name": "industry", "purposes": ["Searchable"], "text": "A company's industry, written as the `Industry` line."}, - {"name": "company_id", "purposes": ["Link"], "text": "Links a contact to its company's document."}, - {"name": "owner", "purposes": ["Stored with results"], "text": "The owner's email. It is not part of the text."} + { + "name": "email", + "uses": [ + "Searchable text" + ], + "text": "A contact's email, so a query can find the person by email." + }, + { + "name": "company", + "uses": [ + "Searchable text" + ], + "text": "A contact's company name." + }, + { + "name": "job_title", + "uses": [ + "Searchable text" + ], + "text": "A contact's job title." + }, + { + "name": "domain", + "uses": [ + "Searchable text" + ], + "text": "A company's website domain, written as the `Domain` line." + }, + { + "name": "industry", + "uses": [ + "Searchable text" + ], + "text": "A company's industry, written as the `Industry` line." + }, + { + "name": "company_id", + "uses": [ + "Graph connection" + ], + "text": "Links a contact to its company's document. Not searchable." + }, + { + "name": "owner", + "uses": [ + "Stored only" + ], + "text": "The owner's email. It is not part of the text." + } ] }, { @@ -109,9 +331,20 @@ "link_back": "None.", "files": "Files attached to the note are not synced.", "attributes": [ - {"name": "Note text", "purposes": ["Searchable"], "text": "The note body."}, - {"name": "occurred_at", "purposes": ["Date"], "text": "When the note was logged as happening. It is the document date."}, - {"name": "owner", "purposes": ["Stored with results"], "text": "The owner's email. It is not part of the text."} + { + "name": "occurred_at", + "uses": [ + "Result date" + ], + "text": "When the note was logged as happening. Not searchable." + }, + { + "name": "owner", + "uses": [ + "Stored only" + ], + "text": "The owner's email. It is not part of the text." + } ] }, { @@ -119,18 +352,49 @@ "kind": "email", "one_document": "One logged email.", "title": "The email subject.", - "text": "The plain-text body, else the HTML body converted to text, else the subject. The email's details, such as its direction, sender, recipient, owner and times, are written into the text as a list of fields.", + "text": "The plain-text body, else the HTML body converted to text, else the subject. The email's details, such as its direction, sender, recipient, owner and times, are written into the text as a list of fields. The subject is searchable too.", "date": "When the email happened, else when it was last modified, else when it was created.", "link_back": "None.", "files": "Files attached to the email are not synced.", "attributes": [ - {"name": "Email text", "purposes": ["Searchable"], "text": "The body and details described above."}, - {"name": "title", "purposes": ["Title", "Searchable"], "text": "The subject. Names the email in results."}, - {"name": "from", "purposes": ["Searchable", "Person or group in the graph"], "text": "The sender. Part of the text, and attached to the email in the graph."}, - {"name": "to", "purposes": ["Searchable", "Person or group in the graph"], "text": "The recipient. Part of the text, and attached to the email in the graph."}, - {"name": "direction", "purposes": ["Searchable"], "text": "Whether the email was inbound or outbound, written into the details."}, - {"name": "owner", "purposes": ["Searchable"], "text": "The owner's email, written into the details."}, - {"name": "occurred_at", "purposes": ["Date", "Searchable"], "text": "When the email happened. It is the document date, and it is written into the details."} + { + "name": "from", + "uses": [ + "Searchable text", + "Graph identity" + ], + "text": "The sender. Part of the email details, and can be attached to the email in the graph." + }, + { + "name": "to", + "uses": [ + "Searchable text", + "Graph identity" + ], + "text": "The recipient. Part of the email details, and can be attached to the email in the graph." + }, + { + "name": "direction", + "uses": [ + "Searchable text" + ], + "text": "Whether the email was inbound or outbound, written into the details." + }, + { + "name": "owner", + "uses": [ + "Searchable text" + ], + "text": "The owner's email, written into the details." + }, + { + "name": "occurred_at", + "uses": [ + "Result date", + "Searchable text" + ], + "text": "When the email happened, written into the details." + } ] }, { @@ -142,11 +406,35 @@ "date": "When the call happened, else when it was last modified, else when it was created.", "link_back": "None.", "attributes": [ - {"name": "Call text", "purposes": ["Searchable"], "text": "The notes and lines described above."}, - {"name": "direction", "purposes": ["Searchable"], "text": "Written as the `Direction` line, so a query can match inbound or outbound calls."}, - {"name": "owner", "purposes": ["Searchable", "Person or group in the graph"], "text": "Written as the `Owner` line. HydraDB can find the rep from that text."}, - {"name": "occurred_at", "purposes": ["Date"], "text": "When the call happened. It is the document date."}, - {"name": "duration_ms", "purposes": ["Stored with results"], "text": "The call length in milliseconds. It is not searchable."} + { + "name": "direction", + "uses": [ + "Searchable text" + ], + "text": "Written as the `Direction` line, so a query can match inbound or outbound calls." + }, + { + "name": "owner", + "uses": [ + "Searchable text", + "Graph identity" + ], + "text": "The owner's email, written as the `Owner` line, where HydraDB can identify the person." + }, + { + "name": "occurred_at", + "uses": [ + "Result date" + ], + "text": "When the call happened. Not searchable." + }, + { + "name": "duration_ms", + "uses": [ + "Stored only" + ], + "text": "The call length in milliseconds. It is not searchable." + } ] }, { @@ -154,22 +442,68 @@ "kind": "custom", "one_document": "One logged meeting, or one task.", "title": "The meeting title, or the task subject.", - "text": "A meeting: its notes converted from HTML, then `Meeting`, `Location`, `Start` and `Owner` lines. A task: its body converted from HTML, then `Task`, `Status`, `Priority` and `Owner` lines.", + "text": "For a meeting, its notes converted from HTML, then `Meeting`, `Location`, `Start` and `Owner` lines. For a task, its body converted from HTML, then `Task`, `Status`, `Priority` and `Owner` lines. The title is searchable too.", "date": "When the meeting or task happened, else when it was last modified, else when it was created.", "link_back": "None.", "attributes": [ - {"name": "Meeting or task text", "purposes": ["Searchable"], "text": "The notes or body and the lines described above."}, - {"name": "title", "purposes": ["Title", "Searchable"], "text": "Names the meeting or task in results."}, - {"name": "location", "purposes": ["Searchable"], "text": "Where the meeting was held, written as the `Location` line."}, - {"name": "start_time", "purposes": ["Searchable"], "text": "When the meeting started, written as the `Start` line. The document date is the activity time."}, - {"name": "status", "purposes": ["Searchable"], "text": "A task's status, written as the `Status` line."}, - {"name": "priority", "purposes": ["Searchable"], "text": "A task's priority, written as the `Priority` line."}, - {"name": "owner", "purposes": ["Searchable", "Person or group in the graph"], "text": "Written as the `Owner` line. HydraDB can find the rep from that text."}, - {"name": "occurred_at", "purposes": ["Date"], "text": "When the meeting or task happened. It is the document date."}, - {"name": "end_time", "purposes": ["Stored with results"], "text": "When the meeting ended. It is not searchable and is not the document date."} + { + "name": "location", + "uses": [ + "Searchable text" + ], + "text": "Where the meeting was held, written as the `Location` line." + }, + { + "name": "start_time", + "uses": [ + "Searchable text" + ], + "text": "When the meeting started, written as the `Start` line. The result date is the activity time instead." + }, + { + "name": "status", + "uses": [ + "Searchable text" + ], + "text": "A task's status, written as the `Status` line." + }, + { + "name": "priority", + "uses": [ + "Searchable text" + ], + "text": "A task's priority, written as the `Priority` line." + }, + { + "name": "owner", + "uses": [ + "Searchable text", + "Graph identity" + ], + "text": "The owner's email, written as the `Owner` line, where HydraDB can identify the person." + }, + { + "name": "occurred_at", + "uses": [ + "Result date" + ], + "text": "When the meeting or task happened. Not searchable." + }, + { + "name": "end_time", + "uses": [ + "Stored only" + ], + "text": "When the meeting ended. It is not the result date." + } ] } ], + "example_searches": [ + "What was said on the last call with this contact?", + "Which notes and emails are logged on the Acme deal?", + "What did the customer write in their last email?" + ], "graph": { "connections": [ "A contact to its company.", @@ -178,32 +512,12 @@ "No links to other tools." ], "people": [ - "The record owner, as an email.", - "The sender and recipient of each email.", + "Deal, call, meeting and task owner emails appear in searchable text, where HydraDB can identify the person.", + "Email senders and recipients can also be attached to email records in the graph.", + "Owners stored only on other record types are not identified from that field.", "A contact's company name." ], - "from_text": "Everything in deal descriptions, ticket content, and the text of notes, emails, calls, meetings and tasks." - }, - "permissions": { - "carried": true, - "who_can_read": "Each deal, contact and company carries HubSpot's owners and the teams that can access it, including parent teams. Its readers are the owners, every member of those teams, every super admin, and the members of the roles you list in `full_visibility_roles`. An activity can be read by everyone who can read any record it is logged on. An activity logged on nothing uses its own owner and teams.", - "identity": "A HubSpot user's or owner's email address.", - "when_unreadable": "If a record names owners or teams but their readers cannot be worked out, the record gets an access warning, which you can find with `additional_metadata.rbac_warning`. An access rule you set stays in force. Without one, depending on your deployment's setting, the record is either readable by everyone or hidden until its readers can be worked out. A record with no owner or team information is not restricted and gets no warning.", - "notes": [ - "Tickets do not carry HubSpot's owner and team access lists, so owners and teams do not restrict them. Set an access rule on the tickets resource if tickets must be private.", - "Queues and archived owners give access to no one.", - "If an activity's parent record is not synced, the activity can be readable by everyone. Sync the deals, contacts and companies your activities are logged on.", - "This is HydraDB's reading of HubSpot owners, teams and roles. It is not a guarantee that HydraDB matches HubSpot's visibility in every case." - ] - }, - "sync": { - "first_sync": "Each selected object type reaches back the window set by `lookback_days`, 30 days by default.", - "changes": "Each sync reads records modified since the last sync. Owners, users and teams are read in full on every sync.", - "edits": "An edited record is read again and replaces its document.", - "deletes": "Deleted and archived HubSpot records are not removed. They stay in HydraDB.", - "notes": [ - "If the token lacks the scope for one object type, that type can be skipped while the others sync." - ] + "from_text": "Deal descriptions, ticket content, and the text of notes, emails, calls, meetings and tasks." }, "not_synced": [ "Object types you did not select.", @@ -212,16 +526,5 @@ "Files attached to activities.", "Custom CRM properties.", "Deletions and archived records." - ], - "questions": [ - "What was said on the last call with this contact?", - "What amounts and close dates are recorded on the synced deals?", - "Which notes and emails are logged on the Acme deal?", - "What did the customer write in their last email?" - ], - "good_to_know": [ - {"title": "Stages and pipelines are ids.", "text": "Deal stages appear in the text as HubSpot's internal ids, not their display names. Pipelines are not searchable."}, - {"title": "Results do not link back to HubSpot.", "text": "No HubSpot URL is stored. Use `additional_metadata.hubspot_id` to find the record."}, - {"title": "Older connectors sync every object type.", "text": "A connector set up before object types could be selected keeps syncing all of them until you configure it again."} ] } diff --git a/scripts/connector_pages/notion.json b/scripts/connector_pages/notion.json index 97bdd778..52fb764c 100644 --- a/scripts/connector_pages/notion.json +++ b/scripts/connector_pages/notion.json @@ -1,9 +1,12 @@ { - "description": "Sync the Notion pages and databases you share with HydraDB, one searchable document per page.", - "intro": [ - "The Notion connector reads the databases and top-level pages you share with its integration. Each page becomes one document: a database row, a selected page, and every sub-page under them.", - "Each sub-page is linked to the page it sits under, so a page tree stays connected." + "description": "Sync page text from selected Notion pages and databases, one document per page. Database properties other than titles are not synced.", + "opening": [ + "Sync the Notion databases and top-level pages you share with the connector's integration. Each page is one document: a database row, a selected page, and every sub-page under them. Each sub-page links to the page it sits under.", + "A database row brings in its title and page text only. Status, owner, dates, tags and other properties are not read. Notion page sharing is not imported, so every synced page is visible to everyone who can query the collection unless you set an access rule. Pages deleted or unshared in Notion stay in HydraDB." ], + "permissions": { + "carried": false + }, "connect": { "auth": "Notion uses an internal integration token.", "credentials": [ @@ -32,7 +35,7 @@ }, { "title": "Share content with it", - "text": "Share each database and page you want synced with the integration. Discovery lists only what the integration can see." + "text": "Share each database and page you want synced with the integration. HydraDB can list only what the integration can see." }, { "title": "Create the connector", @@ -40,8 +43,20 @@ }, { "title": "Select resources", - "text": "Discover lists every database the integration can see, and every page that sits at the top of the workspace. Select at least one: a sync needs a selected resource." + "text": "HydraDB lists every database the integration can see, and every page that sits at the top of the workspace. Select at least one database or top-level page." } + ], + "account": "One connector reads what one integration can see.", + "scope_unit": "Notion workspace" + }, + "sync": { + "first_sync": "A database reaches back 30 days by last edited time by default, set by `lookback_days`. A selected page and its sub-pages are read again on every sync.", + "changes": "For a database, rows edited since the last sync are read again in full, with their sub-pages. For a selected page, the whole page tree is read on every sync, and the pages edited since the last sync are sent.", + "edits": "For a directly selected page tree, edited pages replace their existing documents on the next sync. For a sub-page under a database row, the change is picked up only when the database row is also edited.", + "deletes": "Pages deleted or unshared in Notion are not removed. They stay searchable in HydraDB.", + "notes": [ + "Sub-pages are followed up to 10 levels deep, and blocks up to 20 levels deep.", + "If a sub-page or block is unavailable, its content is omitted. Other accessible content on the page can still sync." ] }, "documents": [ @@ -53,111 +68,87 @@ "text": "The page title at the top, the creator as an `Author` line, and the plain text of the page's blocks in order, one block per line: paragraphs, headings, bulleted and numbered lists, to-dos, toggles, quotes, callouts and code. Text inside toggles and callouts is included.", "date": "When the page was last edited.", "link_back": "The page in Notion.", - "files": "Images and files are kept as links to the original. Text in images can be added when HydraDB's image reading is available. The text of PDF and Word files is not guaranteed to be read.", + "files": "Images and files remain links to the originals. Image text is searchable only when image reading is available in your deployment. Do not rely on PDF or Word attachment text being searchable.", "attributes": [ - { - "name": "title", - "purposes": [ - "Title", - "Searchable" - ], - "text": "Names the page in results, and is written at the top of its text." - }, - { - "name": "Page text", - "purposes": [ - "Searchable" - ], - "text": "The block text described above. This is what a query matches." - }, { "name": "created_by", - "purposes": [ - "Searchable", - "Person or group in the graph" + "uses": [ + "Searchable text", + "Graph identity" ], "text": "The creator's display name, or their Notion id if the name cannot be read. It is the `Author` line of the text, and the graph records the page as written by that person." }, { "name": "last_edited_time", - "purposes": [ - "Date" + "uses": [ + "Result date" ], - "text": "When the page was last edited. It is the document date, and it is not part of the text." + "text": "When the page was last edited. Not searchable." }, { "name": "additional_metadata.notion_page_id", - "purposes": [ - "Filter" + "uses": [ + "Query filter" ], - "text": "The page's Notion id. Limits a query to one page." + "text": "The page's Notion id. Limits a query to one page. Not searchable." }, { "name": "connector_id", - "purposes": [ - "Filter" + "uses": [ + "Query filter" ], - "text": "Limits a query to this connector." + "text": "Limits a query to this connector's pages. Not searchable." }, { "name": "provider", - "purposes": [ - "Filter" + "uses": [ + "Query filter" ], - "text": "Always `notion`." + "text": "Always `notion`. Not searchable." }, { "name": "parent_id", - "purposes": [ - "Link" + "uses": [ + "Graph connection" ], - "text": "For a sub-page, the page it sits under. Links the two, so a page tree is connected in the graph." + "text": "For a sub-page, the page it sits under. Links the two, so a page tree is connected in the graph. Not searchable." }, { "name": "created_by_email", - "purposes": [ - "Person or group in the graph" + "uses": [ + "Graph identity" ], - "text": "The creator's email, when Notion returns one. It lets the graph recognise the same person across tools." + "text": "The creator's email, when Notion returns one. It lets the graph recognise the same person across tools. Not searchable." }, { "name": "mentions", - "purposes": [ - "Person or group in the graph" + "uses": [ + "Graph identity" ], - "text": "People @mentioned in the page. The graph records each as mentioned by the page." + "text": "People @mentioned in the page. The graph records each as mentioned by the page. The field itself is not searchable, but the page text it comes from is." }, { "name": "created_at", - "purposes": [ - "Stored with results" + "uses": [ + "Stored only" ], "text": "When the page was created." }, { "name": "last_edited_by", - "purposes": [ - "Stored with results" + "uses": [ + "Stored only" ], "text": "The Notion user id of the last editor. It is not turned into a name or a person." - }, - { - "name": "Database properties", - "purposes": [ - "Not kept" - ], - "text": "Property values other than the title, such as status, owner, dates and tags, are not read." - }, - { - "name": "Comments", - "purposes": [ - "Not kept" - ], - "text": "Comments on pages are not read." } ] } ], + "example_searches": [ + "What does our onboarding page say about laptop setup?", + "Which Notion pages did Priya create?", + "What sub-pages sit under the Engineering Handbook page?" + ], "graph": { "connections": [ "A sub-page to the page it sits under.", @@ -167,49 +158,13 @@ "The page's creator, with an email when Notion returns one.", "People @mentioned in the page." ], - "from_text": "Everything in the page text: topics, and people or projects named in plain text rather than @mentioned. Database properties are not read, so structure kept only in database columns is not available." - }, - "permissions": { - "carried": false, - "notes": [ - "Notion's page sharing is not read." - ] - }, - "sync": { - "first_sync": "A database reaches back 30 days by last edited time by default, set by `lookback_days`. A selected page and its sub-pages are walked on every sync.", - "changes": "For a database, rows edited since the last sync are read again in full, with their sub-pages. For a selected page, the whole tree is walked on every sync and pages edited since the last sync are sent.", - "edits": "An edited page is sent again and replaces its document. A sub-page under a database row is picked up only when the row itself is edited.", - "deletes": "Pages deleted or unshared in Notion are not removed. They stay searchable in HydraDB.", - "notes": [ - "Sub-pages are followed up to 10 levels deep, and blocks up to 20 levels deep.", - "A sub-page or block that Notion now refuses or cannot find is skipped instead of failing its page." - ] + "from_text": "The page text, including people and projects named in plain text rather than @mentioned. Database properties are not read, so anything kept only in database columns cannot be found." }, "not_synced": [ - "Database property values other than the title.", + "Property values other than the title, such as status, owner, dates and tags, are not read.", "Comments on pages.", "Pages and databases not shared with the integration.", "Text in unsupported blocks, such as table rows, equations, embeds and bookmarks.", "Deletions: deleted pages stay in HydraDB." - ], - "questions": [ - "What does our onboarding page say about laptop setup?", - "Which Notion pages did Priya create?", - "Which pages mention Alex?", - "What sub-pages sit under the Engineering Handbook page?" - ], - "good_to_know": [ - { - "title": "Database columns are not synced.", - "text": "A database row brings in its title and page text only. Status, owner, dates and tags are not read." - }, - { - "title": "Edits to a sub-page under a database row can be missed.", - "text": "They are picked up when the row itself is edited. Pages you select directly do not have this problem, because they are walked on every sync." - }, - { - "title": "Only the last 30 days of a database come in first.", - "text": "Set `lookback_days` to reach further back." - } ] } diff --git a/scripts/connector_pages/slack.json b/scripts/connector_pages/slack.json index c62d21e6..1afeb94e 100644 --- a/scripts/connector_pages/slack.json +++ b/scripts/connector_pages/slack.json @@ -1,9 +1,19 @@ { - "description": "Sync messages and thread replies from the Slack channels you choose, with private channels limited to their members.", - "intro": [ - "The Slack connector reads the public and private channels you select in one Slack workspace. Each message becomes one document, and each thread reply is its own document linked to the message that started the thread.", - "Files shared in a message are downloaded and read with it. A private channel's messages can be limited to the channel's members." + "description": "Sync messages and replies from selected Slack channels. Private-channel restrictions require Enforce ACL and a successful permission read.", + "opening": [ + "Sync messages and replies from the public and private Slack channels you select in one workspace. Each message and each thread reply is one document, and a reply links to the message that started its thread. Shared files are downloaded and their text is searchable with the message when the download and text reading succeed.", + "Private-channel membership restricts search only when Enforce ACL is on and HydraDB can read the channel's members. Direct messages are not synced. Edits and deletions made in Slack after a message is synced are not picked up." ], + "permissions": { + "carried": true, + "who_can_read": "A public channel's messages can be read by everyone who can query the collection. A private channel's messages can be read by its members. HydraDB reads this once per channel on each sync. There is no per-message permission.", + "identity": "A member's email address, in lower case. Bots and deactivated users have no email and are left out.", + "when_unreadable": "If HydraDB cannot read a channel's privacy, members or member emails, the connector reports a permission warning.", + "notes": [ + "A private channel with more than 1,000 members who have emails, or more than 3,000 members in all, cannot be captured. Set an access rule on such a channel.", + "Without `users:read.email`, permissions cannot be captured for any private channel." + ] + }, "connect": { "auth": "Slack uses a token from a Slack app installed in your workspace. A bot token or a user token works.", "credentials": [ @@ -18,14 +28,14 @@ "permissions": [ { "name": "channels:read", - "text": "lists public channels in the channel picker." + "text": "lists public channels for you to select." }, { "name": "channels:history" }, { "name": "groups:read", - "text": "lists private channels in the channel picker." + "text": "lists private channels for you to select." }, { "name": "groups:history" @@ -57,190 +67,180 @@ }, { "title": "Select channels", - "text": "Discover lists every public and private channel that is not archived and that the token can see, with whether it is private, whether the app is a member, and its member count. Select the channels to sync." + "text": "HydraDB lists the non-archived channels the token can see. For each channel, it shows privacy, app membership and member count. Select the channels to sync." } ], - "account": "One token covers one Slack workspace." + "account": "One token covers one Slack workspace.", + "scope_unit": "Slack workspace" + }, + "sync": { + "first_sync": "A newly selected channel reads back the window set by `lookback_days`, 30 days by default.", + "changes": "New messages and replies are synced from recent history. New replies on older threads are checked every 6 hours by default. That check covers channel history over multiple syncs, so older replies may arrive later.", + "edits": "A routine sync does not pick up an edit to a message that is already synced.", + "deletes": "Deleted messages are not removed. A message deleted in Slack stays searchable in HydraDB." }, "documents": [ { "name": "Messages", "kind": "message", "one_document": "One Slack message: a message posted in a channel, or a single reply in a thread.", - "title": "The channel name with `#`, a colon and the message's first line, cut to about 80 characters, for example `#general: Deploy is done`. A reply reads `#general thread: ...`. A message with no text is titled `Slack message`.", + "title": "The channel name with `#`, a colon and the message's first line, cut to about 80 characters, for example `#general: Deploy is done`. A reply reads `#general thread: ...`. A message with no text is titled `Slack message`. When a message has text, search matches the message, not this title, so a channel name in a query does not reliably limit results to that channel.", "text": "The message text, with mentions turned into display names. Then the pretext, title and text of any legacy attachments, and one `[file: name]` line per shared file. The sender is written as a `From` line and the time as a `Sent` line.", "date": "The message's Slack timestamp.", "link_back": "A Slack permalink to the message. A reply links to itself inside its thread. Empty if the workspace address could not be read.", "files": "Each shared file is downloaded and read, and its text becomes searchable with the message. A file is skipped if Slack gave no download address, the download fails, or the file is too large.", "attributes": [ - { - "name": "Message text", - "purposes": [ - "Searchable" - ], - "text": "The text described above. This is what a query matches, and what HydraDB reads for people and topics." - }, { "name": "author", - "purposes": [ - "Searchable", - "Person or group in the graph" + "uses": [ + "Searchable text", + "Graph identity" ], - "text": "The display name of the person or bot that posted, or the raw Slack id if the name could not be read. It is the `From` line, and the graph records the message as sent by that person." + "text": "The display name of the person or bot that posted, written as the `From` line. The graph records the message as sent by that person. If the name could not be read, the raw Slack id is kept, and later syncs do not go back to fix it." }, { "name": "Shared files", - "purposes": [ - "Searchable" + "uses": [ + "Searchable text" ], "text": "The text read from each shared file, searchable with the message." }, { - "name": "title", - "purposes": [ - "Title" + "name": "created_at", + "uses": [ + "Result date", + "Searchable text" ], - "text": "Labels the message with its channel and opening words in results. When the message has text, search matches the message itself, so the channel name in the title is not guaranteed to match a query." + "text": "The message time, written as the `Sent` line." }, { - "name": "created_at", - "purposes": [ - "Date", - "Searchable" + "name": "mentions", + "uses": [ + "Searchable text", + "Graph identity" ], - "text": "The message time. It is the document date used for recency, and the `Sent` line of the text." + "text": "Display names of people mentioned in the message. The graph records each as mentioned." }, { "name": "additional_metadata.slack_ts", - "purposes": [ - "Filter" + "uses": [ + "Query filter" ], - "text": "The message's Slack timestamp. Picks out one exact message." + "text": "The message's Slack timestamp. Picks out one exact message. Not searchable." }, { "name": "additional_metadata.slack_thread_ts", - "purposes": [ - "Filter" + "uses": [ + "Query filter" ], - "text": "The timestamp of the thread's first message, empty outside a thread. Limits a query to one thread." + "text": "The timestamp of the thread's first message, empty outside a thread. Limits a query to one thread. Not searchable." }, { "name": "additional_metadata.slack_subtype", - "purposes": [ - "Filter" + "uses": [ + "Query filter" ], - "text": "Slack's message subtype, such as `bot_message` or `file_share`. Includes or excludes bot posts and file shares." + "text": "Slack's message subtype, such as `bot_message` or `file_share`. Includes or excludes bot posts and file shares. Not searchable." }, { "name": "additional_metadata.slack_bot_id", - "purposes": [ - "Filter" + "uses": [ + "Query filter" ], - "text": "The bot id when a bot posted the message. Includes or excludes one bot's messages." + "text": "The bot id when a bot posted the message. Includes or excludes one bot's messages. Not searchable." }, { "name": "additional_metadata.slack_reply_count", - "purposes": [ - "Filter" + "uses": [ + "Query filter" ], - "text": "How many replies the thread has. Finds thread starters by how many replies they drew." + "text": "How many replies the thread has. Finds thread starters by how many replies they drew. Not searchable." }, { "name": "connector_id", - "purposes": [ - "Filter", - "Access" + "uses": [ + "Query filter" ], - "text": "Limits a query to this connector. Access rules you set on a channel are matched to messages through it." + "text": "Limits a query to this connector's messages. Not searchable." }, { "name": "provider", - "purposes": [ - "Filter" + "uses": [ + "Query filter" ], - "text": "Always `slack`." + "text": "Always `slack`. Not searchable." }, { "name": "parent_id", - "purposes": [ - "Link" + "uses": [ + "Graph connection" ], - "text": "For a reply, the message that started its thread. Joins the reply to that message, so the whole conversation can be returned together." + "text": "For a reply, the message that started its thread. Joins the reply to that message, so the whole conversation can be returned together. Not searchable." }, { "name": "thread_id", - "purposes": [ - "Link" + "uses": [ + "Graph connection" ], - "text": "The thread a message belongs to. Groups every message of one thread together in the graph." - }, - { - "name": "mentions", - "purposes": [ - "Person or group in the graph", - "Searchable" - ], - "text": "Display names of people mentioned in the message. The graph records each as mentioned. The names are searchable as part of the message text." + "text": "The thread a message belongs to. Groups every message of one thread together in the graph. Not searchable." }, { "name": "Channel", - "purposes": [ - "Access" + "uses": [ + "Access rule" ], - "text": "The selected channel. For a private channel, its members decide who can read its messages." + "text": "The selected channel. For a private channel, its members decide who can read its messages. Not searchable." }, { "name": "attachment_count", - "purposes": [ - "Stored with results" + "uses": [ + "Stored only" ], "text": "How many legacy attachments the message had." }, { "name": "file_count", - "purposes": [ - "Stored with results" + "uses": [ + "Stored only" ], "text": "How many shared files Slack listed, including any that could not be downloaded." }, { "name": "is_edited", - "purposes": [ - "Stored with results" + "uses": [ + "Stored only" ], "text": "Whether Slack marked the message as edited when it was read. Later edits are not picked up automatically." }, { "name": "edited_by", - "purposes": [ - "Stored with results" + "uses": [ + "Stored only" ], "text": "The display name of the editor, when edited. The editor is not added to the graph as a person." }, { "name": "edited_at", - "purposes": [ - "Stored with results" + "uses": [ + "Stored only" ], - "text": "The edit time, when edited. The document date stays the original message time." + "text": "The edit time, when edited. The result date stays the original message time." }, { "name": "slack_files", - "purposes": [ - "Stored with results" + "uses": [ + "Stored only" ], "text": "The details Slack supplied for each shared file, kept even when a file's text could not be read." - }, - { - "name": "Reactions", - "purposes": [ - "Not kept" - ], - "text": "Reactions are not read." } ] } ], + "example_searches": [ + "What did the team decide about the release last week?", + "What did Priya say in the thread about the pricing change?", + "Which messages were posted by the alerts bot?" + ], "graph": { "connections": [ "A thread reply to the message that started the thread.", @@ -252,45 +252,13 @@ "People mentioned in a message.", "An editor is kept with the message but not added to the graph." ], - "from_text": "Topics, decisions, people and organisations named in prose, in the message text, legacy attachment text and shared file text. Each reply is read together with the text of its thread's first message." - }, - "permissions": { - "carried": true, - "who_can_read": "A public channel's messages can be read by the whole workspace. A private channel's messages can be read by its members. HydraDB reads this once per channel on each sync; there is no per-message permission.", - "identity": "A member's email address, in lower case. Bots and deactivated users have no email and are left out.", - "when_unreadable": "If HydraDB cannot read a channel's privacy, members or member emails, an access rule you set on that channel stays in force. Without a rule, the connector status shows a permission warning, and depending on your deployment's setting the messages either stay readable or are hidden until permissions can be read.", - "notes": [ - "A private channel with more than 1,000 members who have emails, or more than 3,000 members in all, cannot be captured. Set an access rule on such a channel.", - "Without `users:read.email`, permissions cannot be captured for any private channel." - ] - }, - "sync": { - "first_sync": "A newly selected channel reads back the window set by `lookback_days`, 30 days by default.", - "changes": "Each sync reads recent history for new messages, and new replies on threads whose latest reply moved. A second pass, every 6 hours by default, walks the channel's whole history in steps to find new replies on older threads.", - "edits": "A routine sync does not pick up an edit to a message that is already indexed.", - "deletes": "Deleted messages are not removed. A message deleted in Slack stays searchable in HydraDB." + "from_text": "The message text, legacy attachment text and shared file text. Each reply is read together with the text of its thread's first message." }, "not_synced": [ - "Archived channels: discovery does not offer them.", + "Archived channels: HydraDB does not list them for selection.", "Direct messages and group direct messages.", "System messages: joins, leaves, renames, topic and purpose changes, pins, bots being added or removed, and thread broadcasts.", - "Edits and deletions made after a message was indexed.", + "Edits and deletions made after a message was synced.", "Reactions." - ], - "questions": [ - "What did the team decide about the release last week?", - "What did Priya say in the thread about the pricing change?", - "Which messages were posted by the alerts bot?", - "What does the PDF shared in the design channel say about the new layout?" - ], - "good_to_know": [ - { - "title": "Naming a channel does not filter to it.", - "text": "When a message has text, search matches the message, not its `#channel` title. A channel name in a query does not reliably limit results to that channel." - }, - { - "title": "A name that could not be read stays an id.", - "text": "If HydraDB could not read a person's name, the message keeps the raw Slack id, and later syncs do not go back to fix it." - } ] } diff --git a/scripts/connector_pages/stripe.json b/scripts/connector_pages/stripe.json index a0278230..09807504 100644 --- a/scripts/connector_pages/stripe.json +++ b/scripts/connector_pages/stripe.json @@ -1,34 +1,98 @@ { - "description": "Sync customers, invoices, subscriptions and charges from a Stripe account, each linked to its customer.", - "intro": [ - "The Stripe connector reads one Stripe account. Customers, invoices, subscriptions and charges each become one document with a readable summary, and an invoice carries its line items.", - "Invoices, subscriptions and charges are linked to the customer they belong to." + "description": "Sync customers, invoices, subscriptions and charges from one Stripe account. Invoices, subscriptions and charges link to their customer.", + "opening": [ + "Sync customers, invoices, subscriptions and charges from one Stripe account. Each record is one document with a readable summary, and an invoice carries its line items. Invoices, subscriptions and charges link to their customer.", + "Stripe permissions are not imported, so every synced record is visible to everyone who can query the collection unless you set an access rule. Other Stripe objects, such as products, refunds and payouts, are not synced. Deletions in Stripe are not detected." ], "callouts": { - "synced": { + "opening": { "kind": "warning", - "text": "Amounts in the text are shown in major units, assuming two decimal places. For a zero-decimal currency, the amounts read 100 times too small. The stored numbers are unchanged." + "text": "Searchable amounts assume two decimal places. For a currency such as JPY, an amount of 100 is shown as 1.00, so the searchable text understates it by a factor of 100. Original stored amounts are unchanged." } }, + "permissions": { + "carried": false + }, "connect": { "auth": "Stripe uses a secret key together with the account id.", "credentials": [ - {"name": "client_secret", "type": "secret string", "required": true, "text": "A Stripe secret key, `sk_live_...` or `sk_test_...`, with read access to the account's resources."}, - {"name": "account_id", "type": "string", "required": true, "text": "The Stripe account id, `acct_...`."} + { + "name": "client_secret", + "type": "secret string", + "required": true, + "text": "A Stripe secret key, `sk_live_...` or `sk_test_...`, with read access to the account's resources." + }, + { + "name": "account_id", + "type": "string", + "required": true, + "text": "The Stripe account id, `acct_...`." + } ], "steps": [ - {"title": "Create the connector", "text": "Paste the secret key as `client_secret` and the account id as `account_id`."}, - {"title": "Select the account", "text": "Discover offers one `All data` resource for the account. There are no smaller parts to pick. Select it."} + { + "title": "Create the connector", + "text": "Paste the secret key as `client_secret` and the account id as `account_id`." + }, + { + "title": "Select the account", + "text": "Select the account's `All data` resource. It syncs customers, invoices, subscriptions and charges together. You cannot select these record types separately." + } ], "account": "One connector reads one Stripe account. A test-mode key reads test data and a live-mode key reads live data." }, + "sync": { + "first_sync": "Reaches back the window set by `lookback_days`, 30 days by default.", + "changes": "Each sync lists records created in the sync window, and reads Stripe's events for updates in the same window.", + "edits": "An update, such as an invoice being paid, arrives as an event and replaces the record's document.", + "deletes": "Deletions in Stripe are not detected. A deleted record stays in HydraDB.", + "notes": [ + "Updates are read from events that reach back 30 days. After a long pause, updates to older records can be missed." + ] + }, "shared_attributes": [ - {"name": "created", "purposes": ["Date"], "text": "When the record was created. It is the document date, and it stays the creation time after the record is updated."}, - {"name": "additional_metadata.stripe_id", "purposes": ["Filter"], "text": "The Stripe id: `cus_...`, `in_...`, `sub_...` or `ch_...`. Targets one record. A customer's id is also what its invoices, subscriptions and charges link to."}, - {"name": "connector_id", "purposes": ["Filter"], "text": "Limits a query to this connector."}, - {"name": "provider", "purposes": ["Filter"], "text": "Always `stripe`."}, - {"name": "stream_type", "purposes": ["Stored with results"], "text": "The record type: `customers`, `invoices`, `subscriptions` or `charges`."}, - {"name": "Other Stripe fields", "purposes": ["Stored with results"], "text": "Every other field Stripe returns for the record, such as an address, metadata or invoice settings. A search does not match them, and they are not filters."} + { + "name": "created", + "uses": [ + "Result date" + ], + "text": "When the record was created. It stays the result date after the record is updated, so ranking by date follows creation time. Not searchable." + }, + { + "name": "additional_metadata.stripe_id", + "uses": [ + "Query filter" + ], + "text": "The Stripe id: `cus_...`, `in_...`, `sub_...` or `ch_...`. Targets one record. Not searchable." + }, + { + "name": "connector_id", + "uses": [ + "Query filter" + ], + "text": "Limits a query to this connector's records. Not searchable." + }, + { + "name": "provider", + "uses": [ + "Query filter" + ], + "text": "Always `stripe`. Not searchable." + }, + { + "name": "stream_type", + "uses": [ + "Stored only" + ], + "text": "The record type: `customers`, `invoices`, `subscriptions` or `charges`." + }, + { + "name": "Other Stripe fields", + "uses": [ + "Stored only" + ], + "text": "Every other field Stripe returns for the record, such as a customer's address, metadata or invoice settings. Kept for inspection only. A query does not match them and cannot filter on them." + } ], "documents": [ { @@ -36,13 +100,18 @@ "kind": "custom", "one_document": "One customer.", "title": "The customer's name, or their email when there is no name.", - "text": "The customer's description, then `Name`, `Email`, `Phone` and `Balance` lines, with the balance in its currency.", + "text": "The customer's description, then `Name`, `Email`, `Phone` and `Balance` lines, with the balance in its currency. The title is searchable too.", "date": "When the customer was created.", "link_back": "None.", "attributes": [ - {"name": "Customer text", "purposes": ["Searchable"], "text": "The description, name, email, phone and balance, as described above."}, - {"name": "title", "purposes": ["Title", "Searchable"], "text": "Names the customer in results."}, - {"name": "email", "purposes": ["Person or group in the graph", "Searchable", "Title"], "text": "The customer's email. It identifies the customer as a person in the graph, appears in the `Email` line, and is the title when there is no name."} + { + "name": "email", + "uses": [ + "Searchable text", + "Graph identity" + ], + "text": "The customer's email. It identifies the customer as a person in the graph, appears in the `Email` line, and is the title when there is no name." + } ] }, { @@ -50,15 +119,25 @@ "kind": "custom", "one_document": "One invoice, with its line items.", "title": "`Invoice - `, using the customer's name or email.", - "text": "The invoice description, then `Customer`, `Email`, `Status`, `Total`, `Amount due`, `Amount paid`, `Due date` and `Line items` lines. Each line item shows its description and amount.", + "text": "The invoice description, then `Customer`, `Email`, `Status`, `Total`, `Amount due`, `Amount paid`, `Due date` and `Line items` lines. Each line item shows its description and amount. The title is searchable too.", "date": "When the invoice was created.", "link_back": "None.", "files": "Invoice PDFs are not downloaded.", "attributes": [ - {"name": "Invoice text", "purposes": ["Searchable"], "text": "The description, customer, status, amounts, due date and line items, as described above."}, - {"name": "title", "purposes": ["Title", "Searchable"], "text": "Names the invoice in results."}, - {"name": "Line items", "purposes": ["Searchable"], "text": "Each line's description and amount, written into the `Line items` line."}, - {"name": "customer", "purposes": ["Link"], "text": "The customer id. Links the invoice to its customer's document."} + { + "name": "Line items", + "uses": [ + "Searchable text" + ], + "text": "Each line's description and amount, written into the `Line items` line." + }, + { + "name": "customer", + "uses": [ + "Graph connection" + ], + "text": "The customer id. Links the invoice to its customer. The id itself is not searchable. The customer's name or email is part of the text." + } ] }, { @@ -66,13 +145,25 @@ "kind": "custom", "one_document": "One subscription.", "title": "The plan's nickname or name, or the plan id, followed by `subscription`.", - "text": "`Plan`, `Status`, `Amount`, `Quantity`, `Customer`, `Started` and `Current period end` lines. `Amount` is the plan price with its currency and interval, for example `49.00 USD/month`. `Customer` is the customer's name, or the id when the name is not known.", + "text": "`Plan`, `Status`, `Amount`, `Quantity`, `Customer`, `Started` and `Current period end` lines. `Amount` is the plan price with its currency and interval, for example `49.00 USD/month`. The title is searchable too.", "date": "When the subscription was created.", "link_back": "None.", "attributes": [ - {"name": "Subscription text", "purposes": ["Searchable"], "text": "The plan, status, price, quantity, customer and period dates, as described above."}, - {"name": "plan", "purposes": ["Title", "Searchable"], "text": "The subscription's plan. Its nickname or name is the title, and its price and interval form the `Amount` line."}, - {"name": "customer", "purposes": ["Link", "Searchable"], "text": "The customer id. Links the subscription to its customer's document. The customer's name appears in the text."} + { + "name": "plan", + "uses": [ + "Searchable text" + ], + "text": "The plan nickname or name, or the plan id when neither is available, forms the title followed by `subscription`. Its price and billing interval form the searchable `Amount` line. Product or price details that live only in other fields are not searchable." + }, + { + "name": "customer", + "uses": [ + "Searchable text", + "Graph connection" + ], + "text": "The customer id links the subscription to its customer. The searchable `Customer` line uses the customer's name when known, or the id otherwise." + } ] }, { @@ -80,16 +171,25 @@ "kind": "custom", "one_document": "One charge.", "title": "The charge description, or `Charge - ` when there is none.", - "text": "The charge description, then `Customer`, `Amount`, `Status`, `Receipt email` and `Failure message` lines. `Customer` is the first of the billing name, billing email, receipt email, customer name and customer id that is present.", + "text": "The charge description, then `Customer`, `Amount`, `Status`, `Receipt email` and `Failure message` lines. `Customer` is the first of the billing name, billing email, receipt email, customer name and customer id that is present. The title is searchable too.", "date": "When the charge was created.", "link_back": "None.", "attributes": [ - {"name": "Charge text", "purposes": ["Searchable"], "text": "The description, payer, amount, status and failure reason, as described above."}, - {"name": "title", "purposes": ["Title", "Searchable"], "text": "Names the charge in results."}, - {"name": "customer", "purposes": ["Link"], "text": "The customer id. Links the charge to its customer's document."} + { + "name": "customer", + "uses": [ + "Graph connection" + ], + "text": "The customer id. Links the charge to its customer. The id itself is not searchable unless it is the only customer detail, in which case it fills the `Customer` line." + } ] } ], + "example_searches": [ + "What status, amount due and amount paid are recorded for Acme Corp's invoice INV-0042?", + "What plan is jane@example.com subscribed to, and when does the current period end?", + "Why did the charge for jane@example.com fail?" + ], "graph": { "connections": [ "An invoice to its customer.", @@ -101,34 +201,12 @@ "people": [ "Each customer, identified by their email." ], - "from_text": "Products and plans as entities, and anything written in descriptions." - }, - "permissions": { - "carried": false - }, - "sync": { - "first_sync": "Reaches back the window set by `lookback_days`, 30 days by default.", - "changes": "Each sync lists records created in the sync window, and reads Stripe's events for updates in the same window.", - "edits": "An update, such as an invoice being paid, arrives as an event and replaces the record's document.", - "deletes": "Deletions in Stripe are not detected. A deleted record stays in HydraDB.", - "notes": [ - "Updates are read from events that reach back 30 days. After a long pause, updates to older records can be missed." - ] + "from_text": "Descriptions, plan names and the rest of each record's summary." }, "not_synced": [ "Products, prices and plans as their own documents.", "Events, payouts, refunds, disputes, balance transactions and other Stripe objects.", "Deletions in Stripe.", "Invoice PDFs and hosted invoice pages." - ], - "questions": [ - "What status, amount due and amount paid are recorded for Acme Corp's invoice INV-0042?", - "What plan is jane@example.com subscribed to, and when does the current period end?", - "Why did the charge for jane@example.com fail?", - "What line items were on Acme Corp's last invoice?" - ], - "good_to_know": [ - {"title": "Recency follows creation time.", "text": "A record's date stays its creation time after it is updated, so recency ranks records by when they were created."}, - {"title": "Plan details come from the plan only.", "text": "Product or price details that live only in other fields are not searchable."} ] } diff --git a/scripts/generate_connector_pages.py b/scripts/generate_connector_pages.py index 47720361..63bdcbdf 100644 --- a/scripts/generate_connector_pages.py +++ b/scripts/generate_connector_pages.py @@ -173,32 +173,48 @@ def navigation(by_group): return text[:start] + block + text[end + 1:] -PURPOSES = { - "Title": "names the item in results.", - "Searchable": "part of the text a query matches.", - "Date": "the time HydraDB uses for recency.", - "Filter": "a key a query can filter on, typed exactly as shown.", - "Link": "connects this item to another item.", - "Person or group in the graph": "a person or group the knowledge graph attaches the item to.", - "Access": "decides who can read the item.", - "Stored with results": "kept on the document, and shown when you open or inspect it. A search does not match it.", - "Not kept": "the provider has it, and HydraDB does not keep it.", +# Badges a customer sees on each attribute. The legend is printed once, on the providers overview. +USES = { + "Searchable text": "part of the text a query matches.", + "Query filter": "a key you can filter a query on, typed exactly as shown.", + "Result date": "the date HydraDB uses when it ranks results by date.", + "Graph connection": "links the item to another item in the knowledge graph.", + "Graph identity": "names a person or group, and the graph attaches the item to them.", + "Access rule": "decides who can read the item.", + "Stored only": "kept on the item and shown when you inspect it. A query does not match it and cannot filter on it.", } -FOLDED = ("Stored with results", "Not kept") -KINDS = { - "message": ("a message", "a chat or conversation message, kept with its author and its thread"), - "ticket": ("a ticket", "an issue, task or support ticket, with its workflow and ownership details"), - "knowledge_base": ("a page", "a page, article or other document-style content"), - "custom": ("a record", "an item that does not fit one of the specialised kinds, searched through its text"), - "email": ("an email", "an email message, with its sender, recipients and subject"), - "comment": ("a comment", "a note or comment that belongs to another item"), - "contact": ("a contact", "a person or organization record"), - "meeting": ("a meeting", "a meeting or calendar event"), - "container": ("a container", "a project, channel, folder or space that holds other items"), - "iteration": ("an iteration", "a sprint, cycle or release with dates and a goal"), +STORED_ONLY = "Stored only" +SEARCHABLE = "Searchable text" +CLASSES = { + "email": ("Email", "an email message, with its sender, recipients, subject and thread."), + "message": ("Message", "a chat or conversation message, with its author and thread."), + "ticket": ("Ticket", "an issue, task or support ticket, with its workflow and ownership details."), + "knowledge_base": ("Page", "a page, article or other document-style content."), + "contact": ("Contact", "a person or organization record."), + "comment": ("Comment", "a comment that belongs to another item or thread."), + "meeting": ("Meeting", "a meeting or calendar event."), + "custom": ("Record", "a record that fits none of the other classes."), + "container": ("Container", "a project, channel, folder or space that holds other items."), + "iteration": ("Iteration", "a sprint, cycle or release with dates, a state and a goal."), } -COPY_KEYS = {"description", "intro", "connect", "documents", "graph", "permissions", "sync", "not_synced", "questions", "good_to_know"} -CALLOUT_SECTIONS = {"connect", "synced", "graph", "permissions", "sync"} +COPY_KEYS = {"description", "opening", "permissions", "connect", "sync", "documents", "graph", "not_synced"} +OPTIONAL_COPY_KEYS = {"callouts", "shared_attributes", "example_searches"} +CONNECT_KEYS = {"auth", "credentials", "steps", "account"} +OPTIONAL_CONNECT_KEYS = {"alternatives", "credentials_note", "settings", "advanced_settings", "permissions_label", "permissions", "permissions_note", "examples", "scope_unit"} +CALLOUT_SECTIONS = {"opening", "permissions", "connect", "sync", "synced", "graph"} +MAX_EXAMPLE_SEARCHES = 3 + + +def attribute_problems(item): + uses = item.get("uses") or [] + name = item.get("name") + if not uses or any(use not in USES for use in uses): + return [f"{name}: uses {uses}"] + if STORED_ONLY in uses and len(uses) > 1: + return [f"{name}: {STORED_ONLY} cannot be combined with another use"] + if SEARCHABLE not in uses and STORED_ONLY not in uses and "not searchable" not in item.get("text", "").lower(): + return [f"{name}: an attribute with no search use must say it is not searchable"] + return [] def load_copy(identifier): @@ -208,21 +224,24 @@ def load_copy(identifier): return None copy = json.loads(path.read_text()) problems = [f"missing {key}" for key in sorted(COPY_KEYS - copy.keys())] - problems += [f"unknown {key}" for key in sorted(copy.keys() - COPY_KEYS - {"callouts", "shared_attributes"})] + problems += [f"unknown {key}" for key in sorted(copy.keys() - COPY_KEYS - OPTIONAL_COPY_KEYS)] + connect = copy.get("connect", {}) + problems += [f"connect missing {key}" for key in sorted(CONNECT_KEYS - connect.keys())] + problems += [f"connect unknown {key}" for key in sorted(connect.keys() - CONNECT_KEYS - OPTIONAL_CONNECT_KEYS)] + if identifier in SCOPED_PROVIDER_EXAMPLES and not connect.get("scope_unit"): + problems.append("connect.scope_unit names what one provider_account_scope covers") for section in copy.get("callouts", {}): if section not in CALLOUT_SECTIONS: problems.append(f"callout for unknown section {section}") for document in copy.get("documents", []): - if document.get("kind") not in KINDS: + if document.get("kind") not in CLASSES: problems.append(f"{document.get('name')}: unknown kind {document.get('kind')}") - for attribute in all_attributes(copy): - unknown = [purpose for purpose in attribute.get("purposes", []) if purpose not in PURPOSES] - if unknown or not attribute.get("purposes"): - problems.append(f"{attribute.get('name')}: purposes {attribute.get('purposes')}") - if not 3 <= len(copy.get("questions", [])) <= 5: - problems.append("questions needs three to five entries") - if len(copy.get("good_to_know", [])) > 4: - problems.append("good_to_know has more than four entries") + if not document.get("attributes"): + problems.append(f"{document.get('name')}: no attributes") + for item in all_attributes(copy): + problems += attribute_problems(item) + if len(copy.get("example_searches", [])) > MAX_EXAMPLE_SEARCHES: + problems.append(f"example_searches has more than {MAX_EXAMPLE_SEARCHES} entries") if not isinstance(copy.get("permissions", {}).get("carried"), bool): problems.append("permissions.carried must be true or false") if problems: @@ -248,6 +267,14 @@ def field(name, kind, text, required=False): return [f'', mdx(text), "", ""] +def fields(items): + return [line for item in items for line in field(item["name"], item["type"], item["text"], item.get("required", False))] + + +def accordion(title, lines): + return [f'', "", *lines, "", ""] + + def callout(copy, section): found = copy.get("callouts", {}).get(section) if not found: @@ -260,139 +287,151 @@ def labelled(label, value): return f"- **{label}:** {mdx(value)}" +def bullets(value): + return [f"- {mdx(item)}" for item in value] if isinstance(value, list) else [mdx(value)] + + def attributes(items): - groups = {label: [item for item in items if item["purposes"][0] == label] for label in PURPOSES} - lines = [] - for label, members in groups.items(): - if members and label not in FOLDED: - lines += [f"**{label}**", ""] - for item in members: - lines += field(item["name"], ", ".join(item["purposes"]), item["text"]) - folded = [label for label in FOLDED if groups[label]] - if folded: - count = sum(len(groups[label]) for label in folded) - lines.append(f'') - lines.append("") - for label in folded: - for item in groups[label]: - lines += field(item["name"], ", ".join(item["purposes"]), item["text"]) - lines += ["", ""] + """Every use an attribute has shows as its own badge. Stored-only fields fold into one accordion per record type.""" + shown = [item for item in items if STORED_ONLY not in item["uses"]] + stored = [item for item in items if STORED_ONLY in item["uses"]] + lines = [line for item in shown for line in field(item["name"], ", ".join(use for use in USES if use in item["uses"]), item["text"])] + if stored: + lines += accordion(f"Stored only, not searchable ({len(stored)})", [line for item in stored for line in field(item["name"], STORED_ONLY, item["text"])]) return lines -def copy_body(provider, copy, beta, acl_supported): - name = provider["display_name"] - identifier = provider["production_id"] - connect = copy["connect"] - lines = [line for paragraph in copy["intro"] for line in (mdx(paragraph), "")] +def opening_section(provider, copy, beta): + lines = [line for paragraph in copy["opening"] for line in (mdx(paragraph), "")] + lines += callout(copy, "opening") if beta: - lines += ["", f"{mdx(name)} is in beta.", "", ""] + lines += ["", f"{mdx(provider['display_name'])} is in beta.", "", ""] + return lines + - lines += ["## Before you connect", "", *callout(copy, "connect"), mdx(connect["auth"]), "", "**Credentials**", ""] - for credential in connect["credentials"]: - lines += field(credential["name"], credential["type"], credential["text"], credential["required"]) +def permissions_section(provider, copy, acl_supported): + name = mdx(provider["display_name"]) + permissions = copy["permissions"] + if permissions["carried"] != acl_supported: + raise ValueError(f"{provider['production_id']}: permissions.carried is {permissions['carried']} but production reports acl_supported {acl_supported}") + lines = ["## Permissions", ""] + if permissions["carried"]: + lines += [ + f"Turn on **Enforce ACL** for this connector to make search follow {name} permissions. With Enforce ACL off, HydraDB does not enforce them. Only a workspace owner or writer signed in to HydraDB can turn it on. API-key requests must omit `enforce_acl`, including `false`. See [Enforce ACL]({GUIDE}#enforce-acl).", + "", *callout(copy, "permissions"), + labelled("Who can read an item", permissions["who_can_read"]), + labelled("How a person is identified", permissions["identity"]), + labelled("When permissions cannot be read", permissions["when_unreadable"]) + + " On HydraDB Cloud, with Enforce ACL on, such an item follows the access rule you set on its resource. With no rule, it is hidden from search. Self-hosted deployments can be configured differently. Permission warnings appear in [Get Connector Status](/api-reference/v2/endpoint/get-connector-status).", + *bullets(permissions.get("notes", [])), "", + f"You can also [set your own rule on a resource]({GUIDE}#set-your-own-rule-on-a-resource).", "", + ] + else: + lines += [ + "", + f"{name} permissions are not imported, so **Enforce ACL** is unavailable for this connector. Every synced item is visible to everyone who can query the collection, unless you [set an access rule on the resource]({GUIDE}#set-your-own-rule-on-a-resource).", + "", "", *callout(copy, "permissions"), + ] + if permissions.get("notes"): + lines += [*bullets(permissions["notes"]), ""] + lines += [f"API-key requests must omit `enforce_acl`, including `false`. See [ACL on synced content]({GUIDE}#5-acl-native-rbac-awareness).", ""] + return lines + + +def connect_section(provider, copy): + name = mdx(provider["display_name"]) + connect = copy["connect"] + lines = ["## Before you connect", "", *callout(copy, "connect"), "### Credentials", "", mdx(connect["auth"]), "", *fields(connect["credentials"])] + if connect.get("alternatives"): + lines += accordion("Other credential options", [line for option in connect["alternatives"] for line in (f"**{mdx(option['title'])}**", "", *fields(option["credentials"]))]) if connect.get("credentials_note"): lines += [mdx(connect["credentials_note"]), ""] if connect.get("settings"): - lines += ["**Connector settings**", ""] - for setting in connect["settings"]: - lines += field(setting["name"], setting["type"], setting["text"], setting["required"]) + lines += ["**Connector settings**", "", *fields(connect["settings"])] + if connect.get("advanced_settings"): + lines += accordion(f"Connector-wide defaults ({len(connect['advanced_settings'])})", fields(connect["advanced_settings"])) if connect.get("permissions"): lines += [f"**{connect.get('permissions_label', 'Permissions to grant')}**", ""] lines += [f"- `{item['name']}`" + (f": {mdx(item['text'])}" if item.get("text") else "") for item in connect["permissions"]] lines.append("") if connect.get("permissions_note"): lines += [mdx(connect["permissions_note"]), ""] - lines += ["**Set it up**", "", ""] + lines += ["### Set it up", "", ""] for step in connect["steps"]: lines += [f' ', f" {mdx(step['text'])}", " "] lines += ["", ""] for example in connect.get("examples", []): lines += [mdx(example["intro"]), "", ""] for tab in example["tabs"]: - lines += [f"```{tab['language']} {tab['title']}", tab["code"], "```"] + lines += [f"```json {tab['title']}", json.dumps(tab["json"], indent=2), "```"] lines += ["", ""] - lines += [ - f"Use provider `{identifier}` with [Create Connector](/api-reference/v2/endpoint/create-connector). Then call [Discover Connector Resources](/api-reference/v2/endpoint/discover-connector-resources) to list what the credentials can reach, and [Configure Connector](/api-reference/v2/endpoint/configure-connector) to choose what to sync.", - "", - f"Create one connector per account, each with that account's own credentials. {mdx(connect.get('account', ''))}".rstrip(), - "", - ] + lines += [mdx(connect["account"]), ""] if provider["provider"] in SCOPED_PROVIDER_EXAMPLES: first, second = SCOPED_PROVIDER_EXAMPLES[provider["provider"]] lines += [ - f"To connect several {mdx(name)} accounts, give each connector its own `provider_account_scope`, for example `{first}` and `{second}`. Both are caller-provided example identifiers. HydraDB stores the value as given and does not check it against {mdx(name)}'s own account ids. Two connectors that share a scope and write to the same collection can overwrite each other's items. See [several accounts from one provider]({GUIDE}#6-connect-several-accounts-from-one-provider).", + f"To connect more than one {mdx(connect['scope_unit'])}, give each connector its own `provider_account_scope`, such as `{first}` and `{second}`. These are labels you choose, not {name}'s own account ids, and HydraDB does not check them. Two connectors that share a scope and write to the same collection can overwrite each other's items. See [several accounts from one provider]({GUIDE}#6-connect-several-accounts-from-one-provider).", "", ] + lines += accordion("Connect through the API", [ + f"Use provider `{provider['production_id']}` with [Create Connector](/api-reference/v2/endpoint/create-connector). Then call [Discover Connector Resources](/api-reference/v2/endpoint/discover-connector-resources) to list what the credentials can reach, and [Configure Connector](/api-reference/v2/endpoint/configure-connector) to choose what to sync.", + "", + ]) + return lines - lines += ["## What gets synced", "", *callout(copy, "synced"), "**What the labels mean**", ""] - lines += [f"- **{label}:** {meaning}" for label, meaning in PURPOSES.items()] - lines.append("") + +def sync_section(copy): + sync = copy["sync"] + return [ + "## Keeping in sync", "", *callout(copy, "sync"), + labelled("First sync", sync["first_sync"]), labelled("New and changed items", sync["changes"]), + labelled("Edits", sync["edits"]), labelled("Deletions", sync["deletes"]), + *bullets(sync.get("notes", [])), + "", "After the first sync, HydraDB syncs every hour by default. Set `sync_interval_seconds` on the connector to change it.", "", + ] + + +def synced_section(provider, copy): + lines = ["## What gets synced", "", *callout(copy, "synced")] if copy.get("shared_attributes"): - lines += [f"### On every {mdx(name)} document", ""] - lines += attributes(copy["shared_attributes"]) + lines += [f"### On every {mdx(provider['display_name'])} item", "", *attributes(copy["shared_attributes"])] for document in copy["documents"]: lines += [f"### {document['name']}", ""] - lines.append(labelled("One document", document["one_document"])) - lines.append(labelled("Title", document["title"])) - lines.append(labelled("Text", document["text"])) - lines.append(labelled("Date", document["date"])) - lines.append(labelled("Link back", document["link_back"])) - if document.get("files"): - lines.append(labelled("Files", document["files"])) - lines.append("") - lines += attributes(document["attributes"]) + lines += [labelled(label, document[key]) for label, key in (("One document", "one_document"), ("Title", "title"), ("Text", "text"), ("Date", "date"), ("Link back", "link_back"), ("Files", "files")) if document.get(key)] + lines += ["", *attributes(document["attributes"])] + if copy.get("example_searches"): + lines += ["**Example searches**", "", *bullets(copy["example_searches"]), ""] + return lines + +def graph_section(provider, copy): + name = mdx(provider["display_name"]) graph = copy["graph"] - lines += ["## How it fits into the graph", "", *callout(copy, "graph"), "**What each item becomes**", ""] - lines += [f"- {mdx(document['name'])}: {KINDS[document['kind']][0]}, {KINDS[document['kind']][1]}." for document in copy["documents"]] - lines += ["", f"**Connections {mdx(name)} creates**", ""] - lines += [f"- {mdx(item)}" for item in graph["connections"]] if isinstance(graph["connections"], list) else [mdx(graph["connections"])] - lines += ["", "**People and groups it names**", ""] - lines += [f"- {mdx(item)}" for item in graph["people"]] if isinstance(graph["people"], list) else [mdx(graph["people"])] - lines += [ - "", "**What HydraDB reads from the text**", "", mdx(graph["from_text"]), "", - f"There is no per-connector setup for this. Every connector maps its items onto the same shared model, and HydraDB finds people, organizations, projects, products and other entities in the text the same way for every source. To steer what it looks for, use [custom instructions]({GUIDE}#4-custom-ingestion-instructions).", + return [ + "## How it fits into the graph", "", *callout(copy, "graph"), + *(f"- {mdx(document['name'])} use the {CLASSES[document['kind']][0]} class." for document in copy["documents"]), + "", f"[Graph classes](/essentials/v2/connector-providers#graph-classes) explains each class.", "", + f"**Connections {name} creates**", "", *bullets(graph["connections"]), + "", "**People and groups**", "", *bullets(graph["people"]), + "", "**Found in the text**", "", + f"{mdx(graph['from_text'])} HydraDB identifies people, organizations, projects and other named things in this text. To steer what it looks for, use [custom instructions]({GUIDE}#4-custom-ingestion-instructions).", "", ] - permissions = copy["permissions"] - if permissions["carried"] != acl_supported: - raise ValueError(f"{identifier}: permissions.carried is {permissions['carried']} but production reports acl_supported {acl_supported}") - lines += ["## Permissions", "", *callout(copy, "permissions")] - if permissions["carried"]: - lines += [f"This connector can carry {mdx(name)} permissions into search.", ""] - lines += [labelled("Who can read an item", permissions["who_can_read"]), labelled("How a person is identified", permissions["identity"]), labelled("When permissions cannot be read", permissions["when_unreadable"]), ""] - lines += [*(f"- {mdx(item)}" for item in permissions.get("notes", [])), ""] if permissions.get("notes") else [] - lines += [ - f"Captured permissions filter search only when **Enforce ACL** is on for the connector. Only a signed-in human workspace owner or writer can turn it on, in the dashboard connector settings. API-key requests must omit `enforce_acl`, including `false`. See [Enforce ACL]({GUIDE}#enforce-acl). You can also [set your own rule on a resource]({GUIDE}#set-your-own-rule-on-a-resource).", - "", - ] - else: - lines += [ - "", - f"This connector does not carry {mdx(name)} permissions into search. Every synced item is visible to everyone who can query the collection, unless you [set an access rule on the resource]({GUIDE}#set-your-own-rule-on-a-resource).", - "", "", - ] - lines += [*(f"- {mdx(item)}" for item in permissions.get("notes", [])), ""] if permissions.get("notes") else [] - lines += [ - f"**Enforce ACL** cannot be turned on for {mdx(name)}, because it needs a provider that reports `acl_supported: true`. API-key requests must omit `enforce_acl`, including `false`. See [ACL on synced content]({GUIDE}#5-acl-native-rbac-awareness).", - "", - ] - lines += ["Database and collection names decide where content lands; collection names do not authorize access.", ""] - sync = copy["sync"] - lines += ["## Keeping in sync", "", *callout(copy, "sync")] - lines += [labelled("First sync", sync["first_sync"]), labelled("New and changed items", sync["changes"]), labelled("Edits", sync["edits"]), labelled("Deletions", sync["deletes"])] - lines += [f"- {mdx(item)}" for item in sync.get("notes", [])] - lines += ["", "After the first sync, HydraDB syncs every hour by default. Set `sync_interval_seconds` to change it.", ""] - - lines += ["## Not synced", "", *(f"- {mdx(item)}" for item in copy["not_synced"]), ""] - lines += ["## Questions this lets you answer", "", *(f"- {mdx(item)}" for item in copy["questions"]), ""] - lines += ["## Good to know", ""] - lines += [f"- **{mdx(item['title'])}** {mdx(item['text'])}" for item in copy["good_to_know"]] - lines.append("") - return lines +def not_synced_section(copy): + return ["## Not synced", "", *bullets(copy["not_synced"]), ""] + + +def copy_body(provider, copy, beta, acl_supported): + return [ + *opening_section(provider, copy, beta), + *permissions_section(provider, copy, acl_supported), + *connect_section(provider, copy), + *sync_section(copy), + *synced_section(provider, copy), + *graph_section(provider, copy), + *not_synced_section(copy), + ] def legacy_body(provider): @@ -478,12 +517,21 @@ def pages(): 'description: "See what each connector syncs, what it needs, and who can read what it brings in."', "---", "", f"Choose a provider to see what to set up and what it syncs. Availability and credential fields come from your deployment's [provider catalog](/api-reference/v2/endpoint/list-connector-providers). The steps every connector shares are in the [connectors guide]({GUIDE}).", "", "## How to read a connector page", "", - "1. **Before you connect:** the credentials, permissions and steps the provider needs.", - "2. **What gets synced:** what one document is, and what HydraDB does with each attribute it keeps.", - "3. **How it fits into the graph:** what kind of item each document becomes and what it connects to.", - "4. **Permissions:** whether the provider's permissions decide who can read an item.", - "5. **Keeping in sync:** how history, edits and deletions arrive.", + "Each page opens with what the connector brings in and the limits that decide whether it fits. Then:", "", + "1. **Permissions:** whether the provider's permissions decide who can read an item.", + "2. **Before you connect:** the credentials, permissions and steps the provider needs.", + "3. **Keeping in sync:** how history, edits and deletions arrive.", + "4. **What gets synced:** what one document is, and what HydraDB does with each attribute it keeps.", + "5. **How it fits into the graph:** the class of each item and the connections the connector creates.", "6. **Not synced:** what does not come across.", "", + "### Attribute labels", "", + "Each attribute on a connector page carries one label for every use it has.", "", + *(f"- **{label}:** {meaning}" for label, meaning in USES.items()), "", + "An attribute without the Searchable text label says so in its description.", "", + "### Graph classes", "", + "Every synced item belongs to one class, so similar items from different tools are grouped the same way. A class names the kind of item. It does not promise that every detail below is filled: each connector page says what its items carry and which connections it creates.", "", + *(f"- **{title}:** {meaning}" for title, meaning in CLASSES.values()), "", + f"HydraDB also identifies people, organizations, projects and other named things in the searchable text of every item, whichever tool it came from. To steer what it looks for, use [custom instructions]({GUIDE}#4-custom-ingestion-instructions).", "", ] if len(rewritten) < len(providers): links = ", ".join(f"[{provider['display_name']}](/essentials/v2/connectors/{slug(provider['provider'])})" for provider in rewritten) diff --git a/scripts/test_connector_pages.py b/scripts/test_connector_pages.py index b869ae39..ea9cf0ca 100644 --- a/scripts/test_connector_pages.py +++ b/scripts/test_connector_pages.py @@ -2,7 +2,7 @@ import re import unittest -from generate_connector_pages import COPY, DIRECTORY, LOGOS as LOGO_DIRECTORY, PLACEHOLDER_MARK, PURPOSES, ROOT, SNAPSHOT, SCOPED_PROVIDER_EXAMPLES, artwork, load_copy, logo, pages, placeholder_logos, prose +from generate_connector_pages import COPY, DIRECTORY, LOGOS as LOGO_DIRECTORY, PLACEHOLDER_MARK, ROOT, SNAPSHOT, SCOPED_PROVIDER_EXAMPLES, artwork, load_copy, logo, pages, placeholder_logos, prose from generate_llms_index import page_paths @@ -14,7 +14,15 @@ DASHBOARD_NAMES = json.loads((ROOT / "scripts/dashboard_provider_names.json").read_text()) FILTER_KEYS = json.loads((ROOT / "scripts/production_filter_keys.json").read_text())["filter_keys"] PILOT = ("slack", "bigquery", "github", "notion", "stripe", "hubspot") -COPY_SECTIONS = ["Before you connect", "What gets synced", "How it fits into the graph", "Permissions", "Keeping in sync", "Not synced", "Questions this lets you answer", "Good to know"] +COPY_SECTIONS = ["Permissions", "Before you connect", "Keeping in sync", "What gets synced", "How it fits into the graph", "Not synced"] +# The badge vocabulary a customer reads on every attribute. The overview defines each one; provider pages do not repeat it. +BADGES = ("Searchable text", "Query filter", "Result date", "Graph connection", "Graph identity", "Access rule", "Stored only") +GRAPH_CLASSES = ("Email", "Message", "Ticket", "Page", "Contact", "Comment", "Meeting", "Record", "Container", "Iteration") +# Wording that describes HydraDB's machinery or hedges instead of stating the outcome. Checked on pages rendered from copy files and the overview. +COPY_PAGE_TERMS = ( + "declared", "declares", "shared model", "second pass", "walks", "walked", "acl_supported", "entities", "backfill", + "depending on your deployment", "matched to messages through", +) # How a connector is built is not a customer's concern. No connector page or the overview may name it. INTERNAL_TERMS = ( "moveit", "classic", "native", "golang", "go-native", "python", "tap", "taps", "singer", "lance", "lancedb", @@ -53,6 +61,10 @@ def body(text): return text.split("\n---\n", 1)[1] +def section(text, title): + return text.split(f"\n## {title}\n", 1)[1].split("\n## ", 1)[0] + + def title_logos(slug): css = TITLE_LOGOS.read_text() if TITLE_LOGOS.is_file() else "" rules = re.findall(rf'^(html(?:\.dark)?)\[data-current-path\$="/essentials/v2/connectors/{slug}"\] #page-title::before \{{[^}}]*url\("/images/connectors/([^"]+)"\)', css, re.M) @@ -82,7 +94,7 @@ def test_scoped_provider_examples_are_distinct_and_match_the_guide(self): self.assertIn("`provider_account_scope`", text) for value in pair: self.assertIn(f"`{value}`", text) - self.assertIn("caller-provided example identifiers", text) + self.assertIn("labels you choose" if load_copy(provider) else "caller-provided example identifiers", text) self.assertIn("own account ids", text) def test_all_provider_pages_keep_one_account_per_connector_and_human_enforcement(self): @@ -91,8 +103,12 @@ def test_all_provider_pages_keep_one_account_per_connector_and_human_enforcement for path in paths: text = path.read_text() with self.subTest(provider=path.stem): - self.assertIn("one connector per account", text) - self.assertIn("collection names do not authorize access", text) + if load_copy(path.stem.replace("-", "_")): + self.assertRegex(text, r"\nOne (connector|token) (reads|covers) ") + self.assertNotIn("collection names do not authorize access", text) + else: + self.assertIn("one connector per account", text) + self.assertIn("collection names do not authorize access", text) self.assertIn("API-key requests must omit `enforce_acl`", text) self.assertIn("including `false`", text) self.assertNotRegex(text, r"(?i)(?:multiple|several|two) accounts per connector") @@ -336,11 +352,11 @@ def test_every_pilot_provider_has_a_valid_copy_file(self): def test_a_copy_file_missing_a_section_or_label_is_rejected(self): broken = json.loads((COPY / "slack.json").read_text()) del broken["not_synced"] - broken["documents"][0]["attributes"][0]["purposes"] = ["Indexed"] + broken["documents"][0]["attributes"][0]["uses"] = ["Indexed"] path = COPY / "zz_broken_copy_probe.json" path.write_text(json.dumps(broken)) try: - with self.assertRaisesRegex(ValueError, r"missing not_synced.*purposes \['Indexed'\]"): + with self.assertRaisesRegex(ValueError, r"missing not_synced.*uses \['Indexed'\]"): load_copy("zz_broken_copy_probe") finally: path.unlink() @@ -375,30 +391,38 @@ def test_copy_pages_and_overview_use_no_long_dashes(self): def test_every_filter_key_on_a_copy_page_is_published_by_production(self): for provider, text in copy_pages().items(): published = set(FILTER_KEYS[provider]) - filters = re.findall(r'\n(.*?)\n', section(text, "What gets synced"), re.S) with self.subTest(provider=provider): - for kind in re.findall(r'(.*?)', text, re.S): + self.assertNotIn("not kept", title.lower()) + kinds = set(re.findall(r'