@arke-institute/sdk 2.3.14 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * Source: Arke v1 API
8
8
  * Version: 1.0.0
9
- * Generated: 2026-01-22T18:25:50.170Z
9
+ * Generated: 2026-01-26T22:08:41.056Z
10
10
  */
11
11
  type paths = {
12
12
  "/ops-reference": {
@@ -708,6 +708,17 @@ type paths = {
708
708
  * - Results use cosine similarity scores (0-1)
709
709
  * - Scores are comparable across collections
710
710
  *
711
+ * ## Entity Expansion
712
+ *
713
+ * Use `expand` in the request body to fetch entity data inline with search results:
714
+ *
715
+ * - **`expand: "preview"` (default)**: Adds `entity_preview` with fresh lightweight data (id, type, label, timestamps)
716
+ * - **`expand: "full"`**: Adds `entity` with complete manifest including all properties and relationships
717
+ * - **`expand: "none"`**: Returns search metadata only (fastest, lowest bandwidth)
718
+ *
719
+ * Preview mode is recommended for most use cases. Full expansion can result in large payloads.
720
+ * Gracefully handles deleted or inaccessible entities (returns results without expansion data).
721
+ *
711
722
  *
712
723
  * ---
713
724
  * **Permission:** `search:execute`
@@ -1848,6 +1859,18 @@ type paths = {
1848
1859
  *
1849
1860
  * Supports pagination and optional type filtering. Results are ordered by creation date (newest first).
1850
1861
  *
1862
+ * **Expansion Modes:**
1863
+ *
1864
+ * By default, returns lightweight summaries from GraphDB (pi, type, label, timestamps).
1865
+ *
1866
+ * Use the `expand` parameter to hydrate entity data from storage:
1867
+ *
1868
+ * - **`?expand=preview`**: Adds `preview` field with fresh lightweight data (label, truncated description/text, timestamps). ~5-10KB per entity.
1869
+ *
1870
+ * - **`?expand=full`**: Adds `entity` field with complete manifest (all properties, relationships, version history). ~20-50KB per entity.
1871
+ *
1872
+ * **Performance Note:** Expansion requires fetching each entity from storage. Limited to 100 entities per request. Use smaller `limit` values when expanding.
1873
+ *
1851
1874
  * ---
1852
1875
  * **Permission:** `collection:view`
1853
1876
  * **Auth:** optional
@@ -1858,6 +1881,7 @@ type paths = {
1858
1881
  type?: string;
1859
1882
  limit?: number;
1860
1883
  offset?: number | null;
1884
+ expand?: "preview" | "full";
1861
1885
  };
1862
1886
  header?: never;
1863
1887
  path: {
@@ -2051,13 +2075,69 @@ type paths = {
2051
2075
  * Get entity by ID
2052
2076
  * @description Returns any entity by ID. Permission check uses parent collection if entity belongs to one.
2053
2077
  *
2078
+ * **Relationship Expansion:**
2079
+ *
2080
+ * Use the `expand=relationships[:mode]` query parameter to hydrate relationship peer data:
2081
+ *
2082
+ * - **No expansion (default)**: Returns relationships with stored `peer_label`/`peer_type` (may be stale)
2083
+ * ```json
2084
+ * { "predicate": "contains", "peer": "01KDOC...", "peer_label": "Old Label" }
2085
+ * ```
2086
+ *
2087
+ * - **`?expand=relationships:preview`**: Adds `peer_preview` with fresh lightweight data (id, type, label, truncated description/text, timestamps)
2088
+ * ```json
2089
+ * {
2090
+ * "predicate": "contains",
2091
+ * "peer": "01KDOC...",
2092
+ * "peer_label": "Old Label",
2093
+ * "peer_preview": {
2094
+ * "id": "01KDOC...",
2095
+ * "type": "document",
2096
+ * "label": "Updated Label",
2097
+ * "description_preview": "This is a document with...",
2098
+ * "created_at": "2025-01-15T10:00:00Z",
2099
+ * "updated_at": "2025-01-20T14:30:00Z"
2100
+ * }
2101
+ * }
2102
+ * ```
2103
+ *
2104
+ * - **`?expand=relationships:full`**: Adds `peer_entity` with complete entity manifest (all properties, relationships, version history)
2105
+ * ```json
2106
+ * {
2107
+ * "predicate": "contains",
2108
+ * "peer": "01KDOC...",
2109
+ * "peer_label": "Old Label",
2110
+ * "peer_entity": {
2111
+ * "id": "01KDOC...",
2112
+ * "cid": "bafyrei...",
2113
+ * "type": "document",
2114
+ * "properties": { "label": "Updated Label", "text": "..." },
2115
+ * "relationships": [...],
2116
+ * "ver": 3,
2117
+ * "created_at": "2025-01-15T10:00:00Z",
2118
+ * "ts": 1737380000000,
2119
+ * "edited_by": { "user_id": "01JUSER...", "method": "manual" }
2120
+ * }
2121
+ * }
2122
+ * ```
2123
+ *
2124
+ * **Performance:** Preview expansion is recommended for most use cases. Full expansion with many large entities can result in multi-MB payloads.
2125
+ *
2126
+ * **Expansion Limit:**
2127
+ * Use `?expand_limit=N` to control maximum relationships expanded (1-500, default 100). When truncated, the response includes `_expansion_metadata` with counts.
2128
+ *
2054
2129
  * ---
2055
2130
  * **Permission:** `entity:view`
2056
2131
  * **Auth:** optional
2057
2132
  */
2058
2133
  get: {
2059
2134
  parameters: {
2060
- query?: never;
2135
+ query?: {
2136
+ /** @description Comma-separated list of fields to expand. Supports: relationships[:preview|full] */
2137
+ expand?: string;
2138
+ /** @description Maximum number of relationships to expand (1-500, default 100). When exceeded, relationships beyond the limit are returned without peer data. */
2139
+ expand_limit?: number;
2140
+ };
2061
2141
  header?: never;
2062
2142
  path: {
2063
2143
  /** @description Entity ID (ULID) */
@@ -2371,6 +2451,88 @@ type paths = {
2371
2451
  patch?: never;
2372
2452
  trace?: never;
2373
2453
  };
2454
+ "/entities/{id}/preview": {
2455
+ parameters: {
2456
+ query?: never;
2457
+ header?: never;
2458
+ path?: never;
2459
+ cookie?: never;
2460
+ };
2461
+ /**
2462
+ * Get entity preview
2463
+ * @description Returns lightweight preview data for an entity. Useful for:
2464
+ * - Link previews and hover cards
2465
+ * - Relationship metadata freshness (vs stale peer_label)
2466
+ * - AI context management (smaller payloads)
2467
+ * - Search result enhancement
2468
+ *
2469
+ * Returns: id, type, label, collection_pi, description_preview (200 chars), text_preview (200 chars), timestamps.
2470
+ *
2471
+ * **Performance:** Single KV fetch, ~40-60ms response time, typically <1KB payload.
2472
+ *
2473
+ * ---
2474
+ * **Permission:** `entity:view`
2475
+ * **Auth:** optional
2476
+ */
2477
+ get: {
2478
+ parameters: {
2479
+ query?: never;
2480
+ header?: never;
2481
+ path: {
2482
+ /** @description Entity ID (ULID) */
2483
+ id: string;
2484
+ };
2485
+ cookie?: never;
2486
+ };
2487
+ requestBody?: never;
2488
+ responses: {
2489
+ /** @description Entity preview data */
2490
+ 200: {
2491
+ headers: {
2492
+ [name: string]: unknown;
2493
+ };
2494
+ content: {
2495
+ "application/json": components["schemas"]["EntityPreview"];
2496
+ };
2497
+ };
2498
+ /** @description Forbidden - Insufficient permissions */
2499
+ 403: {
2500
+ headers: {
2501
+ [name: string]: unknown;
2502
+ };
2503
+ content: {
2504
+ /**
2505
+ * @example {
2506
+ * "error": "Forbidden: You do not have permission to perform this action"
2507
+ * }
2508
+ */
2509
+ "application/json": components["schemas"]["ErrorResponse"];
2510
+ };
2511
+ };
2512
+ /** @description Not Found - Resource does not exist */
2513
+ 404: {
2514
+ headers: {
2515
+ [name: string]: unknown;
2516
+ };
2517
+ content: {
2518
+ /**
2519
+ * @example {
2520
+ * "error": "Entity not found"
2521
+ * }
2522
+ */
2523
+ "application/json": components["schemas"]["ErrorResponse"];
2524
+ };
2525
+ };
2526
+ };
2527
+ };
2528
+ put?: never;
2529
+ post?: never;
2530
+ delete?: never;
2531
+ options?: never;
2532
+ head?: never;
2533
+ patch?: never;
2534
+ trace?: never;
2535
+ };
2374
2536
  "/entities/{id}/tip": {
2375
2537
  parameters: {
2376
2538
  query?: never;
@@ -6453,7 +6615,7 @@ type paths = {
6453
6615
  patch?: never;
6454
6616
  trace?: never;
6455
6617
  };
6456
- "/jobs/{id}": {
6618
+ "/agents/{id}/jobs/{job_id}/status": {
6457
6619
  parameters: {
6458
6620
  query?: never;
6459
6621
  header?: never;
@@ -6461,68 +6623,110 @@ type paths = {
6461
6623
  cookie?: never;
6462
6624
  };
6463
6625
  /**
6464
- * Get job status
6465
- * @description Returns focused job status and summary. Use this endpoint for quick status polling.
6626
+ * Get job status from agent
6627
+ * @description Proxies to the agent's `/status/:job_id` endpoint and returns the response.
6628
+ *
6629
+ * Use this endpoint to poll job status after invoking an agent. The `agent_id` and `job_id`
6630
+ * are both returned in the invoke response.
6631
+ *
6632
+ * **Query Parameters (passed through to agent):**
6633
+ * - `detail=full` - Include detailed sub-job/dispatch information (orchestrators/workflows)
6634
+ * - `errors=N` - Include last N errors (orchestrators only)
6466
6635
  *
6467
- * Returns 404 if the entity is not a job collection.
6636
+ * **Response:** Returns the agent's status response directly. Schema varies by agent type
6637
+ * (service, workflow, orchestrator) but always includes:
6638
+ * - `job_id` - Job identifier
6639
+ * - `status` - Current status (pending/running/done/error)
6640
+ * - `progress` - Progress counters (total/pending/done/error)
6641
+ * - `started_at` - When the job started
6642
+ * - `completed_at` - When the job completed (if done/error)
6643
+ * - `updated_at` - Last state modification
6468
6644
  *
6469
- * **Response includes:**
6470
- * - Current status (running/done/error)
6471
- * - Timestamps (started_at, completed_at)
6472
- * - Agent references (agent, main_agent, target)
6473
- * - Counts (files_count, sub_jobs_count)
6645
+ * Agent-specific fields (phase, stages, sub_jobs, folders, dispatches) are also included
6646
+ * when applicable.
6474
6647
  *
6475
6648
  * ---
6476
- * **Permission:** `collection:view`
6649
+ * **Permission:** `agent:view`
6477
6650
  * **Auth:** optional
6478
6651
  */
6479
6652
  get: {
6480
6653
  parameters: {
6481
- query?: never;
6654
+ query?: {
6655
+ detail?: "full";
6656
+ errors?: number | null;
6657
+ };
6482
6658
  header?: never;
6483
6659
  path: {
6484
- /** @description Entity ID (ULID) */
6485
6660
  id: string;
6661
+ job_id: string;
6486
6662
  };
6487
6663
  cookie?: never;
6488
6664
  };
6489
6665
  requestBody?: never;
6490
6666
  responses: {
6491
- /** @description Job status */
6667
+ /** @description Job status from agent */
6492
6668
  200: {
6493
6669
  headers: {
6494
6670
  [name: string]: unknown;
6495
6671
  };
6496
6672
  content: {
6497
- "application/json": components["schemas"]["JobStatusResponse"];
6673
+ "application/json": {
6674
+ /**
6675
+ * @description Unique job identifier
6676
+ * @example job_01KFXPQ3ABCDEFGHIJKLMN
6677
+ */
6678
+ job_id: string;
6679
+ /**
6680
+ * @description Current job status
6681
+ * @example running
6682
+ * @enum {string}
6683
+ */
6684
+ status: "pending" | "running" | "done" | "error";
6685
+ progress: components["schemas"]["JobProgress"];
6686
+ /**
6687
+ * @description When this job started (ISO timestamp)
6688
+ * @example 2026-01-26T17:48:15.000Z
6689
+ */
6690
+ started_at: string;
6691
+ /**
6692
+ * @description When this job completed (ISO timestamp)
6693
+ * @example 2026-01-26T17:49:30.000Z
6694
+ */
6695
+ completed_at?: string;
6696
+ /**
6697
+ * @description Last state modification (ISO timestamp)
6698
+ * @example 2026-01-26T17:49:27.000Z
6699
+ */
6700
+ updated_at?: string;
6701
+ /** @description Final result data (only when status is done) */
6702
+ result?: {
6703
+ [key: string]: unknown;
6704
+ };
6705
+ error?: components["schemas"]["JobError"];
6706
+ };
6498
6707
  };
6499
6708
  };
6500
- /** @description Forbidden - Insufficient permissions */
6501
- 403: {
6709
+ /** @description Not Found - Resource does not exist */
6710
+ 404: {
6502
6711
  headers: {
6503
6712
  [name: string]: unknown;
6504
6713
  };
6505
6714
  content: {
6506
6715
  /**
6507
6716
  * @example {
6508
- * "error": "Forbidden: You do not have permission to perform this action"
6717
+ * "error": "Entity not found"
6509
6718
  * }
6510
6719
  */
6511
6720
  "application/json": components["schemas"]["ErrorResponse"];
6512
6721
  };
6513
6722
  };
6514
- /** @description Not Found - Resource does not exist */
6515
- 404: {
6723
+ /** @description Agent unreachable or returned an error */
6724
+ 502: {
6516
6725
  headers: {
6517
6726
  [name: string]: unknown;
6518
6727
  };
6519
6728
  content: {
6520
- /**
6521
- * @example {
6522
- * "error": "Entity not found"
6523
- * }
6524
- */
6525
- "application/json": components["schemas"]["ErrorResponse"];
6729
+ "application/json": components["schemas"]["AgentUnreachableError"];
6526
6730
  };
6527
6731
  };
6528
6732
  };
@@ -6618,13 +6822,28 @@ type paths = {
6618
6822
  *
6619
6823
  * Use this when you know both endpoints and want to discover how they connect - for example, finding the chain of relationships between a person and a document.
6620
6824
  *
6825
+ * **Entity Expansion (default: preview):**
6826
+ * - Omit `expand` or use `?expand=preview` - Lightweight previews for all path entities
6827
+ * - `?expand=full` - Complete entity manifests (use with caution)
6828
+ * - `?expand=none` - Disable expansion (graph metadata only)
6829
+ *
6830
+ * **Performance Warning:** 100 paths can reference 400-800 unique entities, adding 5-10s latency with expansion.
6831
+ *
6832
+ * **Recommendations:**
6833
+ * - Use `limit: 10-20` when using expansion
6834
+ * - Prefer preview over full
6835
+ * - Use `expand=none` for large result sets, then fetch specific entities separately
6836
+ *
6621
6837
  * ---
6622
6838
  * **Permission:** `graph:query`
6623
6839
  * **Auth:** required
6624
6840
  */
6625
6841
  post: {
6626
6842
  parameters: {
6627
- query?: never;
6843
+ query?: {
6844
+ /** @description Entity expansion mode. Omit for preview (default), "full" for complete manifests, "none" to disable */
6845
+ expand?: "preview" | "full" | "none";
6846
+ };
6628
6847
  header?: never;
6629
6848
  path?: never;
6630
6849
  cookie?: never;
@@ -6692,13 +6911,23 @@ type paths = {
6692
6911
  *
6693
6912
  * **When to use this vs POST /query:** This endpoint returns exhaustive, unranked results - all reachable entities up to the limit. Use `POST /query` when you want relevance-ranked results combining semantic similarity with graph structure. Use this endpoint when you need comprehensive graph exploration from known entity IDs.
6694
6913
  *
6914
+ * **Target Expansion (default: preview):**
6915
+ * - Omit `expand` or use `?expand=preview` - Lightweight target previews
6916
+ * - `?expand=full` - Complete target manifests
6917
+ * - `?expand=none` - Disable expansion (graph metadata only)
6918
+ *
6919
+ * **Performance:** With 100 targets, expansion adds ~1s.
6920
+ *
6695
6921
  * ---
6696
6922
  * **Permission:** `graph:query`
6697
6923
  * **Auth:** required
6698
6924
  */
6699
6925
  post: {
6700
6926
  parameters: {
6701
- query?: never;
6927
+ query?: {
6928
+ /** @description Entity expansion mode. Omit for preview (default), "full" for complete manifests, "none" to disable */
6929
+ expand?: "preview" | "full" | "none";
6930
+ };
6702
6931
  header?: never;
6703
6932
  path?: never;
6704
6933
  cookie?: never;
@@ -6762,13 +6991,23 @@ type paths = {
6762
6991
  * Get entity from graph
6763
6992
  * @description Get entity details with all relationships from the graph database. Unlike the entity manifest, this includes both outgoing and incoming relationships - showing not just what this entity links to, but also what links to it.
6764
6993
  *
6994
+ * **Peer Expansion (default: preview):**
6995
+ * - Omit `expand` or use `?expand=preview` - Lightweight peer previews
6996
+ * - `?expand=full` - Complete peer manifests
6997
+ * - `?expand=none` - Disable expansion (graph metadata only)
6998
+ *
6999
+ * **Performance:** With 50 peers, expansion adds ~500ms.
7000
+ *
6765
7001
  * ---
6766
7002
  * **Permission:** `graph:query`
6767
7003
  * **Auth:** required
6768
7004
  */
6769
7005
  get: {
6770
7006
  parameters: {
6771
- query?: never;
7007
+ query?: {
7008
+ /** @description Entity expansion mode. Omit for preview (default), "full" for complete manifests, "none" to disable */
7009
+ expand?: "preview" | "full" | "none";
7010
+ };
6772
7011
  header?: never;
6773
7012
  path: {
6774
7013
  /** @description Entity ID (ULID) */
@@ -6882,6 +7121,23 @@ type paths = {
6882
7121
  * @01KE4ZY... -[*]{,2}-> type:person # From exact entity
6883
7122
  * ```
6884
7123
  *
7124
+ * ## Entity Expansion
7125
+ *
7126
+ * Control how much entity data is included in results via the `expand` parameter.
7127
+ *
7128
+ * | Value | Description | Use Case |
7129
+ * |-------|-------------|----------|
7130
+ * | (omitted) | **Preview** (default) - lightweight preview data | Best balance of detail and payload size |
7131
+ * | `preview` | Same as omitted - lightweight preview data | Explicit preview mode |
7132
+ * | `full` | Complete entity manifest | When you need all properties, relationships, versions |
7133
+ * | `none` | No expansion - Pinecone metadata only | Fastest response, smallest payload |
7134
+ *
7135
+ * **Preview mode** includes: label, truncated description/text (200 chars), created_at, updated_at.
7136
+ *
7137
+ * **Full mode** includes: all properties, relationships, version info, CID.
7138
+ *
7139
+ * Both result entities and path step entities are expanded.
7140
+ *
6885
7141
  *
6886
7142
  * ---
6887
7143
  * **Permission:** `query:execute`
@@ -6957,6 +7213,17 @@ type paths = {
6957
7213
  *
6958
7214
  * Uses the collection's weighted centroid vector (combination of description and entity embeddings) to find related collections.
6959
7215
  *
7216
+ * **Entity Expansion:**
7217
+ *
7218
+ * Use `expand` in the request body to fetch entity data inline with search results:
7219
+ *
7220
+ * - **`expand: "preview"` (default)**: Adds `entity_preview` with fresh lightweight data (id, type, label, timestamps)
7221
+ * - **`expand: "full"`**: Adds `entity` with complete manifest including all properties and relationships
7222
+ * - **`expand: "none"`**: Returns search metadata only (fastest, lowest bandwidth)
7223
+ *
7224
+ * Preview mode is recommended for most use cases. Full expansion can result in large payloads.
7225
+ * Gracefully handles deleted or inaccessible entities (returns results without expansion data).
7226
+ *
6960
7227
  * ---
6961
7228
  * **Permission:** `search:similar`
6962
7229
  * **Auth:** required
@@ -6983,6 +7250,12 @@ type paths = {
6983
7250
  * @default false
6984
7251
  */
6985
7252
  refresh?: boolean;
7253
+ /**
7254
+ * @description Entity expansion mode. Default: "preview" for lightweight previews, "full" for complete manifests, "none" for no expansion.
7255
+ * @example preview
7256
+ * @enum {string}
7257
+ */
7258
+ expand?: "preview" | "full" | "none";
6986
7259
  };
6987
7260
  };
6988
7261
  };
@@ -7000,6 +7273,8 @@ type paths = {
7000
7273
  score: number;
7001
7274
  created_at?: string;
7002
7275
  updated_at?: string;
7276
+ entity_preview?: components["schemas"]["EntityPreview"] & unknown;
7277
+ entity?: components["schemas"]["EntityResponse"] & unknown;
7003
7278
  }[];
7004
7279
  metadata: {
7005
7280
  source_pi: string;
@@ -7092,6 +7367,17 @@ type paths = {
7092
7367
  * 2. Then searches within each collection for similar items
7093
7368
  * 3. Aggregates and ranks results with diversity weighting
7094
7369
  *
7370
+ * **Entity Expansion:**
7371
+ *
7372
+ * Use `expand` in the request body to fetch entity data inline with search results:
7373
+ *
7374
+ * - **`expand: "preview"` (default)**: Adds `entity_preview` with fresh lightweight data (id, type, label, timestamps)
7375
+ * - **`expand: "full"`**: Adds `entity` with complete manifest including all properties and relationships
7376
+ * - **`expand: "none"`**: Returns search metadata only (fastest, lowest bandwidth)
7377
+ *
7378
+ * Preview mode is recommended for most use cases. Full expansion can result in large payloads.
7379
+ * Gracefully handles deleted or inaccessible entities (returns results without expansion data).
7380
+ *
7095
7381
  * ---
7096
7382
  * **Permission:** `search:similar`
7097
7383
  * **Auth:** required
@@ -7135,6 +7421,12 @@ type paths = {
7135
7421
  * @default false
7136
7422
  */
7137
7423
  refresh?: boolean;
7424
+ /**
7425
+ * @description Entity expansion mode. Default: "preview" for lightweight previews, "full" for complete manifests, "none" for no expansion.
7426
+ * @example preview
7427
+ * @enum {string}
7428
+ */
7429
+ expand?: "preview" | "full" | "none";
7138
7430
  };
7139
7431
  };
7140
7432
  };
@@ -7154,6 +7446,8 @@ type paths = {
7154
7446
  score: number;
7155
7447
  created_at?: string;
7156
7448
  updated_at?: string;
7449
+ entity_preview?: components["schemas"]["EntityPreview"] & unknown;
7450
+ entity?: components["schemas"]["EntityResponse"] & unknown;
7157
7451
  }[];
7158
7452
  metadata: {
7159
7453
  source_pi: string;
@@ -7244,6 +7538,17 @@ type paths = {
7244
7538
  *
7245
7539
  * Use this endpoint to discover collections about a topic. Results are ranked by semantic similarity to your query.
7246
7540
  *
7541
+ * **Entity Expansion:**
7542
+ *
7543
+ * Use `expand` in the request body to fetch entity data inline with search results:
7544
+ *
7545
+ * - **`expand: "preview"` (default)**: Adds `entity_preview` with fresh lightweight data (id, type, label, timestamps)
7546
+ * - **`expand: "full"`**: Adds `entity` with complete manifest including all properties and relationships
7547
+ * - **`expand: "none"`**: Returns search metadata only (fastest, lowest bandwidth)
7548
+ *
7549
+ * Preview mode is recommended for most use cases. Full expansion can result in large payloads.
7550
+ * Gracefully handles deleted or inaccessible entities (returns results without expansion data).
7551
+ *
7247
7552
  * ---
7248
7553
  * **Permission:** `search:query`
7249
7554
  * **Auth:** required
@@ -7267,6 +7572,12 @@ type paths = {
7267
7572
  limit?: number;
7268
7573
  /** @description Filter by collection types */
7269
7574
  types?: string[];
7575
+ /**
7576
+ * @description Entity expansion mode. Default: "preview" for lightweight previews, "full" for complete manifests, "none" for no expansion.
7577
+ * @example preview
7578
+ * @enum {string}
7579
+ */
7580
+ expand?: "preview" | "full" | "none";
7270
7581
  };
7271
7582
  };
7272
7583
  };
@@ -7285,6 +7596,8 @@ type paths = {
7285
7596
  score: number;
7286
7597
  created_at?: string;
7287
7598
  updated_at?: string;
7599
+ entity_preview?: components["schemas"]["EntityPreview"] & unknown;
7600
+ entity?: components["schemas"]["EntityResponse"] & unknown;
7288
7601
  }[];
7289
7602
  metadata: {
7290
7603
  query: string;
@@ -7358,6 +7671,17 @@ type paths = {
7358
7671
  *
7359
7672
  * Use this endpoint to discover agents across the network. Only active agents are returned. Results are ranked by semantic similarity to your query based on agent descriptions and capabilities.
7360
7673
  *
7674
+ * **Entity Expansion:**
7675
+ *
7676
+ * Use `expand` in the request body to fetch entity data inline with search results:
7677
+ *
7678
+ * - **`expand: "preview"` (default)**: Adds `entity_preview` with fresh lightweight data (id, type, label, timestamps)
7679
+ * - **`expand: "full"`**: Adds `entity` with complete manifest including all properties and relationships
7680
+ * - **`expand: "none"`**: Returns search metadata only (fastest, lowest bandwidth)
7681
+ *
7682
+ * Preview mode is recommended for most use cases. Full expansion can result in large payloads.
7683
+ * Gracefully handles deleted or inaccessible entities (returns results without expansion data).
7684
+ *
7361
7685
  * ---
7362
7686
  * **Permission:** `search:query`
7363
7687
  * **Auth:** required
@@ -7379,6 +7703,12 @@ type paths = {
7379
7703
  * @default 10
7380
7704
  */
7381
7705
  limit?: number;
7706
+ /**
7707
+ * @description Entity expansion mode. Default: "preview" for lightweight previews, "full" for complete manifests, "none" for no expansion.
7708
+ * @example preview
7709
+ * @enum {string}
7710
+ */
7711
+ expand?: "preview" | "full" | "none";
7382
7712
  };
7383
7713
  };
7384
7714
  };
@@ -7398,6 +7728,8 @@ type paths = {
7398
7728
  status?: string;
7399
7729
  created_at?: string;
7400
7730
  updated_at?: string;
7731
+ entity_preview?: components["schemas"]["EntityPreview"] & unknown;
7732
+ entity?: components["schemas"]["EntityResponse"] & unknown;
7401
7733
  }[];
7402
7734
  metadata: {
7403
7735
  query: string;
@@ -7473,6 +7805,17 @@ type paths = {
7473
7805
  *
7474
7806
  * Use `per_collection_limit` to ensure result diversity when searching multiple collections.
7475
7807
  *
7808
+ * **Entity Expansion:**
7809
+ *
7810
+ * Use `expand` in the request body to fetch entity data inline with search results:
7811
+ *
7812
+ * - **`expand: "preview"` (default)**: Adds `entity_preview` with fresh lightweight data (id, type, label, timestamps)
7813
+ * - **`expand: "full"`**: Adds `entity` with complete manifest including all properties and relationships
7814
+ * - **`expand: "none"`**: Returns search metadata only (fastest, lowest bandwidth)
7815
+ *
7816
+ * Preview mode is recommended for most use cases. Full expansion can result in large payloads.
7817
+ * Gracefully handles deleted or inaccessible entities (returns results without expansion data).
7818
+ *
7476
7819
  * ---
7477
7820
  * **Permission:** `search:query`
7478
7821
  * **Auth:** required
@@ -7502,6 +7845,12 @@ type paths = {
7502
7845
  types?: string[];
7503
7846
  /** @description Max results per collection for diversity */
7504
7847
  per_collection_limit?: number;
7848
+ /**
7849
+ * @description Entity expansion mode. Default: "preview" for lightweight previews, "full" for complete manifests, "none" for no expansion.
7850
+ * @example preview
7851
+ * @enum {string}
7852
+ */
7853
+ expand?: "preview" | "full" | "none";
7505
7854
  };
7506
7855
  };
7507
7856
  };
@@ -7521,6 +7870,8 @@ type paths = {
7521
7870
  collection_pi: string;
7522
7871
  created_at?: string;
7523
7872
  updated_at?: string;
7873
+ entity_preview?: components["schemas"]["EntityPreview"] & unknown;
7874
+ entity?: components["schemas"]["EntityResponse"] & unknown;
7524
7875
  }[];
7525
7876
  metadata: {
7526
7877
  collection_pis: string[];
@@ -7601,6 +7952,17 @@ type paths = {
7601
7952
  *
7602
7953
  * Great for exploration and AI agents navigating the network.
7603
7954
  *
7955
+ * **Entity Expansion:**
7956
+ *
7957
+ * Use `expand` in the request body to fetch entity data inline with search results:
7958
+ *
7959
+ * - **`expand: "preview"` (default)**: Adds `entity_preview` with fresh lightweight data (id, type, label, timestamps)
7960
+ * - **`expand: "full"`**: Adds `entity` with complete manifest including all properties and relationships
7961
+ * - **`expand: "none"`**: Returns search metadata only (fastest, lowest bandwidth)
7962
+ *
7963
+ * Preview mode is recommended for most use cases. Full expansion can result in large payloads.
7964
+ * Gracefully handles deleted or inaccessible entities (returns results without expansion data).
7965
+ *
7604
7966
  * ---
7605
7967
  * **Permission:** `search:query`
7606
7968
  * **Auth:** required
@@ -7634,6 +7996,12 @@ type paths = {
7634
7996
  * @default 5
7635
7997
  */
7636
7998
  per_collection_limit?: number;
7999
+ /**
8000
+ * @description Entity expansion mode. Default: "preview" for lightweight previews, "full" for complete manifests, "none" for no expansion.
8001
+ * @example preview
8002
+ * @enum {string}
8003
+ */
8004
+ expand?: "preview" | "full" | "none";
7637
8005
  };
7638
8006
  };
7639
8007
  };
@@ -7653,6 +8021,8 @@ type paths = {
7653
8021
  collection_pi: string;
7654
8022
  created_at?: string;
7655
8023
  updated_at?: string;
8024
+ entity_preview?: components["schemas"]["EntityPreview"] & unknown;
8025
+ entity?: components["schemas"]["EntityResponse"] & unknown;
7656
8026
  }[];
7657
8027
  metadata: {
7658
8028
  query: string;
@@ -8536,6 +8906,60 @@ type components = {
8536
8906
  has_more: boolean;
8537
8907
  };
8538
8908
  };
8909
+ /**
8910
+ * @description Lightweight entity preview with fresh data. Included by default (expand: "preview").
8911
+ * @example {
8912
+ * "id": "01KDETYWYWM0MJVKM8DK3AEXPY",
8913
+ * "type": "file",
8914
+ * "label": "Research Paper.pdf",
8915
+ * "collection_pi": "01JCOLLECTION123456789AB",
8916
+ * "description_preview": "A comprehensive study on distributed systems architecture...",
8917
+ * "created_at": "2026-01-12T00:00:00.000Z",
8918
+ * "updated_at": "2026-01-12T10:30:00.000Z"
8919
+ * }
8920
+ */
8921
+ EntityPreview: {
8922
+ /**
8923
+ * @description Entity ID (persistent identifier)
8924
+ * @example 01KDETYWYWM0MJVKM8DK3AEXPY
8925
+ */
8926
+ id: string;
8927
+ /**
8928
+ * @description Entity type
8929
+ * @example document
8930
+ */
8931
+ type: string;
8932
+ /**
8933
+ * @description Entity label (from properties.label, filename, or name)
8934
+ * @example Research Paper.pdf
8935
+ */
8936
+ label: string;
8937
+ /**
8938
+ * @description Collection ID this entity belongs to
8939
+ * @example 01JCOLLECTION123456789ABCD
8940
+ */
8941
+ collection_pi?: string;
8942
+ /**
8943
+ * @description Truncated description (max 200 chars + "...")
8944
+ * @example This document contains research findings from the 2025 study on entity management systems. It covers key architectural decisions and performance benchmarks...
8945
+ */
8946
+ description_preview?: string;
8947
+ /**
8948
+ * @description Truncated text content (max 200 chars + "...")
8949
+ * @example Introduction: The rise of decentralized entity management systems has created new challenges for data integrity and consistency. This paper explores...
8950
+ */
8951
+ text_preview?: string;
8952
+ /**
8953
+ * @description Entity creation timestamp (ISO 8601)
8954
+ * @example 2025-01-15T10:00:00.000Z
8955
+ */
8956
+ created_at: string;
8957
+ /**
8958
+ * @description Last update timestamp (ISO 8601)
8959
+ * @example 2025-01-20T14:30:00.000Z
8960
+ */
8961
+ updated_at: string;
8962
+ };
8539
8963
  SearchResultItem: {
8540
8964
  /**
8541
8965
  * @description Entity persistent identifier
@@ -8572,6 +8996,8 @@ type components = {
8572
8996
  * @example 2026-01-12T10:30:00.000Z
8573
8997
  */
8574
8998
  updated_at?: string;
8999
+ entity_preview?: components["schemas"]["EntityPreview"];
9000
+ entity?: components["schemas"]["EntityResponse"] & unknown;
8575
9001
  };
8576
9002
  /** @description Search metadata and statistics */
8577
9003
  SearchMetadata: {
@@ -8622,6 +9048,12 @@ type components = {
8622
9048
  * @example 50
8623
9049
  */
8624
9050
  limit: number;
9051
+ /**
9052
+ * @description Entity expansion mode. Default: "preview" for lightweight previews, "full" for complete manifests, "none" for no expansion.
9053
+ * @example preview
9054
+ * @enum {string}
9055
+ */
9056
+ expand?: "preview" | "full" | "none";
8625
9057
  };
8626
9058
  CollectionResponse: components["schemas"]["EntityResponse"] & {
8627
9059
  /** @enum {string} */
@@ -8995,7 +9427,7 @@ type components = {
8995
9427
  */
8996
9428
  type: string;
8997
9429
  /**
8998
- * @description Entity display label
9430
+ * @description Entity display label (from GraphDB, may be stale)
8999
9431
  * @example My Document
9000
9432
  */
9001
9433
  label: string;
@@ -9006,9 +9438,11 @@ type components = {
9006
9438
  created_at: string;
9007
9439
  /**
9008
9440
  * Format: date-time
9009
- * @description When the entity was last updated
9441
+ * @description When the entity was last updated (from GraphDB)
9010
9442
  */
9011
9443
  updated_at: string;
9444
+ preview?: components["schemas"]["EntityPreview"] & unknown;
9445
+ entity?: components["schemas"]["EntityResponse"] & unknown;
9012
9446
  };
9013
9447
  CollectionEntitiesResponse: {
9014
9448
  /** @description Collection ID */
@@ -11029,57 +11463,51 @@ type components = {
11029
11463
  */
11030
11464
  confirm?: boolean;
11031
11465
  };
11032
- EntityRef: {
11466
+ JobProgress: {
11033
11467
  /**
11034
- * @description Entity ID (ULID format)
11035
- * @example 01KDETYWYWM0MJVKM8DK3AEXPY
11468
+ * @description Total items to process
11469
+ * @example 10
11036
11470
  */
11037
- pi: string;
11038
- type?: string;
11039
- label?: string;
11040
- };
11041
- JobStatusResponse: {
11471
+ total: number;
11042
11472
  /**
11043
- * @description Entity ID (ULID format)
11044
- * @example 01KDETYWYWM0MJVKM8DK3AEXPY
11473
+ * @description Items not yet started
11474
+ * @example 3
11045
11475
  */
11046
- id: string;
11476
+ pending: number;
11047
11477
  /**
11048
- * @description Content Identifier (CID) - content-addressed hash
11049
- * @example bafyreibug443cnd4endcwinwttw3c3dzmcl2ikht64xzn5qg56bix3usfy
11478
+ * @description Items dispatched but not complete
11479
+ * @example 2
11050
11480
  */
11051
- cid: string;
11481
+ dispatched?: number;
11052
11482
  /**
11053
- * @description Job collection status
11054
- * @example running
11055
- * @enum {string}
11483
+ * @description Successfully completed items
11484
+ * @example 4
11056
11485
  */
11057
- status: "running" | "done" | "error";
11486
+ done: number;
11058
11487
  /**
11059
- * Format: date-time
11060
- * @description ISO 8601 datetime
11061
- * @example 2025-12-26T12:00:00.000Z
11488
+ * @description Failed items
11489
+ * @example 1
11062
11490
  */
11063
- started_at: string;
11491
+ error: number;
11492
+ };
11493
+ JobError: {
11064
11494
  /**
11065
- * Format: date-time
11066
- * @description ISO 8601 datetime
11067
- * @example 2025-12-26T12:00:00.000Z
11495
+ * @description Error code
11496
+ * @example TIMEOUT
11068
11497
  */
11069
- completed_at: string | null;
11070
- agent: components["schemas"]["EntityRef"];
11071
- target?: components["schemas"]["EntityRef"];
11072
- main_agent?: components["schemas"]["EntityRef"];
11498
+ code: string;
11073
11499
  /**
11074
- * @description Number of files contained in this job collection
11075
- * @example 5
11500
+ * @description Human-readable error message
11501
+ * @example Request timed out after 30 seconds
11076
11502
  */
11077
- files_count: number;
11503
+ message: string;
11504
+ };
11505
+ AgentUnreachableError: {
11078
11506
  /**
11079
- * @description Number of sub-job collections
11080
- * @example 2
11507
+ * @description Error message
11508
+ * @example Failed to reach agent: Connection refused
11081
11509
  */
11082
- sub_jobs_count: number;
11510
+ error: string;
11083
11511
  };
11084
11512
  Event: {
11085
11513
  /**
@@ -11117,6 +11545,35 @@ type components = {
11117
11545
  */
11118
11546
  cursor: number;
11119
11547
  };
11548
+ /**
11549
+ * @example {
11550
+ * "subject_pi": "01KE4ZY69F9R40E88PK9S0TQRQ",
11551
+ * "subject_label": "Project Folder",
11552
+ * "subject_type": "folder",
11553
+ * "subject_preview": {
11554
+ * "id": "01KE4ZY69F9R40E88PK9S0TQRQ",
11555
+ * "type": "folder",
11556
+ * "label": "Project Folder",
11557
+ * "collection_pi": "01JCOLLECTION123456789ABCD",
11558
+ * "description_preview": "Main project folder containing research documents...",
11559
+ * "created_at": "2025-01-10T08:00:00.000Z",
11560
+ * "updated_at": "2025-01-18T16:45:00.000Z"
11561
+ * },
11562
+ * "predicate": "contains",
11563
+ * "object_pi": "01KE506KZGD8M2P1XK3VNQT4YR",
11564
+ * "object_label": "Research Paper.pdf",
11565
+ * "object_type": "file",
11566
+ * "object_preview": {
11567
+ * "id": "01KE506KZGD8M2P1XK3VNQT4YR",
11568
+ * "type": "file",
11569
+ * "label": "Research Paper.pdf",
11570
+ * "collection_pi": "01JCOLLECTION123456789ABCD",
11571
+ * "description_preview": "Analysis of entity management patterns and best practices...",
11572
+ * "created_at": "2025-01-15T10:00:00.000Z",
11573
+ * "updated_at": "2025-01-20T14:30:00.000Z"
11574
+ * }
11575
+ * }
11576
+ */
11120
11577
  PathEdge: {
11121
11578
  /**
11122
11579
  * @description Source entity PI
@@ -11127,6 +11584,8 @@ type components = {
11127
11584
  subject_label: string;
11128
11585
  /** @description Source entity type */
11129
11586
  subject_type: string;
11587
+ subject_preview?: components["schemas"]["EntityPreview"] & unknown;
11588
+ subject_entity?: components["schemas"]["EntityResponse"] & unknown;
11130
11589
  /** @description Relationship predicate */
11131
11590
  predicate: string;
11132
11591
  /**
@@ -11138,6 +11597,8 @@ type components = {
11138
11597
  object_label: string;
11139
11598
  /** @description Target entity type */
11140
11599
  object_type: string;
11600
+ object_preview?: components["schemas"]["EntityPreview"] & unknown;
11601
+ object_entity?: components["schemas"]["EntityResponse"] & unknown;
11141
11602
  };
11142
11603
  PathResult: {
11143
11604
  /**
@@ -11194,6 +11655,25 @@ type components = {
11194
11655
  */
11195
11656
  limit: number;
11196
11657
  };
11658
+ /**
11659
+ * @example {
11660
+ * "source_pi": "01KE4ZY69F9R40E88PK9S0TQRQ",
11661
+ * "target_pi": "01KE506KZGD8M2P1XK3VNQT4YR",
11662
+ * "target_label": "Research Paper.pdf",
11663
+ * "target_type": "file",
11664
+ * "length": 1,
11665
+ * "edges": [],
11666
+ * "target_preview": {
11667
+ * "id": "01KE506KZGD8M2P1XK3VNQT4YR",
11668
+ * "type": "file",
11669
+ * "label": "Research Paper.pdf",
11670
+ * "collection_pi": "01JCOLLECTION123456789ABCD",
11671
+ * "description_preview": "Analysis of entity management patterns and best practices...",
11672
+ * "created_at": "2025-01-15T10:00:00.000Z",
11673
+ * "updated_at": "2025-01-20T14:30:00.000Z"
11674
+ * }
11675
+ * }
11676
+ */
11197
11677
  ReachableResult: {
11198
11678
  /**
11199
11679
  * @description Entity ID (ULID format)
@@ -11210,6 +11690,8 @@ type components = {
11210
11690
  /** @description Path length (number of hops) */
11211
11691
  length: number;
11212
11692
  edges: components["schemas"]["PathEdge"][];
11693
+ target_preview?: components["schemas"]["EntityPreview"] & unknown;
11694
+ target_entity?: components["schemas"]["EntityResponse"] & unknown;
11213
11695
  };
11214
11696
  PathsReachableResponse: {
11215
11697
  results: components["schemas"]["ReachableResult"][];
@@ -11249,6 +11731,25 @@ type components = {
11249
11731
  */
11250
11732
  limit: number;
11251
11733
  };
11734
+ /**
11735
+ * @example {
11736
+ * "direction": "outgoing",
11737
+ * "predicate": "contains",
11738
+ * "peer_pi": "01KE506KZGD8M2P1XK3VNQT4YR",
11739
+ * "peer_type": "file",
11740
+ * "peer_label": "Research Paper.pdf",
11741
+ * "properties": {},
11742
+ * "peer_preview": {
11743
+ * "id": "01KE506KZGD8M2P1XK3VNQT4YR",
11744
+ * "type": "file",
11745
+ * "label": "Research Paper.pdf",
11746
+ * "collection_pi": "01KE4ZY69F9R40E88PK9S0TQRQ",
11747
+ * "description_preview": "Analysis of entity management patterns and best practices...",
11748
+ * "created_at": "2025-01-15T10:00:00.000Z",
11749
+ * "updated_at": "2025-01-20T14:30:00.000Z"
11750
+ * }
11751
+ * }
11752
+ */
11252
11753
  RelationshipInfo: {
11253
11754
  /** @enum {string} */
11254
11755
  direction: "outgoing" | "incoming";
@@ -11263,7 +11764,38 @@ type components = {
11263
11764
  properties: {
11264
11765
  [key: string]: unknown;
11265
11766
  };
11767
+ peer_preview?: components["schemas"]["EntityPreview"] & unknown;
11768
+ peer_entity?: components["schemas"]["EntityResponse"] & unknown;
11266
11769
  };
11770
+ /**
11771
+ * @example {
11772
+ * "pi": "01KE4ZY69F9R40E88PK9S0TQRQ",
11773
+ * "type": "folder",
11774
+ * "label": "Project Folder",
11775
+ * "collection_pi": "01JCOLLECTION123456789ABCD",
11776
+ * "created_at": "2025-01-10T08:00:00.000Z",
11777
+ * "updated_at": "2025-01-18T16:45:00.000Z",
11778
+ * "relationships": [
11779
+ * {
11780
+ * "direction": "outgoing",
11781
+ * "predicate": "contains",
11782
+ * "peer_pi": "01KE506KZGD8M2P1XK3VNQT4YR",
11783
+ * "peer_type": "file",
11784
+ * "peer_label": "Research Paper.pdf",
11785
+ * "properties": {},
11786
+ * "peer_preview": {
11787
+ * "id": "01KE506KZGD8M2P1XK3VNQT4YR",
11788
+ * "type": "file",
11789
+ * "label": "Research Paper.pdf",
11790
+ * "collection_pi": "01JCOLLECTION123456789ABCD",
11791
+ * "description_preview": "Analysis of entity management patterns and best practices...",
11792
+ * "created_at": "2025-01-15T10:00:00.000Z",
11793
+ * "updated_at": "2025-01-20T14:30:00.000Z"
11794
+ * }
11795
+ * }
11796
+ * ]
11797
+ * }
11798
+ */
11267
11799
  GraphEntityResponse: {
11268
11800
  /**
11269
11801
  * @description Entity ID (ULID format)
@@ -11279,34 +11811,30 @@ type components = {
11279
11811
  updated_at: string;
11280
11812
  relationships: components["schemas"]["RelationshipInfo"][];
11281
11813
  };
11282
- QueryEntity: {
11283
- /**
11284
- * @description Entity ID (ULID format)
11285
- * @example 01KDETYWYWM0MJVKM8DK3AEXPY
11286
- */
11287
- pi: string;
11288
- type: string;
11289
- label: string;
11290
- collection_pi: string | null;
11291
- };
11292
- EntityStep: {
11293
- entity: string;
11294
- label?: string;
11295
- type?: string;
11296
- score?: number;
11297
- };
11298
11814
  EdgeStep: {
11299
11815
  edge: string;
11300
11816
  /** @enum {string} */
11301
11817
  direction: "outgoing" | "incoming";
11302
11818
  score?: number;
11303
11819
  };
11304
- PathStep: components["schemas"]["EntityStep"] | components["schemas"]["EdgeStep"];
11305
- QueryResultItem: {
11306
- entity: components["schemas"]["QueryEntity"];
11307
- path: components["schemas"]["PathStep"][];
11308
- score: number;
11309
- };
11820
+ PathStep: {
11821
+ /**
11822
+ * @description Entity ID
11823
+ * @example 01KPERSON_EINSTEIN
11824
+ */
11825
+ entity: string;
11826
+ /** @example Albert Einstein */
11827
+ label?: string;
11828
+ /** @example person */
11829
+ type?: string;
11830
+ /**
11831
+ * @description Semantic similarity score (0-1)
11832
+ * @example 0.92
11833
+ */
11834
+ score?: number;
11835
+ preview_data?: components["schemas"]["EntityPreview"] & unknown;
11836
+ full_entity?: components["schemas"]["EntityResponse"] & unknown;
11837
+ } | components["schemas"]["EdgeStep"];
11310
11838
  QueryMetadata: {
11311
11839
  query: string;
11312
11840
  hops: number;
@@ -11321,7 +11849,48 @@ type components = {
11321
11849
  stopped_at_hop?: number;
11322
11850
  };
11323
11851
  QueryResponse: {
11324
- results: components["schemas"]["QueryResultItem"][];
11852
+ results: {
11853
+ /**
11854
+ * @description Query result entity with optional expansion data
11855
+ * @example {
11856
+ * "pi": "01KE4ZY69F9R40E88PK9S0TQRQ",
11857
+ * "type": "person",
11858
+ * "label": "Albert Einstein",
11859
+ * "collection_pi": "01JCOLL_RESEARCH",
11860
+ * "preview_data": {
11861
+ * "id": "01KE4ZY69F9R40E88PK9S0TQRQ",
11862
+ * "type": "person",
11863
+ * "label": "Albert Einstein",
11864
+ * "collection_pi": "01JCOLL_RESEARCH",
11865
+ * "description_preview": "German-born theoretical physicist who developed the theory of relativity...",
11866
+ * "created_at": "2025-01-15T10:00:00.000Z",
11867
+ * "updated_at": "2025-01-20T14:30:00.000Z"
11868
+ * }
11869
+ * }
11870
+ */
11871
+ entity: {
11872
+ /**
11873
+ * @description Entity ID (ULID format)
11874
+ * @example 01KDETYWYWM0MJVKM8DK3AEXPY
11875
+ */
11876
+ pi: string;
11877
+ /** @example person */
11878
+ type: string;
11879
+ /** @example Albert Einstein */
11880
+ label: string;
11881
+ /** @example 01JCOLL_RESEARCH */
11882
+ collection_pi: string | null;
11883
+ preview_data?: components["schemas"]["EntityPreview"] & unknown;
11884
+ full_entity?: components["schemas"]["EntityResponse"] & unknown;
11885
+ };
11886
+ /** @description Path from entry point to result entity (empty for zero-hop queries) */
11887
+ path: components["schemas"]["PathStep"][];
11888
+ /**
11889
+ * @description Combined relevance score (semantic similarity + path length)
11890
+ * @example 0.89
11891
+ */
11892
+ score: number;
11893
+ }[];
11325
11894
  metadata: components["schemas"]["QueryMetadata"];
11326
11895
  };
11327
11896
  QueryRequest: {
@@ -11346,6 +11915,15 @@ type components = {
11346
11915
  * @example 01JCOLL_MEDICAL
11347
11916
  */
11348
11917
  collection?: string;
11918
+ /**
11919
+ * @description Control entity expansion in results and path steps.
11920
+ * - **omitted/preview** (default): Attach lightweight preview data (label, timestamps, truncated description/text)
11921
+ * - **full**: Attach complete entity manifest (all properties, relationships, version info)
11922
+ * - **none**: No expansion - return only Pinecone metadata (fastest, smallest payload)
11923
+ * @example preview
11924
+ * @enum {string}
11925
+ */
11926
+ expand?: "none" | "preview" | "full";
11349
11927
  };
11350
11928
  TextPart: {
11351
11929
  /** @enum {string} */