@meetkai/mka1 0.48.46 → 0.48.47

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.
Files changed (33) hide show
  1. package/bin/mcp-server.js +49 -12
  2. package/bin/mcp-server.js.map +7 -7
  3. package/dist/commonjs/lib/config.d.ts +3 -3
  4. package/dist/commonjs/lib/config.js +3 -3
  5. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  6. package/dist/commonjs/mcp-server/server.js +1 -1
  7. package/dist/commonjs/models/components/createvectorstorerequest.d.ts +31 -0
  8. package/dist/commonjs/models/components/createvectorstorerequest.d.ts.map +1 -1
  9. package/dist/commonjs/models/components/createvectorstorerequest.js +24 -1
  10. package/dist/commonjs/models/components/createvectorstorerequest.js.map +1 -1
  11. package/dist/commonjs/models/components/vectorstore.d.ts +31 -0
  12. package/dist/commonjs/models/components/vectorstore.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/vectorstore.js +25 -1
  14. package/dist/commonjs/models/components/vectorstore.js.map +1 -1
  15. package/dist/esm/lib/config.d.ts +3 -3
  16. package/dist/esm/lib/config.js +3 -3
  17. package/dist/esm/mcp-server/mcp-server.js +1 -1
  18. package/dist/esm/mcp-server/server.js +1 -1
  19. package/dist/esm/models/components/createvectorstorerequest.d.ts +31 -0
  20. package/dist/esm/models/components/createvectorstorerequest.d.ts.map +1 -1
  21. package/dist/esm/models/components/createvectorstorerequest.js +23 -0
  22. package/dist/esm/models/components/createvectorstorerequest.js.map +1 -1
  23. package/dist/esm/models/components/vectorstore.d.ts +31 -0
  24. package/dist/esm/models/components/vectorstore.d.ts.map +1 -1
  25. package/dist/esm/models/components/vectorstore.js +24 -0
  26. package/dist/esm/models/components/vectorstore.js.map +1 -1
  27. package/jsr.json +1 -1
  28. package/package.json +1 -1
  29. package/src/lib/config.ts +3 -3
  30. package/src/mcp-server/mcp-server.ts +1 -1
  31. package/src/mcp-server/server.ts +1 -1
  32. package/src/models/components/createvectorstorerequest.ts +49 -0
  33. package/src/models/components/vectorstore.ts +51 -0
@@ -3,6 +3,18 @@ import { ClosedEnum } from "../../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../../types/fp.js";
4
4
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
5
  import { FileCounts, FileCounts$Outbound } from "./filecounts.js";
6
+ /**
7
+ * Retrieval mode, frozen at creation. 'vector': standard vector similarity search. 'graph': GraphRAG — entities and relations are extracted at ingest and queries traverse the knowledge graph. 'hybrid' is reserved.
8
+ */
9
+ export declare const VectorStoreRetrievalMode: {
10
+ readonly Vector: "vector";
11
+ readonly Hybrid: "hybrid";
12
+ readonly Graph: "graph";
13
+ };
14
+ /**
15
+ * Retrieval mode, frozen at creation. 'vector': standard vector similarity search. 'graph': GraphRAG — entities and relations are extracted at ingest and queries traverse the knowledge graph. 'hybrid' is reserved.
16
+ */
17
+ export type VectorStoreRetrievalMode = ClosedEnum<typeof VectorStoreRetrievalMode>;
6
18
  /**
7
19
  * The status of the vector store. 'expired' means the store has expired, 'in_progress' means files are still being processed, 'completed' indicates that the vector store is ready for use.
8
20
  */
@@ -61,6 +73,18 @@ export type VectorStore = {
61
73
  * The number of dimensions for the embedding vectors in this vector store. Null for legacy vector stores.
62
74
  */
63
75
  embeddingDimensions: number | null;
76
+ /**
77
+ * Retrieval mode, frozen at creation. 'vector': standard vector similarity search. 'graph': GraphRAG — entities and relations are extracted at ingest and queries traverse the knowledge graph. 'hybrid' is reserved.
78
+ */
79
+ retrievalMode: VectorStoreRetrievalMode;
80
+ /**
81
+ * The model used for entity/relation extraction on graph stores. Null for non-graph stores.
82
+ */
83
+ extractionModel?: string | null | undefined;
84
+ /**
85
+ * Graph expansion depth for graph-mode queries. Null for non-graph stores.
86
+ */
87
+ maxHops?: number | null | undefined;
64
88
  /**
65
89
  * File processing status counts.
66
90
  */
@@ -97,6 +121,10 @@ export type VectorStore = {
97
121
  lastUsedAt: number | null;
98
122
  };
99
123
  /** @internal */
124
+ export declare const VectorStoreRetrievalMode$inboundSchema: z.ZodNativeEnum<typeof VectorStoreRetrievalMode>;
125
+ /** @internal */
126
+ export declare const VectorStoreRetrievalMode$outboundSchema: z.ZodNativeEnum<typeof VectorStoreRetrievalMode>;
127
+ /** @internal */
100
128
  export declare const VectorStoreStatus$inboundSchema: z.ZodNativeEnum<typeof VectorStoreStatus>;
101
129
  /** @internal */
102
130
  export declare const VectorStoreStatus$outboundSchema: z.ZodNativeEnum<typeof VectorStoreStatus>;
@@ -130,6 +158,9 @@ export type VectorStore$Outbound = {
130
158
  usage_bytes: number;
131
159
  embedding_model: string | null;
132
160
  embedding_dimensions: number | null;
161
+ retrieval_mode: string;
162
+ extraction_model?: string | null | undefined;
163
+ max_hops?: number | null | undefined;
133
164
  file_counts: FileCounts$Outbound;
134
165
  status: string;
135
166
  expires_after?: VectorStoreExpiresAfter$Outbound | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"vectorstore.d.ts","sourceRoot":"","sources":["../../../../src/models/components/vectorstore.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AAEzB;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,MAAM,EAAE,gBAAgB,CAAC;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,MAAM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AC;IACf,aAAa,CAAC,EAAE,gCAAgC,GAAG,SAAS,CAAC;IAC7D,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAA;KAAE,CAAC;IACrD,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,WAAW,CAmCX,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAElE;AACD,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
@@ -5,6 +5,14 @@ import * as z from "zod/v3";
5
5
  import { remap as remap$ } from "../../lib/primitives.js";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { FileCounts$inboundSchema, FileCounts$outboundSchema, } from "./filecounts.js";
8
+ /**
9
+ * Retrieval mode, frozen at creation. 'vector': standard vector similarity search. 'graph': GraphRAG — entities and relations are extracted at ingest and queries traverse the knowledge graph. 'hybrid' is reserved.
10
+ */
11
+ export const VectorStoreRetrievalMode = {
12
+ Vector: "vector",
13
+ Hybrid: "hybrid",
14
+ Graph: "graph",
15
+ };
8
16
  /**
9
17
  * The status of the vector store. 'expired' means the store has expired, 'in_progress' means files are still being processed, 'completed' indicates that the vector store is ready for use.
10
18
  */
@@ -14,6 +22,10 @@ export const VectorStoreStatus = {
14
22
  Completed: "completed",
15
23
  };
16
24
  /** @internal */
25
+ export const VectorStoreRetrievalMode$inboundSchema = z.nativeEnum(VectorStoreRetrievalMode);
26
+ /** @internal */
27
+ export const VectorStoreRetrievalMode$outboundSchema = VectorStoreRetrievalMode$inboundSchema;
28
+ /** @internal */
17
29
  export const VectorStoreStatus$inboundSchema = z.nativeEnum(VectorStoreStatus);
18
30
  /** @internal */
19
31
  export const VectorStoreStatus$outboundSchema = VectorStoreStatus$inboundSchema;
@@ -52,6 +64,9 @@ export const VectorStore$inboundSchema = z.object({
52
64
  usage_bytes: z.number().int(),
53
65
  embedding_model: z.nullable(z.string()),
54
66
  embedding_dimensions: z.nullable(z.number().int()),
67
+ retrieval_mode: VectorStoreRetrievalMode$inboundSchema,
68
+ extraction_model: z.nullable(z.string()).optional(),
69
+ max_hops: z.nullable(z.number().int()).optional(),
55
70
  file_counts: FileCounts$inboundSchema,
56
71
  status: VectorStoreStatus$inboundSchema,
57
72
  expires_after: z.lazy(() => VectorStoreExpiresAfter$inboundSchema).optional(),
@@ -66,6 +81,9 @@ export const VectorStore$inboundSchema = z.object({
66
81
  "usage_bytes": "usageBytes",
67
82
  "embedding_model": "embeddingModel",
68
83
  "embedding_dimensions": "embeddingDimensions",
84
+ "retrieval_mode": "retrievalMode",
85
+ "extraction_model": "extractionModel",
86
+ "max_hops": "maxHops",
69
87
  "file_counts": "fileCounts",
70
88
  "expires_after": "expiresAfter",
71
89
  "expires_at": "expiresAt",
@@ -82,6 +100,9 @@ export const VectorStore$outboundSchema = z.object({
82
100
  usageBytes: z.number().int(),
83
101
  embeddingModel: z.nullable(z.string()),
84
102
  embeddingDimensions: z.nullable(z.number().int()),
103
+ retrievalMode: VectorStoreRetrievalMode$outboundSchema,
104
+ extractionModel: z.nullable(z.string()).optional(),
105
+ maxHops: z.nullable(z.number().int()).optional(),
85
106
  fileCounts: FileCounts$outboundSchema,
86
107
  status: VectorStoreStatus$outboundSchema,
87
108
  expiresAfter: z.lazy(() => VectorStoreExpiresAfter$outboundSchema).optional(),
@@ -96,6 +117,9 @@ export const VectorStore$outboundSchema = z.object({
96
117
  usageBytes: "usage_bytes",
97
118
  embeddingModel: "embedding_model",
98
119
  embeddingDimensions: "embedding_dimensions",
120
+ retrievalMode: "retrieval_mode",
121
+ extractionModel: "extraction_model",
122
+ maxHops: "max_hops",
99
123
  fileCounts: "file_counts",
100
124
  expiresAfter: "expires_after",
101
125
  expiresAt: "expires_at",
@@ -1 +1 @@
1
- {"version":3,"file":"vectorstore.js","sourceRoot":"","sources":["../../../../src/models/components/vectorstore.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,EAEL,wBAAwB,EAExB,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC;AAEzB;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,aAAa;IACzB,SAAS,EAAE,WAAW;CACd,CAAC;AAwFX,gBAAgB;AAChB,MAAM,CAAC,MAAM,+BAA+B,GAExC,CAAC,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;AACpC,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAEzC,+BAA+B,CAAC;AAEpC,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC;IACnC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACvB,CAAC,CAAC;AAOH,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC;IACnC,IAAI,EAAE,CAAC,CAAC,MAAM,EA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C,CAAC,CAAC;AACvE,CAAC;AACD,MAAM,UAAU,mBAAmB,CACjC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yBAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AACJ,CAAC"}
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@meetkai/mka1",
5
- "version": "0.48.46",
5
+ "version": "0.48.47",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetkai/mka1",
3
- "version": "0.48.46",
3
+ "version": "0.48.47",
4
4
  "author": "Daniel Wilder <dauncy@gmail.com>",
5
5
  "homepage": "https://docs.mka1.com",
6
6
  "publishConfig": {
package/src/lib/config.ts CHANGED
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "1.1.0",
68
- sdkVersion: "0.48.46",
69
- genVersion: "2.916.4",
70
- userAgent: "speakeasy-sdk/typescript 0.48.46 2.916.4 1.1.0 @meetkai/mka1",
68
+ sdkVersion: "0.48.47",
69
+ genVersion: "2.917.0",
70
+ userAgent: "speakeasy-sdk/typescript 0.48.47 2.917.0 1.1.0 @meetkai/mka1",
71
71
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.48.46",
22
+ currentVersion: "0.48.47",
23
23
  },
24
24
  });
25
25
 
@@ -338,7 +338,7 @@ export function createMCPServer(deps: {
338
338
  }) {
339
339
  const server = new McpServer({
340
340
  name: "SDK",
341
- version: "0.48.46",
341
+ version: "0.48.47",
342
342
  });
343
343
 
344
344
  const client = new SDKCore({
@@ -5,6 +5,7 @@
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
  import {
@@ -41,6 +42,18 @@ export type CreateVectorStoreRequestChunkingStrategy =
41
42
  | AutoChunkingStrategy
42
43
  | StaticChunkingStrategy;
43
44
 
45
+ /**
46
+ * Retrieval mode, frozen at creation (cannot be changed later). 'vector' (default): standard vector similarity search. 'graph': GraphRAG — entities and relations are extracted from every chunk at ingest (metered against your usage) and search traverses the knowledge graph.
47
+ */
48
+ export const RetrievalMode = {
49
+ Vector: "vector",
50
+ Graph: "graph",
51
+ } as const;
52
+ /**
53
+ * Retrieval mode, frozen at creation (cannot be changed later). 'vector' (default): standard vector similarity search. 'graph': GraphRAG — entities and relations are extracted from every chunk at ingest (metered against your usage) and search traverses the knowledge graph.
54
+ */
55
+ export type RetrievalMode = ClosedEnum<typeof RetrievalMode>;
56
+
44
57
  /**
45
58
  * Request body for creating a vector store.
46
59
  */
@@ -77,6 +90,18 @@ export type CreateVectorStoreRequest = {
77
90
  * The number of dimensions for the embedding vectors. Only supported for models with flexible dimensions. If not specified, uses the model's default dimensions.
78
91
  */
79
92
  embeddingDimensions?: number | undefined;
93
+ /**
94
+ * Retrieval mode, frozen at creation (cannot be changed later). 'vector' (default): standard vector similarity search. 'graph': GraphRAG — entities and relations are extracted from every chunk at ingest (metered against your usage) and search traverses the knowledge graph.
95
+ */
96
+ retrievalMode?: RetrievalMode | undefined;
97
+ /**
98
+ * Model used for entity/relation extraction on graph stores (ingest-time triplet extraction and query-entity extraction). Defaults to the auto-configured model, resolved at creation time — same contract as embedding_model. Only valid when retrieval_mode is 'graph'.
99
+ */
100
+ extractionModel?: string | undefined;
101
+ /**
102
+ * Graph expansion depth for graph-mode queries (1-4, engine default 2). Only valid for graph stores.
103
+ */
104
+ maxHops?: number | undefined;
80
105
  };
81
106
 
82
107
  /** @internal */
@@ -167,6 +192,15 @@ export function createVectorStoreRequestChunkingStrategyFromJSON(
167
192
  );
168
193
  }
169
194
 
195
+ /** @internal */
196
+ export const RetrievalMode$inboundSchema: z.ZodNativeEnum<
197
+ typeof RetrievalMode
198
+ > = z.nativeEnum(RetrievalMode);
199
+ /** @internal */
200
+ export const RetrievalMode$outboundSchema: z.ZodNativeEnum<
201
+ typeof RetrievalMode
202
+ > = RetrievalMode$inboundSchema;
203
+
170
204
  /** @internal */
171
205
  export const CreateVectorStoreRequest$inboundSchema: z.ZodType<
172
206
  CreateVectorStoreRequest,
@@ -184,6 +218,9 @@ export const CreateVectorStoreRequest$inboundSchema: z.ZodType<
184
218
  metadata: z.record(z.string()).optional(),
185
219
  embedding_model: z.string().optional(),
186
220
  embedding_dimensions: z.number().int().optional(),
221
+ retrieval_mode: RetrievalMode$inboundSchema.optional(),
222
+ extraction_model: z.string().optional(),
223
+ max_hops: z.number().int().optional(),
187
224
  }).transform((v) => {
188
225
  return remap$(v, {
189
226
  "file_ids": "fileIds",
@@ -191,6 +228,9 @@ export const CreateVectorStoreRequest$inboundSchema: z.ZodType<
191
228
  "chunking_strategy": "chunkingStrategy",
192
229
  "embedding_model": "embeddingModel",
193
230
  "embedding_dimensions": "embeddingDimensions",
231
+ "retrieval_mode": "retrievalMode",
232
+ "extraction_model": "extractionModel",
233
+ "max_hops": "maxHops",
194
234
  });
195
235
  });
196
236
  /** @internal */
@@ -206,6 +246,9 @@ export type CreateVectorStoreRequest$Outbound = {
206
246
  metadata?: { [k: string]: string } | undefined;
207
247
  embedding_model?: string | undefined;
208
248
  embedding_dimensions?: number | undefined;
249
+ retrieval_mode?: string | undefined;
250
+ extraction_model?: string | undefined;
251
+ max_hops?: number | undefined;
209
252
  };
210
253
 
211
254
  /** @internal */
@@ -225,6 +268,9 @@ export const CreateVectorStoreRequest$outboundSchema: z.ZodType<
225
268
  metadata: z.record(z.string()).optional(),
226
269
  embeddingModel: z.string().optional(),
227
270
  embeddingDimensions: z.number().int().optional(),
271
+ retrievalMode: RetrievalMode$outboundSchema.optional(),
272
+ extractionModel: z.string().optional(),
273
+ maxHops: z.number().int().optional(),
228
274
  }).transform((v) => {
229
275
  return remap$(v, {
230
276
  fileIds: "file_ids",
@@ -232,6 +278,9 @@ export const CreateVectorStoreRequest$outboundSchema: z.ZodType<
232
278
  chunkingStrategy: "chunking_strategy",
233
279
  embeddingModel: "embedding_model",
234
280
  embeddingDimensions: "embedding_dimensions",
281
+ retrievalMode: "retrieval_mode",
282
+ extractionModel: "extraction_model",
283
+ maxHops: "max_hops",
235
284
  });
236
285
  });
237
286
 
@@ -15,6 +15,21 @@ import {
15
15
  FileCounts$outboundSchema,
16
16
  } from "./filecounts.js";
17
17
 
18
+ /**
19
+ * Retrieval mode, frozen at creation. 'vector': standard vector similarity search. 'graph': GraphRAG — entities and relations are extracted at ingest and queries traverse the knowledge graph. 'hybrid' is reserved.
20
+ */
21
+ export const VectorStoreRetrievalMode = {
22
+ Vector: "vector",
23
+ Hybrid: "hybrid",
24
+ Graph: "graph",
25
+ } as const;
26
+ /**
27
+ * Retrieval mode, frozen at creation. 'vector': standard vector similarity search. 'graph': GraphRAG — entities and relations are extracted at ingest and queries traverse the knowledge graph. 'hybrid' is reserved.
28
+ */
29
+ export type VectorStoreRetrievalMode = ClosedEnum<
30
+ typeof VectorStoreRetrievalMode
31
+ >;
32
+
18
33
  /**
19
34
  * The status of the vector store. 'expired' means the store has expired, 'in_progress' means files are still being processed, 'completed' indicates that the vector store is ready for use.
20
35
  */
@@ -76,6 +91,18 @@ export type VectorStore = {
76
91
  * The number of dimensions for the embedding vectors in this vector store. Null for legacy vector stores.
77
92
  */
78
93
  embeddingDimensions: number | null;
94
+ /**
95
+ * Retrieval mode, frozen at creation. 'vector': standard vector similarity search. 'graph': GraphRAG — entities and relations are extracted at ingest and queries traverse the knowledge graph. 'hybrid' is reserved.
96
+ */
97
+ retrievalMode: VectorStoreRetrievalMode;
98
+ /**
99
+ * The model used for entity/relation extraction on graph stores. Null for non-graph stores.
100
+ */
101
+ extractionModel?: string | null | undefined;
102
+ /**
103
+ * Graph expansion depth for graph-mode queries. Null for non-graph stores.
104
+ */
105
+ maxHops?: number | null | undefined;
79
106
  /**
80
107
  * File processing status counts.
81
108
  */
@@ -110,6 +137,15 @@ export type VectorStore = {
110
137
  lastUsedAt: number | null;
111
138
  };
112
139
 
140
+ /** @internal */
141
+ export const VectorStoreRetrievalMode$inboundSchema: z.ZodNativeEnum<
142
+ typeof VectorStoreRetrievalMode
143
+ > = z.nativeEnum(VectorStoreRetrievalMode);
144
+ /** @internal */
145
+ export const VectorStoreRetrievalMode$outboundSchema: z.ZodNativeEnum<
146
+ typeof VectorStoreRetrievalMode
147
+ > = VectorStoreRetrievalMode$inboundSchema;
148
+
113
149
  /** @internal */
114
150
  export const VectorStoreStatus$inboundSchema: z.ZodNativeEnum<
115
151
  typeof VectorStoreStatus
@@ -207,6 +243,9 @@ export const VectorStore$inboundSchema: z.ZodType<
207
243
  usage_bytes: z.number().int(),
208
244
  embedding_model: z.nullable(z.string()),
209
245
  embedding_dimensions: z.nullable(z.number().int()),
246
+ retrieval_mode: VectorStoreRetrievalMode$inboundSchema,
247
+ extraction_model: z.nullable(z.string()).optional(),
248
+ max_hops: z.nullable(z.number().int()).optional(),
210
249
  file_counts: FileCounts$inboundSchema,
211
250
  status: VectorStoreStatus$inboundSchema,
212
251
  expires_after: z.lazy(() => VectorStoreExpiresAfter$inboundSchema).optional(),
@@ -221,6 +260,9 @@ export const VectorStore$inboundSchema: z.ZodType<
221
260
  "usage_bytes": "usageBytes",
222
261
  "embedding_model": "embeddingModel",
223
262
  "embedding_dimensions": "embeddingDimensions",
263
+ "retrieval_mode": "retrievalMode",
264
+ "extraction_model": "extractionModel",
265
+ "max_hops": "maxHops",
224
266
  "file_counts": "fileCounts",
225
267
  "expires_after": "expiresAfter",
226
268
  "expires_at": "expiresAt",
@@ -237,6 +279,9 @@ export type VectorStore$Outbound = {
237
279
  usage_bytes: number;
238
280
  embedding_model: string | null;
239
281
  embedding_dimensions: number | null;
282
+ retrieval_mode: string;
283
+ extraction_model?: string | null | undefined;
284
+ max_hops?: number | null | undefined;
240
285
  file_counts: FileCounts$Outbound;
241
286
  status: string;
242
287
  expires_after?: VectorStoreExpiresAfter$Outbound | undefined;
@@ -260,6 +305,9 @@ export const VectorStore$outboundSchema: z.ZodType<
260
305
  usageBytes: z.number().int(),
261
306
  embeddingModel: z.nullable(z.string()),
262
307
  embeddingDimensions: z.nullable(z.number().int()),
308
+ retrievalMode: VectorStoreRetrievalMode$outboundSchema,
309
+ extractionModel: z.nullable(z.string()).optional(),
310
+ maxHops: z.nullable(z.number().int()).optional(),
263
311
  fileCounts: FileCounts$outboundSchema,
264
312
  status: VectorStoreStatus$outboundSchema,
265
313
  expiresAfter: z.lazy(() => VectorStoreExpiresAfter$outboundSchema).optional(),
@@ -274,6 +322,9 @@ export const VectorStore$outboundSchema: z.ZodType<
274
322
  usageBytes: "usage_bytes",
275
323
  embeddingModel: "embedding_model",
276
324
  embeddingDimensions: "embedding_dimensions",
325
+ retrievalMode: "retrieval_mode",
326
+ extractionModel: "extraction_model",
327
+ maxHops: "max_hops",
277
328
  fileCounts: "file_counts",
278
329
  expiresAfter: "expires_after",
279
330
  expiresAt: "expires_at",