From f007d93d9b863b1bf03896bf1c4a5e17de9982d9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 19:30:59 +0000 Subject: [PATCH 01/10] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index d0d7b46e..752ab0c2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 31 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell/hyperspell-e57add0181eb2a057f8416eaf4020dd5b3042431342a51e3d4dc39af4a41aced.yml -openapi_spec_hash: d0d66b814ebe56ac7c0135f9f3aab616 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell/hyperspell-baf6a5d07b9a303fea39ea29b6b010be699a4d65e4063821a157520b6cb1210f.yml +openapi_spec_hash: dad57a5d9f17d13eef6bce8ae36b2871 config_hash: 11e84d884a86d2db0411c35fae6e9121 From a79de132cbb0eb209b0c91750d86e569d001d935 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 00:30:59 +0000 Subject: [PATCH 02/10] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 752ab0c2..968626d1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 31 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell/hyperspell-baf6a5d07b9a303fea39ea29b6b010be699a4d65e4063821a157520b6cb1210f.yml -openapi_spec_hash: dad57a5d9f17d13eef6bce8ae36b2871 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell/hyperspell-c2acdd2627c6975337c50fe513c7bc72723561d89c167ce6fd6a8b7b30199985.yml +openapi_spec_hash: 138b76c9920619f0d51af5cd0a251a68 config_hash: 11e84d884a86d2db0411c35fae6e9121 From 7b4c29a946e26c7375669ce46789359c14bed550 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 06:31:01 +0000 Subject: [PATCH 03/10] feat(api): api update --- .stats.yml | 4 ++-- tests/api-resources/memories.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.stats.yml b/.stats.yml index 968626d1..c08341be 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 31 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell/hyperspell-c2acdd2627c6975337c50fe513c7bc72723561d89c167ce6fd6a8b7b30199985.yml -openapi_spec_hash: 138b76c9920619f0d51af5cd0a251a68 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell/hyperspell-7e0b3ac5f7ed4d2322f6b23a6627efbb98567e020337b62d447993cbe6303797.yml +openapi_spec_hash: 3cafd2b018e355707e594ad761fccedd config_hash: 11e84d884a86d2db0411c35fae6e9121 diff --git a/tests/api-resources/memories.test.ts b/tests/api-resources/memories.test.ts index 7bafa169..777bc010 100644 --- a/tests/api-resources/memories.test.ts +++ b/tests/api-resources/memories.test.ts @@ -161,7 +161,7 @@ describe('resource memories', () => { query: 'What does Hyperspell do?', answer: true, effort: 'minimal', - max_results: 0, + max_results: 1, options: { after: '2019-12-27T18:11:19.117Z', answer_model: 'llama-3.1', @@ -171,7 +171,7 @@ describe('resource memories', () => { google_calendar: { calendar_id: 'calendar_id', weight: 0 }, google_drive: { weight: 0 }, google_mail: { label_ids: ['string'], weight: 0 }, - max_results: 200, + max_results: 1, memory_types: ['procedure'], notion: { notion_page_ids: ['string'], weight: 0 }, recency_half_life_days: 1, From bbc6f83ae34def0f770b603417d44824f45b435d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 24 Jun 2026 02:31:08 +0000 Subject: [PATCH 04/10] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index c08341be..dc742b85 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 31 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell/hyperspell-7e0b3ac5f7ed4d2322f6b23a6627efbb98567e020337b62d447993cbe6303797.yml -openapi_spec_hash: 3cafd2b018e355707e594ad761fccedd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell/hyperspell-63838008d705c1c64e253e141dc60a2fbc726a73f687eb72384ce4c6565bbb2a.yml +openapi_spec_hash: 6c5e0019161c23f729cdc68cab611af7 config_hash: 11e84d884a86d2db0411c35fae6e9121 From 83357dae9d6e2701c140288514178f7ec3da5b29 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 24 Jun 2026 07:30:57 +0000 Subject: [PATCH 05/10] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index dc742b85..4185d7ce 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 31 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell/hyperspell-63838008d705c1c64e253e141dc60a2fbc726a73f687eb72384ce4c6565bbb2a.yml -openapi_spec_hash: 6c5e0019161c23f729cdc68cab611af7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell/hyperspell-fe187a01f8c7a590613cf79e254d9ec1378ad63beab5cd54c792210ff93e3577.yml +openapi_spec_hash: e667d75af26b5af597259fb5e7e5f3ac config_hash: 11e84d884a86d2db0411c35fae6e9121 From bab5ed73ce7358ab3d3a15e9560337d578c4cec5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 24 Jun 2026 16:30:52 +0000 Subject: [PATCH 06/10] feat(api): api update --- .stats.yml | 4 ++-- packages/mcp-server/src/local-docs-search.ts | 8 ++++---- src/resources/shared.ts | 2 ++ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4185d7ce..b938b04d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 31 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell/hyperspell-fe187a01f8c7a590613cf79e254d9ec1378ad63beab5cd54c792210ff93e3577.yml -openapi_spec_hash: e667d75af26b5af597259fb5e7e5f3ac +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell/hyperspell-8e296fefed446d1949777be352a67727953fc7c3b3da5271543dfee9b6f72c06.yml +openapi_spec_hash: f0c49fdb847f21cd0e1e11eb9317bdd5 config_hash: 11e84d884a86d2db0411c35fae6e9121 diff --git a/packages/mcp-server/src/local-docs-search.ts b/packages/mcp-server/src/local-docs-search.ts index cc4ad20d..471147f2 100644 --- a/packages/mcp-server/src/local-docs-search.ts +++ b/packages/mcp-server/src/local-docs-search.ts @@ -692,7 +692,7 @@ const EMBEDDED_METHODS: MethodEntry[] = [ response: "{ document: object | object | object | object | object | object | object | object | object | object | object | object; resource_id: string; source: string; type: string; collection?: string; document_date?: string; ingested_at?: string; last_modified_at?: string; metadata?: object; status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'; title?: string; }", markdown: - "## list\n\n`client.memories.list(collection?: string, cursor?: string, filter?: string, size?: number, source?: string, status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'): { document: document | website | task | person | message | event | file | conversation | trace | transcript | company | deal; resource_id: string; source: string; type: string; collection?: string; document_date?: string; ingested_at?: string; last_modified_at?: string; metadata?: object; status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'; title?: string; }`\n\n**get** `/memories/list`\n\nThis endpoint allows you to paginate through all documents in the index.\nYou can filter the documents by title, date, metadata, etc.\n\n### Parameters\n\n- `collection?: string`\n Filter documents by collection.\n\n- `cursor?: string`\n\n- `filter?: string`\n Filter documents by metadata using MongoDB-style operators. Example: {\"department\": \"engineering\", \"priority\": {\"$gt\": 3}}\n\n- `size?: number`\n\n- `source?: string`\n Filter documents by source.\n\n- `status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'`\n Filter documents by status.\n\n### Returns\n\n- `{ document: { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'document'; } | { url: string; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; description?: string; favicon?: string; image_url?: string; language?: string; metadata?: metadata; text?: string; title?: string; type?: 'website'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; comments?: message[]; due_at?: string; metadata?: metadata; priority?: 'urgent' | 'high' | 'medium' | 'low'; status?: 'completed' | 'not_started' | 'in_progress' | 'cancelled'; text?: string; type?: 'task'; } | { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; } | { date: string; sender: person; id?: string; channel?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; external_id?: string; is_self?: boolean; mentioned_users?: person[]; metadata?: metadata; num_replies?: number; replies?: message[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; } | { id?: string; attendees?: person[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; end_at?: string; location?: string; meeting_url?: string; metadata?: metadata; start_at?: string; text?: string; title?: string; type?: 'event'; } | { content_type: string; filename: string; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; path?: string[]; text?: string; title?: string; type?: 'file'; } | { id?: string; channel?: string; children?: message[]; metadata?: metadata; text?: string; type?: 'conversation'; } | { id?: string; children?: trace_message | tool_call | tool_result[]; metadata?: metadata; text?: string; title?: string; type?: 'trace'; } | { id?: string; children?: utterance[]; ended_at?: string; metadata?: metadata; participants?: person[]; started_at?: string; text?: string; title?: string; type?: 'transcript'; } | { id?: string; address?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; contact_ids?: string[]; deal_ids?: string[]; description?: string; emails?: string[]; employees?: number; image_url?: string; industry?: string; is_active?: boolean; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; timezone?: string; type?: 'company'; websites?: string[]; } | { id?: string; amount?: number; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; closed_at?: string; company_ids?: string[]; contact_ids?: string[]; currency?: string; deal_source?: string; lost_reason?: string; metadata?: metadata; name?: string; pipeline?: string; probability?: number; stage?: string; tags?: string[]; text?: string; type?: 'deal'; won_reason?: string; }; resource_id: string; source: string; type: string; collection?: string; document_date?: string; ingested_at?: string; last_modified_at?: string; metadata?: object; status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'; title?: string; }`\n A document-shaped API response carrying the hyperdoc tree (ENG-2479/D12).\n\n - `document: { id?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; metadata?: { edited_by?: string; sources?: object[]; }; text?: string; title?: string; type?: 'document'; } | { url: string; id?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; description?: string; favicon?: string; image_url?: string; language?: string; metadata?: { edited_by?: string; sources?: object[]; }; text?: string; title?: string; type?: 'website'; } | { id?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; comments?: { date: string; sender: person; id?: string; channel?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; external_id?: string; is_self?: boolean; mentioned_users?: person[]; metadata?: metadata; num_replies?: number; replies?: message[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; }[]; due_at?: string; metadata?: { edited_by?: string; sources?: object[]; }; priority?: 'urgent' | 'high' | 'medium' | 'low'; status?: 'completed' | 'not_started' | 'in_progress' | 'cancelled'; text?: string; type?: 'task'; } | { id?: string; address?: string; alt_names?: string[]; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: { edited_by?: string; sources?: object[]; }; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; } | { date: string; sender: { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; }; id?: string; channel?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; external_id?: string; is_self?: boolean; mentioned_users?: { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; }[]; metadata?: { edited_by?: string; sources?: object[]; }; num_replies?: number; replies?: { date: string; sender: person; id?: string; channel?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; external_id?: string; is_self?: boolean; mentioned_users?: person[]; metadata?: metadata; num_replies?: number; replies?: message[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; }[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; } | { id?: string; attendees?: { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; }[]; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; end_at?: string; location?: string; meeting_url?: string; metadata?: { edited_by?: string; sources?: object[]; }; start_at?: string; text?: string; title?: string; type?: 'event'; } | { content_type: string; filename: string; id?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; metadata?: { edited_by?: string; sources?: object[]; }; path?: string[]; text?: string; title?: string; type?: 'file'; } | { id?: string; channel?: string; children?: { date: string; sender: person; id?: string; channel?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; external_id?: string; is_self?: boolean; mentioned_users?: person[]; metadata?: metadata; num_replies?: number; replies?: message[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; }[]; metadata?: { edited_by?: string; sources?: object[]; }; text?: string; type?: 'conversation'; } | { id?: string; children?: { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; }[]; metadata?: { edited_by?: string; sources?: object[]; }; text?: string; title?: string; type?: 'trace'; } | { id?: string; children?: { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; ended_at?: string; metadata?: { edited_by?: string; sources?: object[]; }; participants?: { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; }[]; started_at?: string; text?: string; title?: string; type?: 'transcript'; } | { id?: string; address?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; contact_ids?: string[]; deal_ids?: string[]; description?: string; emails?: string[]; employees?: number; image_url?: string; industry?: string; is_active?: boolean; metadata?: { edited_by?: string; sources?: object[]; }; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; timezone?: string; type?: 'company'; websites?: string[]; } | { id?: string; amount?: number; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; closed_at?: string; company_ids?: string[]; contact_ids?: string[]; currency?: string; deal_source?: string; lost_reason?: string; metadata?: { edited_by?: string; sources?: object[]; }; name?: string; pipeline?: string; probability?: number; stage?: string; tags?: string[]; text?: string; type?: 'deal'; won_reason?: string; }`\n - `resource_id: string`\n - `source: string`\n - `type: string`\n - `collection?: string`\n - `document_date?: string`\n - `ingested_at?: string`\n - `last_modified_at?: string`\n - `metadata?: object`\n - `status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'`\n - `title?: string`\n\n### Example\n\n```typescript\nimport Hyperspell from '@hyperspell/hyperspell';\n\nconst client = new Hyperspell();\n\n// Automatically fetches more pages as needed.\nfor await (const memoryListResponse of client.memories.list()) {\n console.log(memoryListResponse);\n}\n```", + "## list\n\n`client.memories.list(collection?: string, cursor?: string, filter?: string, size?: number, source?: string, status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'): { document: document | website | task | person | message | event | file | conversation | trace | transcript | company | deal; resource_id: string; source: string; type: string; collection?: string; document_date?: string; ingested_at?: string; last_modified_at?: string; metadata?: object; status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'; title?: string; }`\n\n**get** `/memories/list`\n\nThis endpoint allows you to paginate through all documents in the index.\nYou can filter the documents by title, date, metadata, etc.\n\n### Parameters\n\n- `collection?: string`\n Filter documents by collection.\n\n- `cursor?: string`\n\n- `filter?: string`\n Filter documents by metadata using MongoDB-style operators. Example: {\"department\": \"engineering\", \"priority\": {\"$gt\": 3}}\n\n- `size?: number`\n\n- `source?: string`\n Filter documents by source.\n\n- `status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'`\n Filter documents by status.\n\n### Returns\n\n- `{ document: { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'document'; } | { url: string; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; description?: string; favicon?: string; image_url?: string; language?: string; metadata?: metadata; text?: string; title?: string; type?: 'website'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; comments?: message[]; due_at?: string; metadata?: metadata; priority?: 'urgent' | 'high' | 'medium' | 'low'; status?: 'completed' | 'not_started' | 'in_progress' | 'cancelled'; text?: string; type?: 'task'; } | { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; } | { date: string; sender: person; id?: string; channel?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; external_id?: string; is_self?: boolean; mentioned_users?: person[]; metadata?: metadata; num_replies?: number; replies?: message[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; } | { id?: string; attendees?: person[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; end_at?: string; location?: string; meeting_url?: string; metadata?: metadata; start_at?: string; text?: string; title?: string; type?: 'event'; } | { content_type: string; filename: string; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; path?: string[]; text?: string; title?: string; type?: 'file'; } | { id?: string; channel?: string; children?: message[]; metadata?: metadata; text?: string; title?: string; type?: 'conversation'; } | { id?: string; children?: trace_message | tool_call | tool_result[]; metadata?: metadata; text?: string; title?: string; type?: 'trace'; } | { id?: string; children?: utterance[]; ended_at?: string; metadata?: metadata; participants?: person[]; started_at?: string; text?: string; title?: string; type?: 'transcript'; } | { id?: string; address?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; contact_ids?: string[]; deal_ids?: string[]; description?: string; emails?: string[]; employees?: number; image_url?: string; industry?: string; is_active?: boolean; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; timezone?: string; type?: 'company'; websites?: string[]; } | { id?: string; amount?: number; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; closed_at?: string; company_ids?: string[]; contact_ids?: string[]; currency?: string; deal_source?: string; lost_reason?: string; metadata?: metadata; name?: string; pipeline?: string; probability?: number; stage?: string; tags?: string[]; text?: string; type?: 'deal'; won_reason?: string; }; resource_id: string; source: string; type: string; collection?: string; document_date?: string; ingested_at?: string; last_modified_at?: string; metadata?: object; status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'; title?: string; }`\n A document-shaped API response carrying the hyperdoc tree (ENG-2479/D12).\n\n - `document: { id?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; metadata?: { edited_by?: string; sources?: object[]; }; text?: string; title?: string; type?: 'document'; } | { url: string; id?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; description?: string; favicon?: string; image_url?: string; language?: string; metadata?: { edited_by?: string; sources?: object[]; }; text?: string; title?: string; type?: 'website'; } | { id?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; comments?: { date: string; sender: person; id?: string; channel?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; external_id?: string; is_self?: boolean; mentioned_users?: person[]; metadata?: metadata; num_replies?: number; replies?: message[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; }[]; due_at?: string; metadata?: { edited_by?: string; sources?: object[]; }; priority?: 'urgent' | 'high' | 'medium' | 'low'; status?: 'completed' | 'not_started' | 'in_progress' | 'cancelled'; text?: string; type?: 'task'; } | { id?: string; address?: string; alt_names?: string[]; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: { edited_by?: string; sources?: object[]; }; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; } | { date: string; sender: { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; }; id?: string; channel?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; external_id?: string; is_self?: boolean; mentioned_users?: { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; }[]; metadata?: { edited_by?: string; sources?: object[]; }; num_replies?: number; replies?: { date: string; sender: person; id?: string; channel?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; external_id?: string; is_self?: boolean; mentioned_users?: person[]; metadata?: metadata; num_replies?: number; replies?: message[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; }[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; } | { id?: string; attendees?: { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; }[]; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; end_at?: string; location?: string; meeting_url?: string; metadata?: { edited_by?: string; sources?: object[]; }; start_at?: string; text?: string; title?: string; type?: 'event'; } | { content_type: string; filename: string; id?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; metadata?: { edited_by?: string; sources?: object[]; }; path?: string[]; text?: string; title?: string; type?: 'file'; } | { id?: string; channel?: string; children?: { date: string; sender: person; id?: string; channel?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; external_id?: string; is_self?: boolean; mentioned_users?: person[]; metadata?: metadata; num_replies?: number; replies?: message[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; }[]; metadata?: { edited_by?: string; sources?: object[]; }; text?: string; title?: string; type?: 'conversation'; } | { id?: string; children?: { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; }[]; metadata?: { edited_by?: string; sources?: object[]; }; text?: string; title?: string; type?: 'trace'; } | { id?: string; children?: { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; ended_at?: string; metadata?: { edited_by?: string; sources?: object[]; }; participants?: { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; }[]; started_at?: string; text?: string; title?: string; type?: 'transcript'; } | { id?: string; address?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; contact_ids?: string[]; deal_ids?: string[]; description?: string; emails?: string[]; employees?: number; image_url?: string; industry?: string; is_active?: boolean; metadata?: { edited_by?: string; sources?: object[]; }; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; timezone?: string; type?: 'company'; websites?: string[]; } | { id?: string; amount?: number; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; closed_at?: string; company_ids?: string[]; contact_ids?: string[]; currency?: string; deal_source?: string; lost_reason?: string; metadata?: { edited_by?: string; sources?: object[]; }; name?: string; pipeline?: string; probability?: number; stage?: string; tags?: string[]; text?: string; type?: 'deal'; won_reason?: string; }`\n - `resource_id: string`\n - `source: string`\n - `type: string`\n - `collection?: string`\n - `document_date?: string`\n - `ingested_at?: string`\n - `last_modified_at?: string`\n - `metadata?: object`\n - `status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'`\n - `title?: string`\n\n### Example\n\n```typescript\nimport Hyperspell from '@hyperspell/hyperspell';\n\nconst client = new Hyperspell();\n\n// Automatically fetches more pages as needed.\nfor await (const memoryListResponse of client.memories.list()) {\n console.log(memoryListResponse);\n}\n```", perLanguage: { typescript: { method: 'client.memories.list', @@ -769,7 +769,7 @@ const EMBEDDED_METHODS: MethodEntry[] = [ response: "{ document: object | object | object | object | object | object | object | object | object | object | object | object; resource_id: string; source: string; type: string; collection?: string; document_date?: string; ingested_at?: string; last_modified_at?: string; metadata?: object; status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'; title?: string; }", markdown: - "## get\n\n`client.memories.get(source: string, resource_id: string): { document: document | website | task | person | message | event | file | conversation | trace | transcript | company | deal; resource_id: string; source: string; type: string; collection?: string; document_date?: string; ingested_at?: string; last_modified_at?: string; metadata?: object; status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'; title?: string; }`\n\n**get** `/memories/get/{source}/{resource_id}`\n\nRetrieves a document by provider and resource_id, as a document-shaped\nresponse carrying the full hyperdoc tree (ENG-2479 Phase 4).\n\n### Parameters\n\n- `source: string`\n\n- `resource_id: string`\n\n### Returns\n\n- `{ document: { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'document'; } | { url: string; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; description?: string; favicon?: string; image_url?: string; language?: string; metadata?: metadata; text?: string; title?: string; type?: 'website'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; comments?: message[]; due_at?: string; metadata?: metadata; priority?: 'urgent' | 'high' | 'medium' | 'low'; status?: 'completed' | 'not_started' | 'in_progress' | 'cancelled'; text?: string; type?: 'task'; } | { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; } | { date: string; sender: person; id?: string; channel?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; external_id?: string; is_self?: boolean; mentioned_users?: person[]; metadata?: metadata; num_replies?: number; replies?: message[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; } | { id?: string; attendees?: person[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; end_at?: string; location?: string; meeting_url?: string; metadata?: metadata; start_at?: string; text?: string; title?: string; type?: 'event'; } | { content_type: string; filename: string; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; path?: string[]; text?: string; title?: string; type?: 'file'; } | { id?: string; channel?: string; children?: message[]; metadata?: metadata; text?: string; type?: 'conversation'; } | { id?: string; children?: trace_message | tool_call | tool_result[]; metadata?: metadata; text?: string; title?: string; type?: 'trace'; } | { id?: string; children?: utterance[]; ended_at?: string; metadata?: metadata; participants?: person[]; started_at?: string; text?: string; title?: string; type?: 'transcript'; } | { id?: string; address?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; contact_ids?: string[]; deal_ids?: string[]; description?: string; emails?: string[]; employees?: number; image_url?: string; industry?: string; is_active?: boolean; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; timezone?: string; type?: 'company'; websites?: string[]; } | { id?: string; amount?: number; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; closed_at?: string; company_ids?: string[]; contact_ids?: string[]; currency?: string; deal_source?: string; lost_reason?: string; metadata?: metadata; name?: string; pipeline?: string; probability?: number; stage?: string; tags?: string[]; text?: string; type?: 'deal'; won_reason?: string; }; resource_id: string; source: string; type: string; collection?: string; document_date?: string; ingested_at?: string; last_modified_at?: string; metadata?: object; status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'; title?: string; }`\n A document-shaped API response carrying the hyperdoc tree (ENG-2479/D12).\n\n - `document: { id?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; metadata?: { edited_by?: string; sources?: object[]; }; text?: string; title?: string; type?: 'document'; } | { url: string; id?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; description?: string; favicon?: string; image_url?: string; language?: string; metadata?: { edited_by?: string; sources?: object[]; }; text?: string; title?: string; type?: 'website'; } | { id?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; comments?: { date: string; sender: person; id?: string; channel?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; external_id?: string; is_self?: boolean; mentioned_users?: person[]; metadata?: metadata; num_replies?: number; replies?: message[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; }[]; due_at?: string; metadata?: { edited_by?: string; sources?: object[]; }; priority?: 'urgent' | 'high' | 'medium' | 'low'; status?: 'completed' | 'not_started' | 'in_progress' | 'cancelled'; text?: string; type?: 'task'; } | { id?: string; address?: string; alt_names?: string[]; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: { edited_by?: string; sources?: object[]; }; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; } | { date: string; sender: { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; }; id?: string; channel?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; external_id?: string; is_self?: boolean; mentioned_users?: { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; }[]; metadata?: { edited_by?: string; sources?: object[]; }; num_replies?: number; replies?: { date: string; sender: person; id?: string; channel?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; external_id?: string; is_self?: boolean; mentioned_users?: person[]; metadata?: metadata; num_replies?: number; replies?: message[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; }[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; } | { id?: string; attendees?: { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; }[]; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; end_at?: string; location?: string; meeting_url?: string; metadata?: { edited_by?: string; sources?: object[]; }; start_at?: string; text?: string; title?: string; type?: 'event'; } | { content_type: string; filename: string; id?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; metadata?: { edited_by?: string; sources?: object[]; }; path?: string[]; text?: string; title?: string; type?: 'file'; } | { id?: string; channel?: string; children?: { date: string; sender: person; id?: string; channel?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; external_id?: string; is_self?: boolean; mentioned_users?: person[]; metadata?: metadata; num_replies?: number; replies?: message[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; }[]; metadata?: { edited_by?: string; sources?: object[]; }; text?: string; type?: 'conversation'; } | { id?: string; children?: { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; }[]; metadata?: { edited_by?: string; sources?: object[]; }; text?: string; title?: string; type?: 'trace'; } | { id?: string; children?: { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; ended_at?: string; metadata?: { edited_by?: string; sources?: object[]; }; participants?: { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; }[]; started_at?: string; text?: string; title?: string; type?: 'transcript'; } | { id?: string; address?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; contact_ids?: string[]; deal_ids?: string[]; description?: string; emails?: string[]; employees?: number; image_url?: string; industry?: string; is_active?: boolean; metadata?: { edited_by?: string; sources?: object[]; }; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; timezone?: string; type?: 'company'; websites?: string[]; } | { id?: string; amount?: number; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; closed_at?: string; company_ids?: string[]; contact_ids?: string[]; currency?: string; deal_source?: string; lost_reason?: string; metadata?: { edited_by?: string; sources?: object[]; }; name?: string; pipeline?: string; probability?: number; stage?: string; tags?: string[]; text?: string; type?: 'deal'; won_reason?: string; }`\n - `resource_id: string`\n - `source: string`\n - `type: string`\n - `collection?: string`\n - `document_date?: string`\n - `ingested_at?: string`\n - `last_modified_at?: string`\n - `metadata?: object`\n - `status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'`\n - `title?: string`\n\n### Example\n\n```typescript\nimport Hyperspell from '@hyperspell/hyperspell';\n\nconst client = new Hyperspell();\n\nconst memory = await client.memories.get('resource_id', { source: 'reddit' });\n\nconsole.log(memory);\n```", + "## get\n\n`client.memories.get(source: string, resource_id: string): { document: document | website | task | person | message | event | file | conversation | trace | transcript | company | deal; resource_id: string; source: string; type: string; collection?: string; document_date?: string; ingested_at?: string; last_modified_at?: string; metadata?: object; status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'; title?: string; }`\n\n**get** `/memories/get/{source}/{resource_id}`\n\nRetrieves a document by provider and resource_id, as a document-shaped\nresponse carrying the full hyperdoc tree (ENG-2479 Phase 4).\n\n### Parameters\n\n- `source: string`\n\n- `resource_id: string`\n\n### Returns\n\n- `{ document: { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'document'; } | { url: string; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; description?: string; favicon?: string; image_url?: string; language?: string; metadata?: metadata; text?: string; title?: string; type?: 'website'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; comments?: message[]; due_at?: string; metadata?: metadata; priority?: 'urgent' | 'high' | 'medium' | 'low'; status?: 'completed' | 'not_started' | 'in_progress' | 'cancelled'; text?: string; type?: 'task'; } | { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; } | { date: string; sender: person; id?: string; channel?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; external_id?: string; is_self?: boolean; mentioned_users?: person[]; metadata?: metadata; num_replies?: number; replies?: message[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; } | { id?: string; attendees?: person[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; end_at?: string; location?: string; meeting_url?: string; metadata?: metadata; start_at?: string; text?: string; title?: string; type?: 'event'; } | { content_type: string; filename: string; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; path?: string[]; text?: string; title?: string; type?: 'file'; } | { id?: string; channel?: string; children?: message[]; metadata?: metadata; text?: string; title?: string; type?: 'conversation'; } | { id?: string; children?: trace_message | tool_call | tool_result[]; metadata?: metadata; text?: string; title?: string; type?: 'trace'; } | { id?: string; children?: utterance[]; ended_at?: string; metadata?: metadata; participants?: person[]; started_at?: string; text?: string; title?: string; type?: 'transcript'; } | { id?: string; address?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; contact_ids?: string[]; deal_ids?: string[]; description?: string; emails?: string[]; employees?: number; image_url?: string; industry?: string; is_active?: boolean; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; timezone?: string; type?: 'company'; websites?: string[]; } | { id?: string; amount?: number; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; closed_at?: string; company_ids?: string[]; contact_ids?: string[]; currency?: string; deal_source?: string; lost_reason?: string; metadata?: metadata; name?: string; pipeline?: string; probability?: number; stage?: string; tags?: string[]; text?: string; type?: 'deal'; won_reason?: string; }; resource_id: string; source: string; type: string; collection?: string; document_date?: string; ingested_at?: string; last_modified_at?: string; metadata?: object; status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'; title?: string; }`\n A document-shaped API response carrying the hyperdoc tree (ENG-2479/D12).\n\n - `document: { id?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; metadata?: { edited_by?: string; sources?: object[]; }; text?: string; title?: string; type?: 'document'; } | { url: string; id?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; description?: string; favicon?: string; image_url?: string; language?: string; metadata?: { edited_by?: string; sources?: object[]; }; text?: string; title?: string; type?: 'website'; } | { id?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; comments?: { date: string; sender: person; id?: string; channel?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; external_id?: string; is_self?: boolean; mentioned_users?: person[]; metadata?: metadata; num_replies?: number; replies?: message[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; }[]; due_at?: string; metadata?: { edited_by?: string; sources?: object[]; }; priority?: 'urgent' | 'high' | 'medium' | 'low'; status?: 'completed' | 'not_started' | 'in_progress' | 'cancelled'; text?: string; type?: 'task'; } | { id?: string; address?: string; alt_names?: string[]; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: { edited_by?: string; sources?: object[]; }; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; } | { date: string; sender: { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; }; id?: string; channel?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; external_id?: string; is_self?: boolean; mentioned_users?: { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; }[]; metadata?: { edited_by?: string; sources?: object[]; }; num_replies?: number; replies?: { date: string; sender: person; id?: string; channel?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; external_id?: string; is_self?: boolean; mentioned_users?: person[]; metadata?: metadata; num_replies?: number; replies?: message[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; }[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; } | { id?: string; attendees?: { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; }[]; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; end_at?: string; location?: string; meeting_url?: string; metadata?: { edited_by?: string; sources?: object[]; }; start_at?: string; text?: string; title?: string; type?: 'event'; } | { content_type: string; filename: string; id?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; metadata?: { edited_by?: string; sources?: object[]; }; path?: string[]; text?: string; title?: string; type?: 'file'; } | { id?: string; channel?: string; children?: { date: string; sender: person; id?: string; channel?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; external_id?: string; is_self?: boolean; mentioned_users?: person[]; metadata?: metadata; num_replies?: number; replies?: message[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; }[]; metadata?: { edited_by?: string; sources?: object[]; }; text?: string; title?: string; type?: 'conversation'; } | { id?: string; children?: { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; }[]; metadata?: { edited_by?: string; sources?: object[]; }; text?: string; title?: string; type?: 'trace'; } | { id?: string; children?: { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; ended_at?: string; metadata?: { edited_by?: string; sources?: object[]; }; participants?: { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; }[]; started_at?: string; text?: string; title?: string; type?: 'transcript'; } | { id?: string; address?: string; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; contact_ids?: string[]; deal_ids?: string[]; description?: string; emails?: string[]; employees?: number; image_url?: string; industry?: string; is_active?: boolean; metadata?: { edited_by?: string; sources?: object[]; }; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; timezone?: string; type?: 'company'; websites?: string[]; } | { id?: string; amount?: number; children?: { data: string; mimetype: string; id?: string; metadata?: metadata; type?: 'blob'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'callout'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'chunk'; } | { text: string; id?: string; language?: string; metadata?: metadata; type?: 'code'; } | { text: string; id?: string; created_at?: string; metadata?: metadata; type?: 'comment'; } | { id?: string; metadata?: metadata; type?: 'divider'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'equation'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'footnote'; } | { level: number; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'heading'; } | { src: string; text: string; id?: string; metadata?: metadata; type?: 'image'; } | { text: string; url: string; id?: string; metadata?: metadata; type?: 'link'; } | { id?: string; metadata?: metadata; type?: 'line_break'; } | { id?: string; children?: list_item | to_do[]; metadata?: metadata; ordered?: boolean; text?: string; type?: 'list'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'list_item'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'paragraph'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'quote'; } | { id?: string; children?: table_row[]; has_header?: boolean; metadata?: metadata; text?: string; type?: 'table'; } | { id?: string; align?: 'left' | 'center' | 'right'; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'table_cell'; } | { id?: string; children?: table_cell[]; metadata?: metadata; text?: string; type?: 'table_row'; } | { text: string; id?: string; marks?: 'bold' | 'italic' | 'underline' | 'strikethrough' | 'code' | 'math'[]; metadata?: metadata; type?: 'text'; } | { id?: string; checked?: boolean; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; type?: 'todo'; } | { tool_call_id: string; tool_name: string; id?: string; args?: object; metadata?: metadata; type?: 'tool_call'; } | { output: string | object | object[]; tool_call_id: string; tool_name: string; id?: string; is_error?: boolean; metadata?: metadata; type?: 'tool_result'; } | { text: string; id?: string; message_type?: 'message' | 'thinking'; metadata?: metadata; role?: 'user' | 'assistant'; timestamp?: string; type?: 'trace_message'; } | { text: string; id?: string; end?: number; metadata?: metadata; speaker?: person; start?: number; type?: 'utterance'; }[]; closed_at?: string; company_ids?: string[]; contact_ids?: string[]; currency?: string; deal_source?: string; lost_reason?: string; metadata?: { edited_by?: string; sources?: object[]; }; name?: string; pipeline?: string; probability?: number; stage?: string; tags?: string[]; text?: string; type?: 'deal'; won_reason?: string; }`\n - `resource_id: string`\n - `source: string`\n - `type: string`\n - `collection?: string`\n - `document_date?: string`\n - `ingested_at?: string`\n - `last_modified_at?: string`\n - `metadata?: object`\n - `status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'`\n - `title?: string`\n\n### Example\n\n```typescript\nimport Hyperspell from '@hyperspell/hyperspell';\n\nconst client = new Hyperspell();\n\nconst memory = await client.memories.get('resource_id', { source: 'reddit' });\n\nconsole.log(memory);\n```", perLanguage: { typescript: { method: 'client.memories.get', @@ -817,7 +817,7 @@ const EMBEDDED_METHODS: MethodEntry[] = [ response: "{ answer?: string; documents?: { document: document | website | task | person | message | event | file | conversation | trace | transcript | company | deal; resource_id: string; source: string; type: string; collection?: string; document_date?: string; highlights?: object[]; ingested_at?: string; last_modified_at?: string; metadata?: object; score?: number; status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'; summary?: string; title?: string; }[]; errors?: object[]; provenance?: { entities?: provenance_entity[]; failed_sources?: string[]; sources?: provenance_source[]; steps?: provenance_step[]; }; query?: string; query_id?: string; score?: number; }", markdown: - "## search\n\n`client.memories.search(query: string, answer?: boolean, effort?: 'minimal' | 'low' | 'medium' | 'high' | 'very_high', max_results?: number, options?: { after?: string; answer_model?: string; before?: string; box?: { weight?: number; }; filter?: object; google_calendar?: { calendar_id?: string; weight?: number; }; google_drive?: { weight?: number; }; google_mail?: { label_ids?: string[]; weight?: number; }; max_results?: number; memory_types?: 'procedure' | 'memory' | 'mood'[]; notion?: { notion_page_ids?: string[]; weight?: number; }; recency_half_life_days?: number; resource_ids?: string[]; slack?: { channels?: string[]; exclude_archived?: boolean; include_dms?: boolean; include_group_dms?: boolean; include_private?: boolean; weight?: number; }; vault?: { weight?: number; }; web_crawler?: { max_depth?: number; url?: string; weight?: number; }; }, provenance?: boolean, sources?: string[]): { answer?: string; documents?: scored_document_response[]; errors?: object[]; provenance?: provenance; query?: string; query_id?: string; score?: number; }`\n\n**post** `/memories/query`\n\nRetrieves documents matching the query.\n\n### Parameters\n\n- `query: string`\n Query to run.\n\n- `answer?: boolean`\n If true, the query will be answered along with matching source documents.\n\n- `effort?: 'minimal' | 'low' | 'medium' | 'high' | 'very_high'`\n How much compute to spend on retrieval. Mirrors the dial popularized by frontier-model APIs (OpenAI reasoning_effort, etc.). 'minimal' = verbatim single-shot retrieval (fastest). 'low' = LLM rewrites the query for better retrieval and extracts date filters. 'medium' = rewrite + agentic refinement loop (the answer LLM may request additional retrieval rounds, up to 3). 'high' = rewrite + extended refinement (up to 6 rounds). Higher = better recall, more latency, more cost.\n\n- `max_results?: number`\n Maximum number of results to return.\n\n- `options?: { after?: string; answer_model?: string; before?: string; box?: { weight?: number; }; filter?: object; google_calendar?: { calendar_id?: string; weight?: number; }; google_drive?: { weight?: number; }; google_mail?: { label_ids?: string[]; weight?: number; }; max_results?: number; memory_types?: 'procedure' | 'memory' | 'mood'[]; notion?: { notion_page_ids?: string[]; weight?: number; }; recency_half_life_days?: number; resource_ids?: string[]; slack?: { channels?: string[]; exclude_archived?: boolean; include_dms?: boolean; include_group_dms?: boolean; include_private?: boolean; weight?: number; }; vault?: { weight?: number; }; web_crawler?: { max_depth?: number; url?: string; weight?: number; }; }`\n Search options for the query.\n - `after?: string`\n Only query documents created on or after this date.\n - `answer_model?: string`\n Model to use for answer generation when answer=True\n - `before?: string`\n Only query documents created before this date.\n - `box?: { weight?: number; }`\n Search options for Box\n - `filter?: object`\n Metadata filters using MongoDB-style operators. Example: {'status': 'published', 'priority': {'$gt': 3}}\n - `google_calendar?: { calendar_id?: string; weight?: number; }`\n Search options for Google Calendar\n - `google_drive?: { weight?: number; }`\n Search options for Google Drive\n - `google_mail?: { label_ids?: string[]; weight?: number; }`\n Search options for Gmail\n - `max_results?: number`\n Maximum number of results to return.\n - `memory_types?: 'procedure' | 'memory' | 'mood'[]`\n Filter by memory type. Defaults to generic memories only. Pass multiple types to include procedures, etc.\n - `notion?: { notion_page_ids?: string[]; weight?: number; }`\n Search options for Notion\n - `recency_half_life_days?: number`\n When set, multiplies each result's score by an exponential-decay factor based on the document's most recent activity timestamp (source-reported last_modified, falling back to document_date). A document one half-life old gets its score halved. Resources with no recency timestamp are passed through unchanged. Leave unset to disable.\n - `resource_ids?: string[]`\n Only return results from these specific resource IDs. Useful for scoping searches to specific documents (e.g., a specific email thread or uploaded file).\n - `slack?: { channels?: string[]; exclude_archived?: boolean; include_dms?: boolean; include_group_dms?: boolean; include_private?: boolean; weight?: number; }`\n Search options for Slack\n - `vault?: { weight?: number; }`\n Search options for vault\n - `web_crawler?: { max_depth?: number; url?: string; weight?: number; }`\n Search options for Web Crawler\n\n- `provenance?: boolean`\n If true (effort='very_high' only), attach a provenance record to the response: the source documents and entities the answer was grounded in, the agent's search trajectory, and any sources that failed. Adds one indexed lookup; intended for auditability / compliance use cases.\n\n- `sources?: string[]`\n Only query documents from these sources.\n\n### Returns\n\n- `{ answer?: string; documents?: { document: document | website | task | person | message | event | file | conversation | trace | transcript | company | deal; resource_id: string; source: string; type: string; collection?: string; document_date?: string; highlights?: object[]; ingested_at?: string; last_modified_at?: string; metadata?: object; score?: number; status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'; summary?: string; title?: string; }[]; errors?: object[]; provenance?: { entities?: provenance_entity[]; failed_sources?: string[]; sources?: provenance_source[]; steps?: provenance_step[]; }; query?: string; query_id?: string; score?: number; }`\n\n - `answer?: string`\n - `documents?: { document: { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'document'; } | { url: string; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; description?: string; favicon?: string; image_url?: string; language?: string; metadata?: metadata; text?: string; title?: string; type?: 'website'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; comments?: message[]; due_at?: string; metadata?: metadata; priority?: 'urgent' | 'high' | 'medium' | 'low'; status?: 'completed' | 'not_started' | 'in_progress' | 'cancelled'; text?: string; type?: 'task'; } | { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; } | { date: string; sender: person; id?: string; channel?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; external_id?: string; is_self?: boolean; mentioned_users?: person[]; metadata?: metadata; num_replies?: number; replies?: message[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; } | { id?: string; attendees?: person[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; end_at?: string; location?: string; meeting_url?: string; metadata?: metadata; start_at?: string; text?: string; title?: string; type?: 'event'; } | { content_type: string; filename: string; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; path?: string[]; text?: string; title?: string; type?: 'file'; } | { id?: string; channel?: string; children?: message[]; metadata?: metadata; text?: string; type?: 'conversation'; } | { id?: string; children?: trace_message | tool_call | tool_result[]; metadata?: metadata; text?: string; title?: string; type?: 'trace'; } | { id?: string; children?: utterance[]; ended_at?: string; metadata?: metadata; participants?: person[]; started_at?: string; text?: string; title?: string; type?: 'transcript'; } | { id?: string; address?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; contact_ids?: string[]; deal_ids?: string[]; description?: string; emails?: string[]; employees?: number; image_url?: string; industry?: string; is_active?: boolean; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; timezone?: string; type?: 'company'; websites?: string[]; } | { id?: string; amount?: number; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; closed_at?: string; company_ids?: string[]; contact_ids?: string[]; currency?: string; deal_source?: string; lost_reason?: string; metadata?: metadata; name?: string; pipeline?: string; probability?: number; stage?: string; tags?: string[]; text?: string; type?: 'deal'; won_reason?: string; }; resource_id: string; source: string; type: string; collection?: string; document_date?: string; highlights?: object[]; ingested_at?: string; last_modified_at?: string; metadata?: object; score?: number; status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'; summary?: string; title?: string; }[]`\n - `errors?: object[]`\n - `provenance?: { entities?: { id: string; name: string; type: string; }[]; failed_sources?: string[]; sources?: { resource_id: string; source: string; score?: number; title?: string; }[]; steps?: { iteration: number; status: string; tool: string; query?: string; result_count?: number; source?: string; }[]; }`\n - `query?: string`\n - `query_id?: string`\n - `score?: number`\n\n### Example\n\n```typescript\nimport Hyperspell from '@hyperspell/hyperspell';\n\nconst client = new Hyperspell();\n\nconst queryResult = await client.memories.search({ query: 'What does Hyperspell do?' });\n\nconsole.log(queryResult);\n```", + "## search\n\n`client.memories.search(query: string, answer?: boolean, effort?: 'minimal' | 'low' | 'medium' | 'high' | 'very_high', max_results?: number, options?: { after?: string; answer_model?: string; before?: string; box?: { weight?: number; }; filter?: object; google_calendar?: { calendar_id?: string; weight?: number; }; google_drive?: { weight?: number; }; google_mail?: { label_ids?: string[]; weight?: number; }; max_results?: number; memory_types?: 'procedure' | 'memory' | 'mood'[]; notion?: { notion_page_ids?: string[]; weight?: number; }; recency_half_life_days?: number; resource_ids?: string[]; slack?: { channels?: string[]; exclude_archived?: boolean; include_dms?: boolean; include_group_dms?: boolean; include_private?: boolean; weight?: number; }; vault?: { weight?: number; }; web_crawler?: { max_depth?: number; url?: string; weight?: number; }; }, provenance?: boolean, sources?: string[]): { answer?: string; documents?: scored_document_response[]; errors?: object[]; provenance?: provenance; query?: string; query_id?: string; score?: number; }`\n\n**post** `/memories/query`\n\nRetrieves documents matching the query.\n\n### Parameters\n\n- `query: string`\n Query to run.\n\n- `answer?: boolean`\n If true, the query will be answered along with matching source documents.\n\n- `effort?: 'minimal' | 'low' | 'medium' | 'high' | 'very_high'`\n How much compute to spend on retrieval. Mirrors the dial popularized by frontier-model APIs (OpenAI reasoning_effort, etc.). 'minimal' = verbatim single-shot retrieval (fastest). 'low' = LLM rewrites the query for better retrieval and extracts date filters. 'medium' = rewrite + agentic refinement loop (the answer LLM may request additional retrieval rounds, up to 3). 'high' = rewrite + extended refinement (up to 6 rounds). Higher = better recall, more latency, more cost.\n\n- `max_results?: number`\n Maximum number of results to return.\n\n- `options?: { after?: string; answer_model?: string; before?: string; box?: { weight?: number; }; filter?: object; google_calendar?: { calendar_id?: string; weight?: number; }; google_drive?: { weight?: number; }; google_mail?: { label_ids?: string[]; weight?: number; }; max_results?: number; memory_types?: 'procedure' | 'memory' | 'mood'[]; notion?: { notion_page_ids?: string[]; weight?: number; }; recency_half_life_days?: number; resource_ids?: string[]; slack?: { channels?: string[]; exclude_archived?: boolean; include_dms?: boolean; include_group_dms?: boolean; include_private?: boolean; weight?: number; }; vault?: { weight?: number; }; web_crawler?: { max_depth?: number; url?: string; weight?: number; }; }`\n Search options for the query.\n - `after?: string`\n Only query documents created on or after this date.\n - `answer_model?: string`\n Model to use for answer generation when answer=True\n - `before?: string`\n Only query documents created before this date.\n - `box?: { weight?: number; }`\n Search options for Box\n - `filter?: object`\n Metadata filters using MongoDB-style operators. Example: {'status': 'published', 'priority': {'$gt': 3}}\n - `google_calendar?: { calendar_id?: string; weight?: number; }`\n Search options for Google Calendar\n - `google_drive?: { weight?: number; }`\n Search options for Google Drive\n - `google_mail?: { label_ids?: string[]; weight?: number; }`\n Search options for Gmail\n - `max_results?: number`\n Maximum number of results to return.\n - `memory_types?: 'procedure' | 'memory' | 'mood'[]`\n Filter by memory type. Defaults to generic memories only. Pass multiple types to include procedures, etc.\n - `notion?: { notion_page_ids?: string[]; weight?: number; }`\n Search options for Notion\n - `recency_half_life_days?: number`\n When set, multiplies each result's score by an exponential-decay factor based on the document's most recent activity timestamp (source-reported last_modified, falling back to document_date). A document one half-life old gets its score halved. Resources with no recency timestamp are passed through unchanged. Leave unset to disable.\n - `resource_ids?: string[]`\n Only return results from these specific resource IDs. Useful for scoping searches to specific documents (e.g., a specific email thread or uploaded file).\n - `slack?: { channels?: string[]; exclude_archived?: boolean; include_dms?: boolean; include_group_dms?: boolean; include_private?: boolean; weight?: number; }`\n Search options for Slack\n - `vault?: { weight?: number; }`\n Search options for vault\n - `web_crawler?: { max_depth?: number; url?: string; weight?: number; }`\n Search options for Web Crawler\n\n- `provenance?: boolean`\n If true (effort='very_high' only), attach a provenance record to the response: the source documents and entities the answer was grounded in, the agent's search trajectory, and any sources that failed. Adds one indexed lookup; intended for auditability / compliance use cases.\n\n- `sources?: string[]`\n Only query documents from these sources.\n\n### Returns\n\n- `{ answer?: string; documents?: { document: document | website | task | person | message | event | file | conversation | trace | transcript | company | deal; resource_id: string; source: string; type: string; collection?: string; document_date?: string; highlights?: object[]; ingested_at?: string; last_modified_at?: string; metadata?: object; score?: number; status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'; summary?: string; title?: string; }[]; errors?: object[]; provenance?: { entities?: provenance_entity[]; failed_sources?: string[]; sources?: provenance_source[]; steps?: provenance_step[]; }; query?: string; query_id?: string; score?: number; }`\n\n - `answer?: string`\n - `documents?: { document: { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'document'; } | { url: string; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; description?: string; favicon?: string; image_url?: string; language?: string; metadata?: metadata; text?: string; title?: string; type?: 'website'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; comments?: message[]; due_at?: string; metadata?: metadata; priority?: 'urgent' | 'high' | 'medium' | 'low'; status?: 'completed' | 'not_started' | 'in_progress' | 'cancelled'; text?: string; type?: 'task'; } | { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; } | { date: string; sender: person; id?: string; channel?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; external_id?: string; is_self?: boolean; mentioned_users?: person[]; metadata?: metadata; num_replies?: number; replies?: message[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; } | { id?: string; attendees?: person[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; end_at?: string; location?: string; meeting_url?: string; metadata?: metadata; start_at?: string; text?: string; title?: string; type?: 'event'; } | { content_type: string; filename: string; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; path?: string[]; text?: string; title?: string; type?: 'file'; } | { id?: string; channel?: string; children?: message[]; metadata?: metadata; text?: string; title?: string; type?: 'conversation'; } | { id?: string; children?: trace_message | tool_call | tool_result[]; metadata?: metadata; text?: string; title?: string; type?: 'trace'; } | { id?: string; children?: utterance[]; ended_at?: string; metadata?: metadata; participants?: person[]; started_at?: string; text?: string; title?: string; type?: 'transcript'; } | { id?: string; address?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; contact_ids?: string[]; deal_ids?: string[]; description?: string; emails?: string[]; employees?: number; image_url?: string; industry?: string; is_active?: boolean; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; timezone?: string; type?: 'company'; websites?: string[]; } | { id?: string; amount?: number; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; closed_at?: string; company_ids?: string[]; contact_ids?: string[]; currency?: string; deal_source?: string; lost_reason?: string; metadata?: metadata; name?: string; pipeline?: string; probability?: number; stage?: string; tags?: string[]; text?: string; type?: 'deal'; won_reason?: string; }; resource_id: string; source: string; type: string; collection?: string; document_date?: string; highlights?: object[]; ingested_at?: string; last_modified_at?: string; metadata?: object; score?: number; status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'; summary?: string; title?: string; }[]`\n - `errors?: object[]`\n - `provenance?: { entities?: { id: string; name: string; type: string; }[]; failed_sources?: string[]; sources?: { resource_id: string; source: string; score?: number; title?: string; }[]; steps?: { iteration: number; status: string; tool: string; query?: string; result_count?: number; source?: string; }[]; }`\n - `query?: string`\n - `query_id?: string`\n - `score?: number`\n\n### Example\n\n```typescript\nimport Hyperspell from '@hyperspell/hyperspell';\n\nconst client = new Hyperspell();\n\nconst queryResult = await client.memories.search({ query: 'What does Hyperspell do?' });\n\nconsole.log(queryResult);\n```", perLanguage: { typescript: { method: 'client.memories.search', @@ -937,7 +937,7 @@ const EMBEDDED_METHODS: MethodEntry[] = [ response: "{ answer?: string; documents?: { document: document | website | task | person | message | event | file | conversation | trace | transcript | company | deal; resource_id: string; source: string; type: string; collection?: string; document_date?: string; highlights?: object[]; ingested_at?: string; last_modified_at?: string; metadata?: object; score?: number; status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'; summary?: string; title?: string; }[]; errors?: object[]; provenance?: { entities?: provenance_entity[]; failed_sources?: string[]; sources?: provenance_source[]; steps?: provenance_step[]; }; query?: string; query_id?: string; score?: number; }", markdown: - "## get_query\n\n`client.evaluate.getQuery(query_id: string): { answer?: string; documents?: scored_document_response[]; errors?: object[]; provenance?: provenance; query?: string; query_id?: string; score?: number; }`\n\n**get** `/evaluate/query/{query_id}`\n\nRetrieve the result of a previous query.\n\n### Parameters\n\n- `query_id: string`\n\n### Returns\n\n- `{ answer?: string; documents?: { document: document | website | task | person | message | event | file | conversation | trace | transcript | company | deal; resource_id: string; source: string; type: string; collection?: string; document_date?: string; highlights?: object[]; ingested_at?: string; last_modified_at?: string; metadata?: object; score?: number; status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'; summary?: string; title?: string; }[]; errors?: object[]; provenance?: { entities?: provenance_entity[]; failed_sources?: string[]; sources?: provenance_source[]; steps?: provenance_step[]; }; query?: string; query_id?: string; score?: number; }`\n\n - `answer?: string`\n - `documents?: { document: { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'document'; } | { url: string; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; description?: string; favicon?: string; image_url?: string; language?: string; metadata?: metadata; text?: string; title?: string; type?: 'website'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; comments?: message[]; due_at?: string; metadata?: metadata; priority?: 'urgent' | 'high' | 'medium' | 'low'; status?: 'completed' | 'not_started' | 'in_progress' | 'cancelled'; text?: string; type?: 'task'; } | { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; } | { date: string; sender: person; id?: string; channel?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; external_id?: string; is_self?: boolean; mentioned_users?: person[]; metadata?: metadata; num_replies?: number; replies?: message[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; } | { id?: string; attendees?: person[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; end_at?: string; location?: string; meeting_url?: string; metadata?: metadata; start_at?: string; text?: string; title?: string; type?: 'event'; } | { content_type: string; filename: string; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; path?: string[]; text?: string; title?: string; type?: 'file'; } | { id?: string; channel?: string; children?: message[]; metadata?: metadata; text?: string; type?: 'conversation'; } | { id?: string; children?: trace_message | tool_call | tool_result[]; metadata?: metadata; text?: string; title?: string; type?: 'trace'; } | { id?: string; children?: utterance[]; ended_at?: string; metadata?: metadata; participants?: person[]; started_at?: string; text?: string; title?: string; type?: 'transcript'; } | { id?: string; address?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; contact_ids?: string[]; deal_ids?: string[]; description?: string; emails?: string[]; employees?: number; image_url?: string; industry?: string; is_active?: boolean; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; timezone?: string; type?: 'company'; websites?: string[]; } | { id?: string; amount?: number; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; closed_at?: string; company_ids?: string[]; contact_ids?: string[]; currency?: string; deal_source?: string; lost_reason?: string; metadata?: metadata; name?: string; pipeline?: string; probability?: number; stage?: string; tags?: string[]; text?: string; type?: 'deal'; won_reason?: string; }; resource_id: string; source: string; type: string; collection?: string; document_date?: string; highlights?: object[]; ingested_at?: string; last_modified_at?: string; metadata?: object; score?: number; status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'; summary?: string; title?: string; }[]`\n - `errors?: object[]`\n - `provenance?: { entities?: { id: string; name: string; type: string; }[]; failed_sources?: string[]; sources?: { resource_id: string; source: string; score?: number; title?: string; }[]; steps?: { iteration: number; status: string; tool: string; query?: string; result_count?: number; source?: string; }[]; }`\n - `query?: string`\n - `query_id?: string`\n - `score?: number`\n\n### Example\n\n```typescript\nimport Hyperspell from '@hyperspell/hyperspell';\n\nconst client = new Hyperspell();\n\nconst queryResult = await client.evaluate.getQuery('query_id');\n\nconsole.log(queryResult);\n```", + "## get_query\n\n`client.evaluate.getQuery(query_id: string): { answer?: string; documents?: scored_document_response[]; errors?: object[]; provenance?: provenance; query?: string; query_id?: string; score?: number; }`\n\n**get** `/evaluate/query/{query_id}`\n\nRetrieve the result of a previous query.\n\n### Parameters\n\n- `query_id: string`\n\n### Returns\n\n- `{ answer?: string; documents?: { document: document | website | task | person | message | event | file | conversation | trace | transcript | company | deal; resource_id: string; source: string; type: string; collection?: string; document_date?: string; highlights?: object[]; ingested_at?: string; last_modified_at?: string; metadata?: object; score?: number; status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'; summary?: string; title?: string; }[]; errors?: object[]; provenance?: { entities?: provenance_entity[]; failed_sources?: string[]; sources?: provenance_source[]; steps?: provenance_step[]; }; query?: string; query_id?: string; score?: number; }`\n\n - `answer?: string`\n - `documents?: { document: { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; text?: string; title?: string; type?: 'document'; } | { url: string; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; description?: string; favicon?: string; image_url?: string; language?: string; metadata?: metadata; text?: string; title?: string; type?: 'website'; } | { id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; comments?: message[]; due_at?: string; metadata?: metadata; priority?: 'urgent' | 'high' | 'medium' | 'low'; status?: 'completed' | 'not_started' | 'in_progress' | 'cancelled'; text?: string; type?: 'task'; } | { id?: string; address?: string; alt_names?: string[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; company?: string; company_ids?: string[]; date_of_birth?: string; deal_ids?: string[]; email?: string; emails?: string[]; image_url?: string; job_title?: string; link_urls?: string[]; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; type?: 'person'; username?: string; } | { date: string; sender: person; id?: string; channel?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; external_id?: string; is_self?: boolean; mentioned_users?: person[]; metadata?: metadata; num_replies?: number; replies?: message[]; text?: string; thread_id?: string; title?: string; type?: 'message'; updated_at?: string; upvotes?: number; } | { id?: string; attendees?: person[]; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; end_at?: string; location?: string; meeting_url?: string; metadata?: metadata; start_at?: string; text?: string; title?: string; type?: 'event'; } | { content_type: string; filename: string; id?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; metadata?: metadata; path?: string[]; text?: string; title?: string; type?: 'file'; } | { id?: string; channel?: string; children?: message[]; metadata?: metadata; text?: string; title?: string; type?: 'conversation'; } | { id?: string; children?: trace_message | tool_call | tool_result[]; metadata?: metadata; text?: string; title?: string; type?: 'trace'; } | { id?: string; children?: utterance[]; ended_at?: string; metadata?: metadata; participants?: person[]; started_at?: string; text?: string; title?: string; type?: 'transcript'; } | { id?: string; address?: string; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; contact_ids?: string[]; deal_ids?: string[]; description?: string; emails?: string[]; employees?: number; image_url?: string; industry?: string; is_active?: boolean; metadata?: metadata; name?: string; phone_numbers?: string[]; tags?: string[]; text?: string; timezone?: string; type?: 'company'; websites?: string[]; } | { id?: string; amount?: number; children?: blob | callout | chunk | code | comment | divider | equation | footnote | heading | image | link | line_break | list | list_item | paragraph | quote | table | table_cell | table_row | text | to_do | tool_call | tool_result | trace_message | utterance[]; closed_at?: string; company_ids?: string[]; contact_ids?: string[]; currency?: string; deal_source?: string; lost_reason?: string; metadata?: metadata; name?: string; pipeline?: string; probability?: number; stage?: string; tags?: string[]; text?: string; type?: 'deal'; won_reason?: string; }; resource_id: string; source: string; type: string; collection?: string; document_date?: string; highlights?: object[]; ingested_at?: string; last_modified_at?: string; metadata?: object; score?: number; status?: 'pending' | 'processing' | 'completed' | 'failed' | 'pending_review' | 'skipped'; summary?: string; title?: string; }[]`\n - `errors?: object[]`\n - `provenance?: { entities?: { id: string; name: string; type: string; }[]; failed_sources?: string[]; sources?: { resource_id: string; source: string; score?: number; title?: string; }[]; steps?: { iteration: number; status: string; tool: string; query?: string; result_count?: number; source?: string; }[]; }`\n - `query?: string`\n - `query_id?: string`\n - `score?: number`\n\n### Example\n\n```typescript\nimport Hyperspell from '@hyperspell/hyperspell';\n\nconst client = new Hyperspell();\n\nconst queryResult = await client.evaluate.getQuery('query_id');\n\nconsole.log(queryResult);\n```", perLanguage: { typescript: { method: 'client.evaluate.getQuery', diff --git a/src/resources/shared.ts b/src/resources/shared.ts index 1984a7d8..bffd529f 100644 --- a/src/resources/shared.ts +++ b/src/resources/shared.ts @@ -277,6 +277,8 @@ export interface Conversation { text?: string | null; + title?: string | null; + type?: 'conversation'; } From 01f923d7b346ad3c3993d6073e37e224d5bf3e3c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 24 Jun 2026 17:30:53 +0000 Subject: [PATCH 07/10] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index b938b04d..0fea8d75 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 31 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell/hyperspell-8e296fefed446d1949777be352a67727953fc7c3b3da5271543dfee9b6f72c06.yml -openapi_spec_hash: f0c49fdb847f21cd0e1e11eb9317bdd5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell/hyperspell-8a5ff8769b9b9baf4b23812ef8b705768950bba407d89e3f9df1430ace7e7270.yml +openapi_spec_hash: 2dcf053b4aa1491a8475e817b4e82294 config_hash: 11e84d884a86d2db0411c35fae6e9121 From 5d62e04bd9fa16047c80d027e520a94d822f93e8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 24 Jun 2026 22:30:58 +0000 Subject: [PATCH 08/10] feat(api): api update --- .stats.yml | 4 ++-- packages/mcp-server/src/local-docs-search.ts | 4 ++-- src/resources/connections.ts | 10 ++++++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0fea8d75..cf84cc22 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 31 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell/hyperspell-8a5ff8769b9b9baf4b23812ef8b705768950bba407d89e3f9df1430ace7e7270.yml -openapi_spec_hash: 2dcf053b4aa1491a8475e817b4e82294 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell/hyperspell-c6d875e737e219a871e8b945c02e39a888341117e5c96380cfbe4b460607e46f.yml +openapi_spec_hash: f25b658100881b5cecad370fc5893f43 config_hash: 11e84d884a86d2db0411c35fae6e9121 diff --git a/packages/mcp-server/src/local-docs-search.ts b/packages/mcp-server/src/local-docs-search.ts index 471147f2..190e7571 100644 --- a/packages/mcp-server/src/local-docs-search.ts +++ b/packages/mcp-server/src/local-docs-search.ts @@ -56,13 +56,13 @@ const EMBEDDED_METHODS: MethodEntry[] = [ httpMethod: 'delete', summary: 'Revoke connection', description: - "Revokes Hyperspell's access the given provider and deletes all stored credentials and indexed data.", + 'Revoke Hyperspell\'s access to a provider and delete this user\'s stored data.\n\nThe external OAuth/Unified revoke and the (potentially large) data purge run in\na background Temporal workflow; this returns ``202 Accepted`` immediately. A\nheavy provider — a Gmail account can carry hundreds of thousands of chunks —\nplus a slow third-party revoke would otherwise outrun the request timeout: the\nold synchronous path "timed out" for the caller while still finishing\nserver-side, making the outcome invisible. Idempotent per (app, user, provider).', stainlessPath: '(resource) connections > (method) revoke', qualified: 'client.connections.revoke', params: ['connection_id: string;'], response: '{ message: string; success: boolean; }', markdown: - "## revoke\n\n`client.connections.revoke(connection_id: string): { message: string; success: boolean; }`\n\n**delete** `/connections/{connection_id}/revoke`\n\nRevokes Hyperspell's access the given provider and deletes all stored credentials and indexed data.\n\n### Parameters\n\n- `connection_id: string`\n\n### Returns\n\n- `{ message: string; success: boolean; }`\n\n - `message: string`\n - `success: boolean`\n\n### Example\n\n```typescript\nimport Hyperspell from '@hyperspell/hyperspell';\n\nconst client = new Hyperspell();\n\nconst response = await client.connections.revoke('connection_id');\n\nconsole.log(response);\n```", + "## revoke\n\n`client.connections.revoke(connection_id: string): { message: string; success: boolean; }`\n\n**delete** `/connections/{connection_id}/revoke`\n\nRevoke Hyperspell's access to a provider and delete this user's stored data.\n\nThe external OAuth/Unified revoke and the (potentially large) data purge run in\na background Temporal workflow; this returns ``202 Accepted`` immediately. A\nheavy provider — a Gmail account can carry hundreds of thousands of chunks —\nplus a slow third-party revoke would otherwise outrun the request timeout: the\nold synchronous path \"timed out\" for the caller while still finishing\nserver-side, making the outcome invisible. Idempotent per (app, user, provider).\n\n### Parameters\n\n- `connection_id: string`\n\n### Returns\n\n- `{ message: string; success: boolean; }`\n\n - `message: string`\n - `success: boolean`\n\n### Example\n\n```typescript\nimport Hyperspell from '@hyperspell/hyperspell';\n\nconst client = new Hyperspell();\n\nconst response = await client.connections.revoke('connection_id');\n\nconsole.log(response);\n```", perLanguage: { typescript: { method: 'client.connections.revoke', diff --git a/src/resources/connections.ts b/src/resources/connections.ts index 0b4c2db7..9b7f921b 100644 --- a/src/resources/connections.ts +++ b/src/resources/connections.ts @@ -14,8 +14,14 @@ export class Connections extends APIResource { } /** - * Revokes Hyperspell's access the given provider and deletes all stored - * credentials and indexed data. + * Revoke Hyperspell's access to a provider and delete this user's stored data. + * + * The external OAuth/Unified revoke and the (potentially large) data purge run in + * a background Temporal workflow; this returns `202 Accepted` immediately. A heavy + * provider — a Gmail account can carry hundreds of thousands of chunks — plus a + * slow third-party revoke would otherwise outrun the request timeout: the old + * synchronous path "timed out" for the caller while still finishing server-side, + * making the outcome invisible. Idempotent per (app, user, provider). */ revoke(connectionID: string, options?: RequestOptions): APIPromise { return this._client.delete(path`/connections/${connectionID}/revoke`, options); From ed4e82dfeb6cbffaa1fb0dc485f5bebf8ba29ddc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 25 Jun 2026 18:30:53 +0000 Subject: [PATCH 09/10] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index cf84cc22..87d185ed 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 31 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell/hyperspell-c6d875e737e219a871e8b945c02e39a888341117e5c96380cfbe4b460607e46f.yml -openapi_spec_hash: f25b658100881b5cecad370fc5893f43 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell/hyperspell-5fa01d1d8f236b2c961d0f6db2af161f3d67bf0f9eeee741e452b90095d0031f.yml +openapi_spec_hash: 82e8a4badd2628e82fddb09c4bbdf7a2 config_hash: 11e84d884a86d2db0411c35fae6e9121 From 2fb77e5808fbcabc8ad126e5a05504269771edd7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 25 Jun 2026 18:31:21 +0000 Subject: [PATCH 10/10] release: 0.40.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 10 ++++++++++ package.json | 2 +- packages/mcp-server/manifest.json | 2 +- packages/mcp-server/package.json | 2 +- packages/mcp-server/src/server.ts | 2 +- src/version.ts | 2 +- 7 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 418b49e9..65078153 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.39.0" + ".": "0.40.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 08e51941..56396e31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 0.40.0 (2026-06-25) + +Full Changelog: [v0.39.0...v0.40.0](https://github.com/hyperspell/node-sdk/compare/v0.39.0...v0.40.0) + +### Features + +* **api:** api update ([5d62e04](https://github.com/hyperspell/node-sdk/commit/5d62e04bd9fa16047c80d027e520a94d822f93e8)) +* **api:** api update ([bab5ed7](https://github.com/hyperspell/node-sdk/commit/bab5ed73ce7358ab3d3a15e9560337d578c4cec5)) +* **api:** api update ([7b4c29a](https://github.com/hyperspell/node-sdk/commit/7b4c29a946e26c7375669ce46789359c14bed550)) + ## 0.39.0 (2026-06-18) Full Changelog: [v0.38.0...v0.39.0](https://github.com/hyperspell/node-sdk/compare/v0.38.0...v0.39.0) diff --git a/package.json b/package.json index 5e05f6ea..b77c2956 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hyperspell/hyperspell", - "version": "0.39.0", + "version": "0.40.0", "description": "The official TypeScript library for the Hyperspell API", "author": "Hyperspell ", "types": "dist/index.d.ts", diff --git a/packages/mcp-server/manifest.json b/packages/mcp-server/manifest.json index 4937bfe3..16d4b072 100644 --- a/packages/mcp-server/manifest.json +++ b/packages/mcp-server/manifest.json @@ -1,7 +1,7 @@ { "dxt_version": "0.2", "name": "@hyperspell/hyperspell-mcp", - "version": "0.39.0", + "version": "0.40.0", "description": "The official MCP Server for the Hyperspell API", "author": { "name": "Hyperspell", diff --git a/packages/mcp-server/package.json b/packages/mcp-server/package.json index 4cd96df6..80729f46 100644 --- a/packages/mcp-server/package.json +++ b/packages/mcp-server/package.json @@ -1,6 +1,6 @@ { "name": "@hyperspell/hyperspell-mcp", - "version": "0.39.0", + "version": "0.40.0", "description": "The official MCP Server for the Hyperspell API", "author": "Hyperspell ", "types": "dist/index.d.ts", diff --git a/packages/mcp-server/src/server.ts b/packages/mcp-server/src/server.ts index a90add23..e6c1169e 100644 --- a/packages/mcp-server/src/server.ts +++ b/packages/mcp-server/src/server.ts @@ -29,7 +29,7 @@ export const newMcpServer = async ({ new McpServer( { name: 'hyperspell_hyperspell_api', - version: '0.39.0', + version: '0.40.0', }, { instructions: await getInstructions({ stainlessApiKey, customInstructionsPath }), diff --git a/src/version.ts b/src/version.ts index 5f972a92..c17cceec 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.39.0'; // x-release-please-version +export const VERSION = '0.40.0'; // x-release-please-version